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

folder hooks and condition not for the first message



Dear Users

I use this folder-hook at the moment:

folder-hook 999-Trash*  'macro index d 
"<purge-message><sync-mailbox><next-entry>";       \
                         macro pager d 
"<purge-message><sync-mailbox><next-entry>"'

now, the command <next-entry> is to delete from the selected message to
bottom, not like without it, to the top message.

this works good, only if I'm on the first message in the folder, then it
jumps after to the second. From then, it stays allways on the second, if
I press the "d" key. Is there any way to give a condition to the command
<next-entry> to ignore, if it's the first message in the box? Or is
there any better idea?

Thank you for any idea and help.
Raphael