On Sat, Jan 14, 2012 at 07:50:12AM -0600, Christian Dysthe wrote:
On 01/13/12 at 09:30pm, Ed Blackman wrote:OK. You just need to move the "save" until after resolve is restored. That way the save will delete and move to the next message.macro index,pager D "<enter-command>set my_resolve=\$resolve resolve=no<enter>\ <clear-flag>N\ <enter-command>set resolve=\$my_resolve &my_resolve<enter>\ <save-message>+Gmail/trash<enter>" "move message to the trash"I've been using the macro some more. On thing I noticed is that when I delete from the pager the mail is moved to trash immediately, but when I do it from the index I have to refresh the folder before it's moved. Why the difference?
I wouldn't expect a difference. I would expect that in both cases, the message would be in the trash immediately after the macro completes. In both cases, I would also expect that the message would still be in the original folder, marked for deletion, until you refresh the folder.
I don't actually use mutt to access Gmail, or IMAP at all. I just have a bit of experience with writing macros, and combined the "save; set; operate; restore" pattern for macros, Luis Mochan's mention of the resolve setting, and your original attempt creating a macro. So if the above isn't what you're seeing, hopefully someone else can help.
-- Ed Blackman
signature.txt
Description: Digital signature
