Dear Michael, dear Cameron,

* Michael Tatge <tatg...@gmail.com> [2015-07-22 14:17]:
> * On Wed, Jul 22, 2015 11:35AM -0400 Peter P. (peterpar...@fastmail.com) 
> muttered:
> > I have bound the 'd' key to move mails to a trash folder, and 'D' to
> > move an entire thread to a trash folder:
> > 
> >  folder-hook . 'macro index,pager d "<save-message>=INBOX.Trash \r"
> >  folder-hook . 'macro index,pager D 
> > "<tag-thread><tag-prefix><save-message>=INBOX.Trash \r"
> 
> > This doesn't prevent me from accidentally moving these messages twice,
> > eg when the first mails in a thread are deleted using 'd' (and are
> > marked deleted accordingly) with a subsequent use of 'D' the entire
> > thread, including the messages that got deleted already, gets saved to
> > the trash folder again, causing duplicates.
> 
> You could use the trash folder patch included in most distros.
> Then you wouldn't need those macros.

I managed to change to the trash folder patch and have been using it
successfully for a week by now. Thank you for suggesting it Michael, and
thank you Cameron for your instructions on how to write a godd macro
that could indeed do without the above patch and which made me learn a
lot.

cheers, P

Reply via email to