]> Sergey Matveev's repositories - public-inbox.git/commit
Import.pm: Deal with potentially missing From and Sender headers
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 19 Jul 2018 19:36:31 +0000 (14:36 -0500)
committerEric Wong <e@80x24.org>
Thu, 19 Jul 2018 20:40:49 +0000 (20:40 +0000)
commitce5af2029b6bc703f3d8cf7bb5c68732c41f210e
tree926362dfb539b48b7a137a66c488dcecf8878b42
parent7faaa2ab3464880aabbba909acd48a4b11b67452
Import.pm: Deal with potentially missing From and Sender headers

Use ||= '' to ensure that if the From or Sender header is not present
the code sees an empty string and instead of undefined.

I had some email messages with a From field without an @ (because the
sender was local) and without a Sender which were causing errors when
imported.  I think this was bad enough that the email messages were
failing to be imported.

Signed-off-by: Eric Biederamn <ebiederm@xmission.com>
lib/PublicInbox/Import.pm