On Tue, Feb 16, 2016 at 01:53:01PM +0100, Vincent Lefevre wrote:
> With mutt -E -H ..., the signature is added every time I edit the file.
> Thus one can get multiple signatures. IMHO, the signature shouldn't be
> added, even with -H alone (I usually remove it manually).
> 
> There is a similar problem with my_hdr. One can have:
> 
> send-hook . "my_hdr Some-Header: ..."
> 
> and it will be added every time.

I can see how this would be a problem.

It's (technically) easy enough to trim out certain parts of the message
preparation for draft files.  I have to be a little careful, though,
because everything I turn off may cause a problem for someone who
depended on the behavior before.

It looks like the main steps that are skipped by postpone/resumed emails
but done for draft files are:
  1. user recipient headers.  e.g.  my_hdr "to/cc/bcc"
  2. alias expansion
  3. to/cc/bcc prompts
  4. send_hook
  5. all other user headers; (all other my_hdr lines)
  6. append signature

I could remove steps 5 and 6 for draft files.  How do others feel about
this?

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt

Attachment: signature.asc
Description: PGP signature

Reply via email to