Mark message inconditionnaly as read.

This is a discussion on Mark message inconditionnaly as read. within the Mutt forums in Other Technologies category; I do not thind a function in index mode which would mark a message as read, wether or not it is marked as new. N(toggle-read) will mark a new message as read, but will also mark a read message as new, which I do not want. Is there a solution ? -- Erwan...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-14-2007, 10:46 AM
Erwan David
Guest
 
Default Mark message inconditionnaly as read.



I do not thind a function in index mode which would mark a message as
read, wether or not it is marked as new. N(toggle-read) will mark a new
message as read, but will also mark a read message as new, which I do
not want.

Is there a solution ?

--
Erwan
Reply With Quote
  #2  
Old 06-14-2007, 10:51 AM
=?utf-8?B?QW5kcsOp?= Berger
Guest
 
Default Re: Mark message inconditionnaly as read.

* Erwan David (2007-06-14):
>
>
> I do not thind a function in index mode which would mark a message as
> read, wether or not it is marked as new. N(toggle-read) will mark a new
> message as read, but will also mark a read message as new, which I do
> not want.
>
> Is there a solution ?


<untag-pattern>~A<enter><tag-pattern>~N<enter><clear-flag>N<untag-pattern>~A<enter>

-André

--
May as well be hung for a sheep as a lamb!
Linux Kernel 2.6/PPC for Linkstation/KuroBox/HG/HS from http://hvkls.dyndns.org
Reply With Quote
  #3  
Old 06-14-2007, 11:00 AM
=?utf-8?B?QW5kcsOp?= Berger
Guest
 
Default Re: Mark message inconditionnaly as read.

* André Berger (2007-06-14):
> * Erwan David (2007-06-14):
> >
> >
> > I do not thind a function in index mode which would mark a message as
> > read, wether or not it is marked as new. N(toggle-read) will mark a new
> > message as read, but will also mark a read message as new, which I do
> > not want.
> >
> > Is there a solution ?

>
> <untag-pattern>~A<enter><tag-pattern>~N<enter><clear-flag>N<untag-pattern>~A<enter>


That's for all messages of course, you asked for <clear-flag>N

-André

--
May as well be hung for a sheep as a lamb!
Linux Kernel 2.6/PPC for Linkstation/KuroBox/HG/HS from http://hvkls.dyndns.org
Reply With Quote
  #4  
Old 06-14-2007, 11:04 AM
Erwan David
Guest
 
Default Re: Mark message inconditionnaly as read.

André Berger <andre.berger@web.de> disait le 06/14/07 que :

> * Erwan David (2007-06-14):
>>
>>
>> I do not thind a function in index mode which would mark a message as
>> read, wether or not it is marked as new. N(toggle-read) will mark a new
>> message as read, but will also mark a read message as new, which I do
>> not want.
>>
>> Is there a solution ?

>
> <untag-pattern>~A<enter><tag-pattern>~N<enter><clear-flag>N<untag-pattern>~A<enter>
>


Thank you. I wanted it just for one particular message (the one seen by
my macro) and had missed the "clear-flag" function.

--
Erwan
Reply With Quote
  #5  
Old 06-14-2007, 11:16 AM
Erwan David
Guest
 
Default Re: Mark message inconditionnaly as read.

André Berger <andre.berger@web.de> disait le 06/14/07 que :

> * Erwan David (2007-06-14):
>>
>>
>> I do not thind a function in index mode which would mark a message as
>> read, wether or not it is marked as new. N(toggle-read) will mark a new
>> message as read, but will also mark a read message as new, which I do
>> not want.
>>
>> Is there a solution ?

>
> <untag-pattern>~A<enter><tag-pattern>~N<enter><clear-flag>N<untag-pattern>~A<enter>
>


Thank you. I wanted it just for one particular message (the one seen by
my macro) and had missed the "clear-flag" function.

However, using <clear-flag>N changes to next message, breaking my macro
(which is <clear-flag>N<save-message>=spam\n\n)
Thus the wrong message is saved to the spam folder (used to
train the bayesian filter).

I fear that if next message is marked as "deleted" using
<previous-entry> before <save-message> won't work

--
Erwan
Reply With Quote
  #6  
Old 06-14-2007, 01:02 PM
James Wilkinson
Guest
 
Default Re: Mark message inconditionnaly as read.

Erwan David wrote:
> However, using <clear-flag>N changes to next message, breaking my macro
> (which is <clear-flag>N<save-message>=spam\n\n)
> Thus the wrong message is saved to the spam folder (used to
> train the bayesian filter).


