From owner-freebsd-questions Sun Oct 3 10:32:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dt011n66.san.rr.com (dt011n66.san.rr.com [204.210.13.102]) by hub.freebsd.org (Postfix) with ESMTP id A5DC614CEA for ; Sun, 3 Oct 1999 10:32:25 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt011n66.san.rr.com (8.9.3/8.8.8) with ESMTP id KAA23850; Sun, 3 Oct 1999 10:32:14 -0700 (PDT) (envelope-from Doug@gorean.org) Message-ID: <37F7931E.4A4C9F17@gorean.org> Date: Sun, 03 Oct 1999 10:32:14 -0700 From: Doug Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.61 [en] (X11; U; FreeBSD 4.0-CURRENT-0927 i386) X-Accept-Language: en MIME-Version: 1.0 To: Barry Irwin Cc: "Dr. Brain" , freebsd-questions@FreeBSD.ORG Subject: Re: Merging mail from two souces References: <19991002135147.A83943@toxic.magnesium.net> <19991003075357.D47240@rucus.ru.ac.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Barry Irwin wrote: > > On Sat 1999-10-02 (13:51), 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. > > 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. > > Not too sure about the fetchmail details, but as far as I am aware it uses > your local MTA to deliver the mail it retrieves. For your FTP'd Mailbox, aa > solution would be to use formail. This can then split your ftp'd mailbox up > into its constituant messages and pass them onto the appropriate MTA , which > will then deliver them Fetchmail can also be configured to use an mda of your choice, like procmail. That makes it very handy to merge mail from different sources. I consolidate mail from several different accounts automatically with a combo of fetchmail, procmail and a couple of scripts to handle extreme cases. In your .fetchmailrc file do something like this: defaults proto pop3 fetchall mda "/usr/local/bin/procmail -f-" and you'll be home free. Good luck, Doug -- "Stop it, I'm gettin' misty." - Mel Gibson as Porter, "Payback" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message