On Mon, Jan 31, 2000 at 07:59:36AM +0200, Johann Spies wrote: > On Sun, 30 Jan 2000, Phillip Deackes wrote: > > > I used to use procmail to deliver mail, but I prefer the Exim approach. > > Thanks for the information on your .forward file. I also use procmail at > the moment. In my setup I can use the following script to produce a list > of all the email I have received today: > > grep "`date \"+ %a %b %e\"`" ~/.procmail/log | nl > > Does filtering with exim produce a logfile that I can use for the same > purpose?
exim does indeed log mail that it transfers - both incoming as well as outgoing. In that log, it tells where it put incoming mail. Here's a sample from my log (warning: this will not wrap very nicely): 2000-01-31 15:18:16 12FNH6-0000Kj-00 <= [EMAIL PROTECTED] H=localhost [127.0.0.1] U=mike P=esmtp S=1695 [EMAIL PROTECTED] 2000-01-31 15:18:17 12FNH6-0000Kj-00 => /home/mike/Mail/debian-user <[EMAIL PROTECTED]> D=userforward T=address_file 2000-01-31 15:18:17 12FNH6-0000Kj-00 Completed 2000-01-31 15:18:18 12FNH7-0000Kj-00 <= [EMAIL PROTECTED] H=localhost [127.0.0.1] U=mike P=esmtp S=2043 [EMAIL PROTECTED] 2000-01-31 15:18:18 12FNH7-0000Kj-00 => /home/mike/Mail/suzuki-l <[EMAIL PROTECTED]> D=userforward T=address_file 2000-01-31 15:18:18 12FNH7-0000Kj-00 Completed 2000-01-31 15:18:20 12FNH9-0000Kj-00 <= [EMAIL PROTECTED] H=localhost [127.0.0.1] U=mike P=esmtp S=4934 [EMAIL PROTECTED] 2000-01-31 15:18:20 12FNH9-0000Kj-00 => /home/mike/Mail/suzuki-bikes <[EMAIL PROTECTED]> D=userforward T=address_file 2000-01-31 15:18:20 12FNH9-0000Kj-00 Completed The symbol <= says who it is from, the => says where exim decided to put that message. It looks like your script should work with some minor changes. I'm really not sure, but the information that gets logged might be configurable to some point. I haven't dug into exim's docs quite that deeply yet. -- Mike Werner KA8YSD | "Where do you want to go today?" ICQ# 12934898 | "As far from Redmond as possible!" '91 GS500E | Morgantown WV | Only dead fish go with the flow.