all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sébastien Gendre" <seb@k-7.ch>
To: Emacs text editor help <help-gnu-emacs@gnu.org>
Subject: mu4e: A new field added to message view is not shown
Date: Mon, 15 Jul 2024 21:48:25 +0200	[thread overview]
Message-ID: <87zfqiqvw6.fsf@k-7.ch> (raw)
In-Reply-To: <edcb4fe3-a01a-45fa-9f71-bcd67b5ce622@7d.nz> (Phil's message of "Mon, 15 Jul 2024 06:34:50 +0200")

[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]


Hello,

I meet a problem with mu4e. I wanted to send my e-mail to the mu4e
mailing list, but I didn't success to subscribe to. I hope I can ask
for help here.

I have defined a custom field that show the E-mail user agent. And I
have added it to the message view. But when I show a message, my field
is nowhere.

Here is my code:


    ;; Add an e-mail custom header that give the correspondant user agent, at the end
    (add-to-list 'mu4e-header-info-custom
                 '(:user-agent .
                               ( :name "User agent"
                                 :shortname "UsrAgnt"
                                 :help "E-mail client used by correspondant"
                                 :function (lambda (msg)
                                             (or (mu4e-fetch-field msg "User-Agent") ""))))
                 t)

    ;; Add the new :user-agent field into the message view, at the end
    (add-to-list 'mu4e-view-fields :user-agent t)


I have tested the code `(mu4e-fetch-field (mu4e-message-at-point)
"User-Agent")` with `eval-expression` (M-:), and I get the User agent of
the message.

I also seen that in the variable `mu4e-view-fields`, I have ":tags" but
I don't see any "Tags:" field in a message view.


Best regards

-------
Gendre Sébastien

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

  reply	other threads:[~2024-07-15 19:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-15  1:18 Property: How to define allowed values at file level Sébastien Gendre
2024-07-15  4:34 ` Phil
2024-07-15 19:48   ` Sébastien Gendre [this message]
2024-07-16  4:57     ` mu4e: A new field added to message view is not shown Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zfqiqvw6.fsf@k-7.ch \
    --to=seb@k-7.ch \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.