On 01/13/12 at 11:36am, Ed Blackman wrote: > On Thu, Jan 12, 2012 at 08:38:01AM -0600, Luis Mochan wrote: > >Acoording to the manual, there is a variable: > > > >resolve > > > >Type: boolean > >Default: yes > > > >When set, the cursor will be automatically advanced to the next > >(possibly undeleted) message whenever a command that modifies the > >current message is executed. > > I found unsetting resolve all the time was annoying, since most of > the time I *do* want to move to the next message. Try this macro. > It uses a pattern I picked up in this group: save the current > setting, change it, perform the desired action, then reset to the > saved setting. > > macro index,pager D "<enter-command>set my_resolve=\$resolve > resolve=no<enter>\ > <clear-flag>N<save-message>+Gmail/trash<enter>\ > <enter-command>set resolve=\$my_resolve &my_resolve<enter>" "move message to > the trash" > > I haven't tested this particular macro, but I just rewrote the > macros that I have that previously did "save to mailbox (implicitly > moving to next entry); move to previous entry", and they work just > great with "save resolve value; set resolve=no; save; restore saved > resolve value".
Thank you so much! This macro works exactly like I would like it to except for one minor issue: It does not move to the next message after the e-mail is delete (moved to Gmail trash). The problem before was that it moved to the next mail and moved that to trash. Now it works perfectly with regards to deleting and moving the mail. If it's no way or have it move to the next mail after deletion to do that I'm fine with the way it works now. > > -- > Ed Blackman -- //Christian Dysthe
