Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 2010 00:33:42 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Chris Brennan <xaero@xaerolimit.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: fetching mail (but not fetchmail)
Message-ID:  <FDBF019C-8B4D-4DF0-8AEA-ADAD9C98FB71@hiwaay.net>
In-Reply-To: <AANLkTikVQ630btpU9fMhPyKB=wLtocE89LjojCTUWE9H@mail.gmail.com>
References:  <AANLkTimeMfGOvBqztdr_HCT3y%2BMFhQomFCvXe2mASLP-@mail.gmail.com> <4D1433F0.9@infracaninophile.co.uk> <AANLkTikVQ630btpU9fMhPyKB=wLtocE89LjojCTUWE9H@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FDBF019C-8B4D-4DF0-8AEA-ADAD9C98FB71>