Discussion:
Filtering the entire email message
(too old to reply)
cjsmall
2019-01-31 03:41:26 UTC
Permalink
I'm finding an occasional message received from certain sources where the Microsoft Exchange server mangles some headers by joining the Content-Type: line to the preceding header line. This keeps mutt from properly parsing the content.

I've written a filter utility to fix the problem, but I'm not sure how to force mutt to submit the entire email -- header and body -- to the filter and then resync the output. Is this possible, and if so, how?

Thanks.
--
Jeff
Jorgen Grahn
2019-01-31 20:27:42 UTC
Permalink
Post by cjsmall
I'm finding an occasional message received from certain sources
where the Microsoft Exchange server mangles some headers by joining
the Content-Type: line to the preceding header line. This keeps
mutt from properly parsing the content.
I've written a filter utility to fix the problem, but I'm not sure
how to force mutt to submit the entire email -- header and body --
to the filter and then resync the output. Is this possible, and if
so, how?
Sounds like something you'd want to fix as the mail enters the
mailbox, rather than compensate for in a single MUA. Do you have any
way to add filters at that point, or do you just have IMAP or similar
access to the mailboxes?

(Also, the sender needs to fix their Exchange server, unless they
want to seem incompetent and arrogant.)

/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Continue reading on narkive:
Loading...