Dear all, I would like to extract the message ID from an email that I am about the send, but before I send it. I wonder if this is impossible. From what I read [1], the message-id is assigned either by the MUA (which I understand to be mutt) or the first MSA. Which one is it?
For example, for messages in a folder, I can do: macro Z <pipe-message>extract_msg_id where extract_msg_id is a script of mine that extracts the message ID. Can I do something similar from the compose map? I am also open to extracting the message ID *after* I send it, but can that be done from the compose map? Note that I send email through the GMail smtp, so I have unset record in my .muttrc. I suppose that I could temporarily set it, extract it from that, then then reset it. But that seems somewhat to be a hack. Kind regards, Xu [1] http://en.wikipedia.org/wiki/Message-ID