Re: Mutt marking read spam as unread before saving (bogofilter)
On 4/6/06, Carthik Sharma <carthik@xxxxxxxxx> wrote:
> 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.
>
Did I leave something out? Can I provide more info? Please ask if that
is the case. Again, the problem is how to prevent Mutt from marking
read messages as Unread before saving after refiltering through
bogofilter.
Thanks,
Carthik.
> 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
>
--
Ph.D. Candidate
University of Central Florida
Homepage: http://carthik.net