Hi all,

is there any chance to edit the headers of received mails semi-automatically?

My wish is a macro to fix threading from other users with poor email
software. A macro shall be called with the list number of the proper
referred email. This will copy the message id from there and insert it both
within the References header line, as well as e.g. 
'X-References-Fixed: <Message-ID> fixed by mutt on <date>'

Thus threading could be repaired.

While doing this operation, another fix could be applied as well: Save
the original subject as X-Subject-Original when the Subject contains
irregular quoting styles, such as RE:, Re[\d]: etc. (Here in Germany, some
'poor' tools, such as Lotus insert 'Antwort' or 'AW', but do not support 
references). The Subject should be fixed by replacing 
'Subject: (Re: |RE: |Re\[\d\]: |AW: |Antwort: )' with 'Subject: Re: '.

How could this be done best, if possible? Which mutt version is required,
since former versions do not support edit_headers?

Thanks
Martin

Reply via email to