From owner-freebsd-questions@FreeBSD.ORG Fri Dec 24 06:33:45 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF76C106564A for ; Fri, 24 Dec 2010 06:33:45 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) by mx1.freebsd.org (Postfix) with ESMTP id 81A158FC15 for ; Fri, 24 Dec 2010 06:33:45 +0000 (UTC) Received: from [10.0.0.9] (dynamic-24-42-224-110.knology.net [24.42.224.110] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id oBO6XgAS008764 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 24 Dec 2010 00:33:43 -0600 References: <4D1433F0.9@infracaninophile.co.uk> In-Reply-To: Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Message-Id: Content-Transfer-Encoding: quoted-printable From: David Kelly Date: Fri, 24 Dec 2010 00:33:42 -0600 To: Chris Brennan X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions@freebsd.org Subject: Re: fetching mail (but not fetchmail) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Dec 2010 06:33:45 -0000 On Dec 24, 2010, at 12:01 AM, Chris Brennan wrote: > Thanks but I I think maybe I wasn't entirely clear. With fetchmail = (which is > why I said but not fetchmail in the subject) I very well can download = all my > mail. For reading locally, on the console (not what I had in mind). Or = is > this where dovecot comes into play? To prepare the previously fetched = mail > and prepare it for pop/imap access? Yes, that is exactly what he was saying. Fetchmail puts it where ever = you tell it to. All you have to do is put the email where dovecot can = find it in a format dovecot understands. You can think of dovecot as a = remote controlled email reader, one which can be driven by Mail.app, = Outlook, or Firefox. But in doing this you are not giving up the ability = to do mail on your console. When using maildir format both mutt and dovecot can operate out of the = same mail repository at the same time. For example I use ~/Maildir/ and the maildir format. Also use procmail for initial sorting and filtering with bogofilter. In = my .fetchmailrc like this: defaults proto pop3 fetchall mda "/usr/local/bin/procmail -d dkelly" .procmailrc something like this: MAILDIR=3D$HOME/Maildir/ #you'd better make sure it exists DEFAULT=3D/var/mail/$LOGNAME # Make a copy of everything incoming: :0 c $HOME/Mail_Backup/ # Add a Lines: header if one is lacking, so mutt knows a message's size :0 Bfh * H ?? !^Lines: * -1^0 * 1^1 ^.*$ | formail -A "Lines: $=3D" # bogofilter -u trains all tokens as spam or non-spam :0 HB: * ? bogofilter -u .spam/ # detect dupes :0 Whc: msgid.lock | formail -D 131072 msgid.cache # divert dupes :0 a: .dups/ # ultimate point of delivery :0 ./ The above .procmail puts a copy of everything in ~/Mail_Backup/ just in = case. -- David Kelly N4HHE, dkelly@HiWAAY.net =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Whom computers would destroy, they must first drive mad.