* mu4e: A new field added to message view is not shown
[not found] ` <edcb4fe3-a01a-45fa-9f71-bcd67b5ce622@7d.nz>
@ 2024-07-15 19:48 ` Sébastien Gendre
2024-07-16 4:57 ` Tassilo Horn
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Gendre @ 2024-07-15 19:48 UTC (permalink / raw)
To: Emacs text editor help
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread