I've split this into more commits to hopefully make it a bit easier to
decipher the diffs.

This version accepts any From line that starts with "From " (as long as
it has something afterwards.)  It uses the reverse scanner to grab
date/times from lines that have a verbose return_path.  The configure
option is gone, but I've #if'ed out the forward scanner version, just in
case.

The commit messages are currently a bit too brief, but I wanted to give
another patch set for discussion at least.  If this looks better I'll
make the commit messages a bit more verbose.

The whole thing is also pushed to gitlab at kevin/433-mbox-lax-parse-v2

Kevin J. McCarthy (5):
  Extract is_from_forward_scan() function.
  Create is_from_reverse_scan().
  Switch to reverse scan.
  Change is_from() to accept anything starting with "From ".
  Remove unused return_path from is_from() call.

 from.c  | 210 +++++++++++++++++++++++++++++++++++++++++++++-----------
 parse.c |   3 +-
 2 files changed, 170 insertions(+), 43 deletions(-)

-- 
2.52.0

Reply via email to