a simple question:
I want to move emails with a certain subject to a folder and mark them as read afterwards. Moving works for me with
:0: H
* ^Subject:.*(ThisIsMySubject)
$HOME/mail/ThisIsMyFolder
But how to mark the mails as read?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note: Updated dec. 16th 2011
Procmail solution
The following recipe works for me.
.Junkis the spam folder:Maildrop solution
Preface: Recently I had (no, I wanted) to do the same thing with a maildropfilter. After reading
man maildropfilterI concocted the following recipe. I’m sure people will find this handy – I know I do.The example below marks new emails as read but also unread old messages.
Note that the
exceptioncommand might read counterintuitive. The manual states the following: