From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien?= Gendre Newsgroups: gmane.emacs.help Subject: mu4e: A new field added to message view is not shown Supersedes: <87r0bzx1ba.fsf@k-7.ch> Date: Mon, 15 Jul 2024 21:48:25 +0200 Message-ID: <87zfqiqvw6.fsf@k-7.ch> References: <87zfqjsb9o.fsf@k-7.ch> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40428"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.4 To: Emacs text editor help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 15 21:49:10 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sTRh7-000APJ-K6 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Jul 2024 21:49:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTRgX-0008UM-8s; Mon, 15 Jul 2024 15:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTRgU-0008UB-UO for help-gnu-emacs@gnu.org; Mon, 15 Jul 2024 15:48:30 -0400 Original-Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTRgT-0005i4-6e for help-gnu-emacs@gnu.org; Mon, 15 Jul 2024 15:48:30 -0400 Original-Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 8E8BDE813D for ; Mon, 15 Jul 2024 21:48:26 +0200 (CEST) In-Reply-To: (Phil's message of "Mon, 15 Jul 2024 06:34:50 +0200") Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147231 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 "Use= r-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 =2D------ Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmaVfQkLHHNlYkBrLTcu Y2gACgkQtYb3x3I54p4YCQ//fIsoLyBwoFkHvKzqdbxHnnKBBBNZNU1lLasAOH6x PaUyQOdfMQr+c26dxTudUFI5sdwY6RpxMJrK/IAl3n3SW+PC5IHUwl9uXfeC48CE MQN3AKoFrk2q7fJWrBUCwBgkMiOUzOlJ6t/YyhRgXGIVBDA1qc/u/mAJ3bXd+sw0 orF5NAjFbD5ijVo3x9EXLgBImIv/54F/v5f/44Xz9uP6VTB1FszJ+G5S022H8g9h Z2dAExC95BpuK68VkIsDu9e+2psY5fpFDX9j+npJBmMm26tUbmFzv4gMFK2xaMTZ W2YPxpPZj4ejCGuPHuOnMrQ0+H1ZD2vr+5miC6fCQkFIjNos2HPQWQ5jx38g8tOb 9ar/k+giYPrNcqwjYtTHvtf6k5YvB+t7yWvgcosuYkgr1Jjj8Jxha1QyHxndALau Y5upBf1s3BIcMhgmFy9FId4zgsM423YKlTJH7giL4FcfJnQ5TYlmISN3byJ6BFBK Z3G3cmPoIZtPZY7+SUY7aOQxnXTXnPTRz3/+hu1dr2GImmMFsST1To19xmF2YIMJ 3uV5ZcGTWOkWHKiMNYSY8NeeYuD8ZATzwWSZa0lYre39PnkSQ/XtJHdwtk+DC48i C5dRzFL6t0OgA+/XD8RA+OtbybIdgY1w11MBykKaFb/yukYXSdgZPAxTwFl0Qkfv eOk= =i8v/ -----END PGP SIGNATURE----- --=-=-=--