I need to send a list every day of stats to my manager of emails from a certain company. He wants to know who the email was from and what the subject was. I can't figure out how to match the subject with the sender as it is on the next line in the procmail log
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/denisew.lock"
procmail: Notified comsat: "denisew@1048263:/var/spool/mail/denisew"
From aughonK@xxxusa.com Thu Feb 17 05:57:04 2011
Subject: Auto start on ATL looks good ... THANKS >>>
Folder: /var/spool/mail/denisew 8670
procmail: [8293] Thu Feb 17 05:58:07 2011
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "formail,-x,To:"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/denisew.lock"
procmail: Notified comsat: "denisew@1048263:/var/spool/mail/denisew"
From aughonK@xxxusa.com Thu Feb 17 05:57:04 2011
Subject: Auto start on ATL looks good ... THANKS >>>
Folder: /var/spool/mail/denisew 8670
procmail: [8293] Thu Feb 17 05:58:07 2011
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "formail,-x,To:"