> > Record "status=deferred" just like "status=bounced" or "status=sent",
> > and when a message expires, use the last "status=deferred" information.
> Thats a painful workaround. :-( Writing a clean log parser especially
> when your logs can get rotated anytime in between.
For the next time that someone wants to do this:
1) Process the logfile records while they are written, for
example, using the pipe-to-command option of syslogd.
2) Store the "status=sent/bounced/deferred" of ALL RECIPIENTS
together with the unique transaction ID for the email message.
3) Store a record when a message is expired/deleted, together with
the unique transaction ID for the email message.
Then, all recipients with "status=deferred" and whose unique
transaction ID has a status of expired/deleted, are bounced. The
other "status=deferred" recipients are still in progress.