Re: IMAP, Gmail and...Procmail?
- To: mutt-users@xxxxxxxx
- Subject: Re: IMAP, Gmail and...Procmail?
- From: mimosinnet@xxxxxxxxx
- Date: Thu, 17 Jul 2008 05:35:16 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:to:subject :message-id:reply-to:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:from; bh=WRBASaUbz5DHo93VYmbYp9i/BRbAeccy1YlB5vIwTck=; b=Ipo+hHmpGDwsodaPCZjo7YsT8lizajJexlIVPw9q0ZqGwTaTZHzPVhvgYNctozwtu7 Hqkh2U1KUVDMNAWplqdTXF5K0n8No2ldz7I9QJdWafqFq5slCmtI0Vy9KEx8OFlnMVjY MWoZ95NFQFgKdm/XQL7MEv107VIyJy8Au4Hqo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:from; b=dg5a+uV4ICGgAwhzm8ZhZEAmofSYpO93temqfcPYFWXrJAQ2tKdgqm6day9f+jcdZ9 +3sk3TMMVa/oPbLKgmeynZNViUzagaJJji9mcoSZrl3qmnEbiyfXGA0G1pWenBE2Pqiw F4hNu/G3dBrlByrBz62mIZSOCDX0kskGBVDYE=
- In-reply-to: <20080715160243.GE12674@xxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20080715152952.GA10241@xxxxxxxxxxx> <20080715160243.GE12674@xxxxxxxxxxxxxxx>
- Reply-to: "mutt-users@xxxxxxxx"@localhost
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-06-09)
El dimarts, 15 de juliol del 2008 a les 12:02, Patrick Shanahan va escriure:
> * Michael Pobega <pobega@xxxxxxxxx> [07-15-08 11:32]:
> > I have finally set up Mutt to work with IMAP (After just finding out
> > Gmail has IMAP this morning), but I'm wondering if there is a suitable
> > way to sort my emails using Procmail. I used to use POP and Procmail
> > together to sort all my mail, but with IMAP that doesn't seem possible
> > since I'm not actually downloading the mail...
> >
> > Can anyone tell me a suitable way to sort my mail or use Procmail with
> > IMAP?
>
> You can still download your mail and sort *locally* with procmail.
> You just set the fetchmail protocol to imap instead of pop. The
> keyword here is "local".
I am using what Patrick suggests with different accounts. For
example, my fetchmail config file:
set logfile /var/log/fetchmail.log
set no bouncemail
poll pop.correo.yahoo.es protocol POP3 service 110
user "user" password "password" fetchall
mda "/usr/bin/procmail -a YAHOO -d %T"
poll pop3.auna.com protocol POP3 service 110
user "user@xxxxxxxxx" password "password" fetchall
mda "/usr/bin/procmail -a MENTA -d %T"
poll pop.gmail.com protocol POP3 service 995
user "user@xxxxxxxxx" password "password" fetchall
ssl
mda "/usr/bin/procmail -a GMAIL -d %T"
poll imap.uab.es protocol IMAP service 143
user "user" password "password" fetchall
mda "/usr/bin/procmail -a UAB -d %T"
poll localhost protocol IMAP
user "user" password "password"
fetchall no rewrite
folder IN.Spam_Fallat
mda "/usr/bin/sa-learn --spam"
Procmail sorts my messages by folders, account (I have -a YAHOO -d %T to pass
the account variable to procmail) , spam, ... in the ~/.maildir folder. I have
setup the .maildir folder as an imap server (before my laptop, I used to
connect to my home IMAP server to read my messages), and I tell mutt to read my
local imap server:
set folder=imap://localhost
set imap_user=user
set imap_pass=password
set imap_authenticators=login
Cheers!
--
Location: 41:24:51N (41.41417) 2:11:25E (2.1903)