On Wed, Sep 21, 2016 at 09:53:36PM +0200, Jean-Christophe Bach wrote:
> * Claus Assmann <mutt+users@???> [21.09.2016. @12:35:20 -0700]:
>
> > Your mail failed to verify.
> >
> > However, after I removed your X-Header gpg can verify it. So
> > whatever you use to generate that is broken (maybe it is added after
> > signing?)
> >
> > I'm attaching a tar file with m4{,.sig}: (modified) message body
> > and signature, so others can check it locally.
>
> OK, thank you: I am totally lost :)
>
> I do not know how it is possible, and why it happened: I have configured
> my_hdr long time ago. Then I updated (or not) my system.
>
> FYI, my_hdr configuration is the following (in .muttrc):
>
> my_hdr X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE9324BDEC124FF27
> my_hdr X-IM-Jabber: jcb@???
> my_hdr X-WebSite: http://www.schplaf.org
> my_hdr X-Operating-System: A real one: Gentoo Linux
> my_hdr X-Clacks-Overhead: GNU Terry Pratchett
>
> It comes just after source ~/.mutt/.gnupg.mutt
Your system is clearly doing something else there and it is very
strange. I just replicated the above configuration and here it did
what everyone would expect: it inserted all those X-headers into the
mail headers and loaded the text editor. That *included* the
Pratchett one. Which is where they stay when the message is sent
(user-agent being appended, of course).
How that last custom header gets moved from being a proper header into
the MIME part header is the main thing to look at. It could be
something with whatever text editor is used or it could be some script
running on the message after it's saved, but before it is sent. I
suspect the latter since the change must be made after the signature
is made, since that would explain why editing your messages to remove
that line then makes the messages verify.
Regards,
Ben