On Tue, 2009-10-27 at 01:00 -0500, Chris wrote:
> While I'm not necessarily afraid to try new things, I could give this
> a
> try. That being said - some pointers (or a decent example someplace)
> would be appreciated.
> 
> Maybe something like fetch-n-proc might be worth the imagined headache
> (naive point of view here) of setting it up. Perhaps I'll give it a
> shot. 

Shouldn't be a headache, and once it's setup, you likely won't have to
ever touch it again.

my anonymized .procmailrc is attached.  It's configured to use
bogofilter as a spam filter... other procmailrc examples can be found on
the web/procmail homepage etc...
Use evo to create a maildir account, then set the .procmailrc parameter
MAILDIR=/path/to/the/maildir-folder.

sample of my .fetchmailrc pasted below... other examples can be found on
the web/fetchmail homepage etc...

I am rthompso on this box.

I think ( it's been a while since I set this up )
set daemon
is needed for fetchmail to run in daemon mode (120 = fetch every 2
minutes)

for the user-acco...@isp.com account, emails are downloaded BUT left on
the server ( note the 'keep' option ) ( I want to access these emails
from this box, but I want to ultimately pull them from the server and
store them on a different box ).

for the gmail account, the emails are pulled down to this account and
'removed' from the server ( 'removed' being a misnomer since gmail
actually keeps everything forever -- Google's privacy policy says
deleted e-mail messages "may remain in our offline backup systems" in
perpetuity. It does not guarantee that backups are ever deleted.)


if you have an account where you have the 'keep' option set, setup
an idfile.


$ cat .fetchmailrc
# Configuration created Thu Jul 23 09:44:11 2009 by fetchmailconf 1.54 
$Revision: 5165 $
set postmaster "rthompso"
set bouncemail
set no spambounce
set properties ""
set daemon 120
set logfile /tmp/fetchmail.log
set idfile /home/rthompso/.fetchmailidfile

poll pop-server.isp.com with uidl proto POP3
       user 'user-acco...@isp.com' there with password 'validpassword' is 
'rthompso' here options keep mda "/usr/bin/procmail -d %T"

poll pop.gmail.com with uidl proto POP3
       user 'user-acco...@gmail.com' there with password 'valid-password' is 
'rthompso' here options ssl mda "/usr/bin/procmail -d %T"




LOGFILE=$HOME/.procmailrc.log
VERSBOSE=no
MAILDIR=$HOME/.maildir-sent/
DEFAULT=$MAILDIR
BOGOFILTER_DIR=/home/rthompso/.bogofilter

### keep a temporary backup of incoming mail in case bogofilter misplaces it
:0c
bogo-backup/
###

## Silently drop all completely unreadable mail
:0:
* 1^0 
^\/Subject:.*=\?(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)\?
* 1^0 
^\/Content-Type:.*charset="(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)
spam-unreadable/
####

#### bogofilter passthrough-update ####

:0fw
| bogofilter -p -u -l -e -v
# -p)assthrough -u)pdate, -l)og -e)xitcode 0 for spam and ham
# -v)erbose

#### begin error catcher ####

# m-a 2002-10-28
#     If bogofilter failed, return the mail to the queue.
#     Better put this after _EACH_ delivering recipe (not shown here).
#     Later, the MTA will try again to deliver it.
#     75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h
#
#     Originally published by Philip Guenther on the postfix-users
#     mailing list.

:0e
{
    EXITCODE=75
    HOST
}

#### end error catcher ####


:0c:
* ^X-Bogosity: (Spam|Yes)
spam-bogofilter/
# put copy error catcher here to avoid fallthrough

# unnecessary in twostate mode:
:0c:
* ^X-Bogosity: Unsure
unsure-bogofilter/
# put another copy of error catcher here to avoid fallthrough

#### end bogofilter passthrough-update ####

# user-acco...@gmail.com to appropriate folder
:0
* ^To:.*user-accou...@gmail\.com
user-acco...@gmail.com/

# user-acco...@isp.com to appropriate folder
:0
* ^To:.*user-accou...@isp\.com
user-acco...@isp.com/

# put mailing list emails where I want
:0
* ^List-Id:.*ncccha\.yahoogroups\.com
user-acco...@isp.com/

:0
* ^List-Id:.*beagleboard\.googlegroups\.com
beagleboard/

# catch everything else to main box also
:0
* ^To:.*
user-acco...@isp.com/

#---------------------------------------------------------------------#
# (part 3) How to set up vacation message
#   1. No need to set up .forward file if you use this method.
#   2. Prepare .vacation.msg in your home directory.
#   3. Run "vacation -I" command.
#   4. Uncomment the 2 lines below (Did you replace your_loginname with yours?) 
#   5. Remember to comment out the 2 lines when you come back from vacation.

#:0 c
#| /usr/bin/vacation rthompso
_______________________________________________
Evolution-list mailing list
Evolution-list@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-list

Reply via email to