]> Sergey Matveev's repositories - public-inbox.git/commit
lei import: ignore Status headers in "eml" messages
authorEric Wong <e@80x24.org>
Mon, 22 Mar 2021 07:54:02 +0000 (07:54 +0000)
committerEric Wong <e@80x24.org>
Tue, 23 Mar 2021 00:07:15 +0000 (00:07 +0000)
commite7d13d7bc4a7b1e990602e796b7c2acbddb99a7b
tree3285bf7dd4d91f65daf4acd9505b2e8db2de8040
parentbbf3bbfe8e45fb79e2b848966aac5792268b3d8f
lei import: ignore Status headers in "eml" messages

Those headers only have meaning with for mboxes.  Don't surprise
users by trying to make sense of a header that is defined for mboxes.

It's possible to send email with (Status|X-Status) headers and
have those headers show up in a recipient's IMAP mailbox.

This was bad because an IMAP user may want to import a single
message through their MUA and pipe its contents to "lei import"
without noticing a mischievious sender stuck "X-Status: F"
(flagged/important) in there.
lib/PublicInbox/LeiImport.pm
t/lei-import.t