Cameron Simpson wrote: > On 07Apr2024 13:19, Ебрашка <ebras...@riseup.net> wrote: > > Question, what should I write in .muttrc to make my outgoing mails have > > the same beautiful message-ID as Yandex mail? > > For example Message-Id: <43265...@example.com> consisting of random > > digits and domain name > > I think it would be enough to supply your own message-id header; I don't > think it is necessarily mutt making it at all. Mutt hands messages to a mail > system, and a mail system adds a message-id if one is missing. > > You could (a) turn on "set edit_headers=yes" so the headers are visible in > your message and (b) have your editor startup make one? > > _Or_ you could "set sendmail=" to a script of your own to add a message-id > header - that is what mutt uses to deliver the message to a mail system - > you could add a header there then pass the message on to whatever you had > mutt using before.
And don't be overly clever and set a custom header to a script that produces a message-id; that will get evaluated when mutt starts and not again for every message, thus defeating the point. Please don't ask me how I know. -dsr-