On Sat, Jun 04, 2011 at 10:31:54AM -0400, Chris Brennan wrote:
> * Nicolas KOWALSKI <nicolas.kowal...@gmail.com> [2011-06-04 10:24:01 +0200]:
> 
> > On Fri, Jun 03, 2011 at 04:00:32PM -0400, Chris Brennan wrote:
> > Gmail labels are available as folders in IMAP. So, to label a message,
> > just save it to the corresponding folder. This also works for tagging
> > messages as Spam.
> 
> OK, so how are you saving the mail to folders? That part I haven't
> figured out yet.

For example, having this in my ~/.muttrc:

set folder=imaps://nicolas.kowal...@imap.gmail.com/

Let's say I have a "news" label defined in Gmail. It also appears as an 
IMAP folder "news", at the root of the IMAP hierarchy. 

When viewing a message in INBOX, if I want to label it as "news", then 
archive it, I just hit "s", followed by "=news". Mutt first copies the 
message in the "news" folder (labels it in Gmail), then removes the 
message from INBOX (archives it in Gmail).

Gmail/IMAP things are explained in details here: 
http://mail.google.com/support/bin/answer.py?answer=75725

-- 
Nicolas

Reply via email to