Mutt marking read spam as unread before saving (bogofilter)
- To: mutt-users@xxxxxxxx
- Subject: Mutt marking read spam as unread before saving (bogofilter)
- From: "Carthik Sharma" <carthik@xxxxxxxxx>
- Date: Thu, 6 Apr 2006 20:39:36 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JDsSQQdPmOo+uyq8wHDtsa20gqXveD8hbumPAlJYXEWl0cS8XNHqN6bL+WyHenWoWyb/+RqgLp2OiQ2Efn8iDUCcBtZYH7z/UJXajVebLNy+TCxZ8GuYuLzRJNNzKq2u2o4C4wwESgrA+zC5YpJZunlad0yGNX1CWvFlL2wJsN8=
- List-unsubscribe: <mailto:mutt-users-request@mutt.org?body=unsubscribe>
- Sender: owner-mutt-users@xxxxxxxx
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