Hi, I'm using mutt with offlineimap and msmtp. It's working great except for one issue: In Gmail mail is moved to the trash folder (or label in Gmail lingo) and then automatically deleted from there after 30 days. I have for days tried to create a macro that moved mail to trash and removes the 'new'flag so that the mail appears as read in the trash folder. The first macro I found on a web page with a "Gmail with mutt" tutorial. The macro looks like this:
macro index,pager D "<save-message>+Gmail/trash<enter>" "move message to the trash" It moves the mail to trash, but new deleted mail is marked unread in the trash folder and I would like for all mail in trash to be marked read. I then modified the macro and ended up with this: macro index,pager D "<clear-flag>N<save-message>+Gmail/trash<enter>" "move message to the trash" This one works, but iit moves to the next mail and deletes it instead of the current mail selected. If I could get this macro to not move ahead one mail it would be the solution. Are anyone here using mutt with Gmail and have a working solution for moving mail to trash and mark it read? If so please let me know how you do it. If someone has suggestions on how I could create a macro doing what I want it would be great to know. -- //Christian
