Re: fetching mail (but not fetchmail)

2010-12-25 Thread RW
On Fri, 24 Dec 2010 00:33:42 -0600
David Kelly dke...@hiwaay.net wrote:

 

 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.

mutt and [al]pine support imap, and dovecot works more efficiently if
you don't modify, or deliver to, the mail store without going through
imap or deliver.  


BTW no-one has mentioned getmail. getmail can deliver to an mda or
maildir and pipe though spam/virus filters itself. In combination
with the sieve support in dovecot deliver you can drop procmail
altogether.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fetching mail (but not fetchmail)

2010-12-24 Thread Jonathan Chen
On Thu, Dec 23, 2010 at 10:27:32PM -0500, Chris Brennan wrote:
 Bit of an odd question. But I will try. Is it possible to set up some
 mechanism (in freebsd or maybe gentoo (doesn't matter to me)) to pop/imap
 into my mail location and download everything as storage and then I imap to
 my local machine to read my mail. I realize I can pop/imap directly into my
 mail, the goal of this exorcise is to store my mail on one of my local
 servers and not my windows machine which can change at a moment's notice. (I
 just don't like the idea of permanent/long-term storage in Windows :/ )

I've got a fetchmail + procmail combination, where fetchmail retrieves
it from a remote POP3 server and procmail is the local MDA which
converts it to Maildir format (which can be read by my local
IMAP server).

My ~/.fetchmailrc looks like this:
poll pop3.vodafone.co.nz protocol pop3
username myusername
password mypassword
mda /usr/local/bin/procmail
sslproto 

And ~/.procmailrc looks like:
#
#
# Trailing / for Maildir
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
...

Hope that helps.
-- 
Jonathan Chen j...@chen.org.nz
--
Don't worry about avoiding temptation,
as you grow older, it starts avoiding you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


fetching mail (but not fetchmail)

2010-12-23 Thread Chris Brennan
Bit of an odd question. But I will try. Is it possible to set up some
mechanism (in freebsd or maybe gentoo (doesn't matter to me)) to pop/imap
into my mail location and download everything as storage and then I imap to
my local machine to read my mail. I realize I can pop/imap directly into my
mail, the goal of this exorcise is to store my mail on one of my local
servers and not my windows machine which can change at a moment's notice. (I
just don't like the idea of permanent/long-term storage in Windows :/ )

C-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fetching mail (but not fetchmail)

2010-12-23 Thread Matthew Seaman
On 24/12/2010 03:27, Chris Brennan wrote:
 Bit of an odd question. But I will try. Is it possible to set up some
 mechanism (in freebsd or maybe gentoo (doesn't matter to me)) to pop/imap
 into my mail location and download everything as storage and then I imap to
 my local machine to read my mail. I realize I can pop/imap directly into my
 mail, the goal of this exorcise is to store my mail on one of my local
 servers and not my windows machine which can change at a moment's notice. (I
 just don't like the idea of permanent/long-term storage in Windows :/ )

fetchmail -- http://fetchmail.berlios.de/ plus dovecot --
http://www.dovecot.org/

They're in ports.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: fetching mail (but not fetchmail)

2010-12-23 Thread Chris Brennan
n Fri, Dec 24, 2010 at 12:47 AM, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:

 On 24/12/2010 03:27, Chris Brennan wrote:
  Bit of an odd question. But I will try. Is it possible to set up some
  mechanism (in freebsd or maybe gentoo (doesn't matter to me)) to pop/imap
  into my mail location and download everything as storage and then I imap
 to
  my local machine to read my mail. I realize I can pop/imap directly into
 my
  mail, the goal of this exorcise is to store my mail on one of my local
  servers and not my windows machine which can change at a moment's notice.
 (I
  just don't like the idea of permanent/long-term storage in Windows :/ )

 fetchmail -- http://fetchmail.berlios.de/ plus dovecot --
 http://www.dovecot.org/

 They're in ports.

Cheers,

Matthew


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?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fetching mail (but not fetchmail)

2010-12-23 Thread Polytropon
On Fri, 24 Dec 2010 01:01:48 -0500, Chris Brennan xa...@xaerolimit.net 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?

No. The fetchmail program usually fetches (copies and flushes,
or not flushes) the POP mailbox and places the content on your
local machine into your user's mailbox, /var/mail/$USER. From
there on, you can do with the mail what you want, e. g. view
it with mail (from the base system), incorporate from spool
into Sylpheed, Thunderbird, pine, whatever program you want,
or continue processing with another program (e. g. to transfer
the messages elsewhere - this is where docevot enters the
scene).


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fetching mail (but not fetchmail)

2010-12-23 Thread Chris Brennan
On Fri, Dec 24, 2010 at 1:07 AM, Polytropon free...@edvax.de wrote:

 On Fri, 24 Dec 2010 01:01:48 -0500, Chris Brennan xa...@xaerolimit.net
 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?

 No. The fetchmail program usually fetches (copies and flushes,
 or not flushes) the POP mailbox and places the content on your
 local machine into your user's mailbox, /var/mail/$USER. From
 there on, you can do with the mail what you want, e. g. view
 it with mail (from the base system), incorporate from spool
 into Sylpheed, Thunderbird, pine, whatever program you want,
 or continue processing with another program (e. g. to transfer
 the messages elsewhere - this is where docevot enters the
 scene).


Ok so fetchmail is step 1, step 2 is to unleash dovecet on /var/mail/$USER
and then just point ex: thunderbird at my local server:port and happy
hunting?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fetching mail (but not fetchmail)

2010-12-23 Thread David Kelly

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=$HOME/Maildir/  #you'd better make sure it exists
DEFAULT=/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: $=

# 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, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org