<<< Date Index >>>     <<< Thread Index >>>

[SOLVED] Re: mark as read and save macro don't work correctly, why?



On Tue, Oct 02, 2007 at 02:56:31PM -0500, Kyle Wheeler wrote:
> On Tuesday, October  2 at 09:35 PM, quoth Raphael Brunner:
> >folder-hook .                'set sort=reverse-date-received; \
> >                              macro index d 
> > "<clear-flag>N<save-message>=999-Trash^M<sync-mailbox>"; \
> >                              macro pager d 
> > "<clear-flag>N<save-message>=999-Trash^M<sync-mailbox>" 
> >
> >now, if I press 'd' on a message, the N-flag is cleared, but the next
> >message is deleted, not the marked. is there some easy way to make this
> >macro correct?
> 
> The solution to your problem is to unset $resolve at the beginning of 
> the macro, and reset it at the end. That will prevent it from moving 
> the cursor to the next message after <clear-flag> executes. For more 
> information, check out the man page and search for "resolve".
> 
> ~Kyle
> -- 
> If you cannot change your mind, how can you be certain that you have 
> one?
>                                                              -- Unknown
many thanks! I changed the lines to this and it work now!

folder-hook .   'set sort=reverse-date-received; \
 macro index d "<enter-command>set 
resolve=no<enter><clear-flag>N<save-message>=999-Trash^M<sync-mailbox><enter-command>set
 resolve=yes<enter>"; \
 macro pager d "<enter-command>set 
resolve=no<enter><clear-flag>N<save-message>=999-Trash^M<sync-mailbox><enter-command>set
 resolve=yes<enter>"; \
 macro index D "<delete-message><sync-mailbox>"; \
 macro pager D "<delete-message><sync-mailbox>"'

 raphy