Date: Sat, 2 Oct 1999 18:55:24 -0400 (EDT) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: drbrain@toxic.magnesium.net (Dr. Brain) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Merging mail from two souces Message-ID: <199910022255.SAA04358@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <19991002135147.A83943@toxic.magnesium.net> from "Dr. Brain" at "Oct 2, 1999 01:51:47 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Dr. Brain wrote, > I want to merge mail from two different sources, one is downloaded through > fetmail via an IMAP server, and the other is an ftp download from a remote > FreeBSD machine. Is there any way I can merge these two together? As I > understand it, fetchmail grabs my mail and dumps it into /var/mail/hodeleri. Not really. fetchmail feeds the mail it downloads through sendmail or whatever MTA is listening on port 25. > If I wanted to ftp down the other mail, I would put it in /var/mail/hodeleri > this seems to be a bit of a problem though. RTFM is appreciated, just point > me to the right place. Down load the ftp mail to a temporary file an then use... hmmm... been a while since I've done something like this... IIRC, I think you want to take the ftp'ed file and, % formail -s sendmail < ftp.mail Which will break up the mail in ftp.mail and send each message to sendmail which them will do as it will with each. Again, you can subsitute whatever local delivery agent you want for sendmail (e.g. procmail). -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910022255.SAA04358>