One option could simply be to mark all e-mails in the spam folder as
read on entry, and (if using maildir) make the training program look in
spam/new as well as spam/cur.

Hope this helps,

James.

--
E-mail: james@ | "The Aldis lamp was developed to flash Morse Code
aprilcottage.co.uk | instructions between ships, with the result that one
| foggy night in December, a British destroyer found itself
| taking orders from the Bismarck's Christmas disco lights,
| and set off to attack the YMCA." -- "ISIHAC", BBC R4
Reply With Quote
  #7  
Old 06-15-2007, 12:23 AM
=?utf-8?B?QW5kcsOp?= Berger
Guest
 
Default Re: Mark message inconditionnaly as read.

* Erwan David (2007-06-14):
> André Berger <andre.berger@web.de> disait le 06/14/07 que :
> > * Erwan David (2007-06-14):
> >>
> >> I do not thind a function in index mode which would mark a message as
> >> read, wether or not it is marked as new. N(toggle-read) will mark a new
> >> message as read, but will also mark a read message as new, which I do
> >> not want.

> >
> > <untag-pattern>~A<enter><tag-pattern>~N<enter><clear-flag>N<untag-pattern>~A<enter>

>
> Thank you. I wanted it just for one particular message (the one seen by
> my macro) and had missed the "clear-flag" function.


<clear-flag>N

> However, using <clear-flag>N changes to next message, breaking my macro
> (which is <clear-flag>N<save-message>=spam\n\n)
> Thus the wrong message is saved to the spam folder (used to
> train the bayesian filter).


set reverse=no

-André
Reply With Quote
  #8  
Old 06-15-2007, 02:56 AM
Erwan David
Guest
 
Default Re: Mark message inconditionnaly as read.

James Wilkinson <see-sig@aprilcottage.co.uk.invalid> disait le 06/14/07 que :

> Erwan David wrote:
>> However, using <clear-flag>N changes to next message, breaking my macro
>> (which is <clear-flag>N<save-message>=spam\n\n)
>> Thus the wrong message is saved to the spam folder (used to
>> train the bayesian filter).

>
> One option could simply be to mark all e-mails in the spam folder as
> read on entry, and (if using maildir) make the training program look in
> spam/new as well as spam/cur.
>
> Hope this helps,


The problem is more complicated : the backend is imap as I also have to
read my mail from a windows with thunderbird. On thunderbird the spam
folder must be selected.
I use imap_check_subscribed to see the new mail in the subscribed
folders, but I'd prefer that mutt does not send me to the spam folder
to see the spam I've just put here. Thus my tries to mark the message as
read in the macro.

The other solutuion is to get the list of subecribed folers, remove spam
from it and stop using imap_check_subscribed.

--
Erwan
Reply With Quote
  #9  
Old 06-15-2007, 03:11 AM
Christian Ebert
Guest
 
Default Re: Mark message inconditionnaly as read.

* André Berger on Friday, June 15, 2007:
> * Erwan David (2007-06-14):
>> However, using <clear-flag>N changes to next message, breaking my macro
>> (which is <clear-flag>N<save-message>=spam\n\n)
>> Thus the wrong message is saved to the spam folder (used to
>> train the bayesian filter).

>
> set reverse=no


Shouldn't that be "set resolve=no" ?

c
--
Python Mutt utilities <http://www.blacktrash.org/hg/muttils/>
Reply With Quote
  #10  
Old 06-15-2007, 03:35 AM
Erwan David
Guest
 
Default Re: Mark message inconditionnaly as read.

Christian Ebert <blacktrash@gmx.net> disait le 06/15/07 que :

> * André Berger on Friday, June 15, 2007:
>> * Erwan David (2007-06-14):
>>> However, using <clear-flag>N changes to next message, breaking my macro
>>> (which is <clear-flag>N<save-message>=spam\n\n)
>>> Thus the wrong message is saved to the spam folder (used to
>>> train the bayesian filter).

>>
>> set reverse=no

>
> Shouldn't that be "set resolve=no" ?
>


Thanks, One more thing I had missed.

But now my macro
macro index "<Esc>j" "<enter-command>set resolve=no\n<clear-flag>N<save-message>=spam\n\n<enter-command>set resolve=yes\n"

is not accepted by mutt : too many arguments. This I do not see where it
can come from...

--
Erwan
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:37 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.