On Mon, Aug 16, 2010 at 04:13:58AM +0200, Michelle Konzack wrote: > Am 2010-08-13 08:22:42, hacktest Du folgendes herunter: > > Does anyone know here if there's a way to have Gmail add a header onto > > email marked as Spam? > > You cant, since it is the last crap I have ever seen! > > However you can fetch the messages by using > > ----[ '~/.fetchmailrc' ]------------------------------------------------ > poll pop.gmail.com proto IMAPS > user mygmailusername > pass mypasswordhere > is localusr > folder INBOX > options mda "/usr/bin/procmail -a INBOX -d %T" > > poll pop.gmail.com proto IMAPS > user mygmailusername > pass mypasswordhere > is localusr > folder INBOX.Spam > options mda "/usr/bin/procmail -a SPAMFOLDER -d %T" > ------------------------------------------------------------------------ > > And at the begining of your > > ----[ '~/.procmailrc' ]------------------------------------------------- > > MAILFDIR=${HOME}/Maildir > DEFAULT=${MAILFDIR}/ > > POLLTYPE=$1 > > :0 > * ? test "${POLLTYPE}" = SPAMFOLDER > .Spam/ > > ------------------------------------------------------------------------ > > ATTENTION: You have to switch to IMAPS to get it. > > Thanks, Greetings and nice Day/Evening > Michelle Konzack
This is wonderful, it works exactly how I want! I had to edit the config a bit to get it to work (maybe you did this intentionally to get me to learn a bit? :)). Here is the edited working config (procmail worked fine, fetchmail needed to be edited a bit): # inbox poll imap.gmail.com proto IMAP user 'usernamehere' pass 'password' is 'localuser' folder INBOX options mda "/usr/bin/procmail -d %T" keep ssl sslcertck sslcertpath /etc/ssl/certs # spam box poll imap.gmail.com proto IMAP user 'usernamehere' pass 'password' is 'localuser' folder [Gmail]/Spam options mda "/usr/bin/procmail -a SPAMFOLDER -d %T" keep ssl sslcertck sslcertpath /etc/ssl/certs Thank you again, this problem has been solved.