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

Mutt marking read spam as unread before saving (bogofilter)



Fellow Mutt users :)

I use some bogofilter macros to help re-categorize mail as spam or ham
when miscategorized.

The problem is that the messages I open to read in, say my Inbox, and
then mark as spam with, Shift+S end up in the .spam mailbox as
expected, but marked as NEW. Is there a way I can prevent this from
happening. I include the macros below.

The macros for "index S" and "pager S" are the ones that are causing me trouble.

Thank you,

Carthik

#bogofilter macros to learn spam and ham
macro   index   r       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Sn\n<enter-command>set
wait_key\n<reply>" "Reply to message, unmark as spam and mark as
non-spam"
macro   index   g       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Sn\n<enter-command>set
wait_key\n<group-reply>" "Group reply to message unmark as spam and
mark as non-spam"
macro   index   L       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Sn\n<enter-command>set
wait_key\n<list-reply>" "List reply to message unmark as spam and mark
as non-spam"
macro   index   S       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Ns -l\n<enter-command>set
wait_key\n<save-message>=.spam\n" "UnMark as non-spam, mark as spam
and save to spambox"
macro   index   H       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Sn -l\n<pipe-entry>formail -I
X-Bogosity|procmail\n<enter-command>set wait_key\n<delete-message>"
"Unmark as spam, mark as non-spam and refilter to correct mailbox"
macro   pager   S       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Ns -l\n<enter-command>set
wait_key\n<save-message>=.spam\n" "Unmark as non-spam, mark as spam
and save to spambox"
macro   pager   H       "<enter-command>unset
wait_key\n<pipe-entry>bogofilter -Sn -l\n<pipe-entry>formail -I
X-Bogosity|procmail\n<enter-command><enter-command>set
wait_key\n<delete-message>" "Unmark as spam, mark as non-spam and
reprocess"


--
Ph.D. Candidate
University of Central Florida
Homepage: http://carthik.net