Mark Sapiro writes: > On 03/12/2016 08:23 AM, Stephen J. Turnbull wrote: > > Mark Sapiro writes: > > > > > The Received: header check is important. For an "imported" mbox, the > > > From_ separators may reflect when the mbox was exported from it's source > > > rather than the message date. If the messages have Received: headers, > > > the later ones at least tend to have good dates. > > > > Overengineering (seems to be becoming a habit?) perhaps, but if you're > > going to parse one Received field, why not do them all, sort, and take > > the latest reasonable one? Leaving the sorted list on msg_data might > > also be useful to spam filters (although we don't really want to > > recommend spam filtering in Mailman...). > > > I see your point,
About "overengineering"? :-) Gotcha on the rest, but "overengineered, yes" was you needed to say. (I guess the "header field contents are in a list ordered as you would expect datum" is generally useful though. Thanks for explaining that, even if it's not part of the spec.) _______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9