Mark message inconditionnaly as read.

This is a discussion on Mark message inconditionnaly as read. within the Mutt forums in Other Technologies category; * Erwan David on Friday, June 15, 2007: > macro index "<Esc>j" "<enter-command>set resolve=no\n<clear-flag>N<save-message>=spam\n\n<enter-command>set resolve=yes\n" Following works here (you might want to use line continuation for better readability): macro index "<Esc>j" "<enter-command> \ set resolve=no confirmappend=no<enter>\ <clear-flag>N<save-message>+spam<enter>\ <enter-command> \ set confirmappend=yes resolve=yes<enter>" or with a recent version of Mutt, supporting personal $my_variables: macro index "<Esc>j" "<enter-command> \ set my_resolve=\$resolve my_confirmappend=\$confirmappend \ resolve=no confirmappend=no<enter>\ <clear-flag>N<save-message>+spam<enter>\ <enter-command> \ set confirmappend=\$my_confirmappend resolve=\$my_resolve \ &my_confirmappend &my_resolve<enter>" Mind you, I might still have forgotten some setting that interferes. c -- Python Mutt utilities <http://www.blacktrash.org/hg/muttils/>...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 06-15-2007, 06:54 AM
Christian Ebert
Guest
 
Default Re: Mark message inconditionnaly as read.

* Erwan David on Friday, June 15, 2007:
> macro index "<Esc>j" "<enter-command>set resolve=no\n<clear-flag>N<save-message>=spam\n\n<enter-command>set resolve=yes\n"


Following works here (you might want to use line continuation for
better readability):

macro index "<Esc>j" "<enter-command> \
set resolve=no confirmappend=no<enter>\
<clear-flag>N<save-message>+spam<enter>\
<enter-command> \
set confirmappend=yes resolve=yes<enter>"

or with a recent version of Mutt, supporting personal
$my_variables:

macro index "<Esc>j" "<enter-command> \
set my_resolve=\$resolve my_confirmappend=\$confirmappend \
resolve=no confirmappend=no<enter>\
<clear-flag>N<save-message>+spam<enter>\
<enter-command> \
set confirmappend=\$my_confirmappend resolve=\$my_resolve \
&my_confirmappend &my_resolve<enter>"

Mind you, I might still have forgotten some setting that
interferes.

c
--
Python Mutt utilities <http://www.blacktrash.org/hg/muttils/>
Reply With Quote
  #12  
Old 06-16-2007, 06:27 AM
Rado S
Guest
 
Default Re: Mark message inconditionnaly as read.

Erwan David <erwan@rail.eu.org> wrote:
> 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...


See http://WIKI.mutt.org/?DebugConfig for clues.

--
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.
Reply With Quote
  #13  
Old 06-16-2007, 05:41 PM
Erwan David
Guest
 
Default Re: Mark message inconditionnaly as read.

Rado S <rado-news@spam-is.invalid> wrote :

> Erwan David <erwan@rail.eu.org> wrote:
>> 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...

>
> See http://WIKI.mutt.org/?DebugConfig for clues.


Thanks, I did not know this site.

--
À peu près tout ce qu'on peut imaginer de débile en informatique
finit par exister un jour ou l'autre. (BB)
Reply With Quote
  #14  
Old 06-17-2007, 08:39 AM
=?utf-8?B?QW5kcsOp?= Berger
Guest
 
Default Re: Mark message inconditionnaly as read.

* Christian Ebert (2007-06-15):
> * 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" ?


You sure know better than me Sorry, I was too much in a hurry.

-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
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:28 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.