Re: Color mails which are a reply to a mail from me?
Thus spake Gerhard Siegesmund ([EMAIL PROTECTED]): > I don't know if it is at all possible, but I loved this feature with > crosspoint (in the old times of fido-net). Is it possible to color (in > the index) a mail which is a reply to a mail from me? So that I can > see very fast if someone answered me in a list? (Hope this is not a > FAQ). I have a regex color set up for any mail that mentions my name in the body, since I'll usually be attributed in a followup on the lists I'm on. That works well for me... -- Justin R. Miller <[EMAIL PROTECTED]> View my website at http://codesorcery.net Please encrypt email using key 0xC9C40C31 msg22360/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
At 23:47 +0100 05 Jan 2002, Gerhard Siegesmund <[EMAIL PROTECTED]> wrote: > I don't know if it is at all possible, but I loved this feature with > crosspoint (in the old times of fido-net). Is it possible to color (in > the index) a mail which is a reply to a mail from me? So that I can see > very fast if someone answered me in a list? (Hope this is not a FAQ). There are a few things that might work. - Searching the body was already mentioned in another message. color index red default ~b - You may also be able to do it based on Message-IDs mentioned in the Referecnes header, if there's a pattern that would match only Message-IDs from your messages. It looks like @gerhard.zuhause.de may work for this: color index red default ~x @gerhard.zuhause.de - The third option that I can think of involves a patch that I wrote: http://schrab.com/aaron/mutt/patch-1.3.24.ats.parent_match.1 This would allow you to do color index red default %~P Although that would only work if your message was in the same mailbox. -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ Real programmers don't comment their code. It was hard to write, it should be hard to understand. msg22363/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
> > I don't know if it is at all possible, but I loved this feature with > > crosspoint (in the old times of fido-net). Is it possible to color (in > > the index) a mail which is a reply to a mail from me? So that I can see > > very fast if someone answered me in a list? (Hope this is not a FAQ). > - You may also be able to do it based on Message-IDs mentioned in the >Referecnes header, if there's a pattern that would match only >Message-IDs from your messages. It looks like @gerhard.zuhause.de >may work for this: I tried it and it works great. Thanks for the tip. -- cu --== Jerri ==-- Homepage: http://www.jerri.de/ ICQ: 54160208 msg22365/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
in message <[EMAIL PROTECTED]>, wrote Aaron Schrab thusly... > > At 23:47 +0100 05 Jan 2002, Gerhard Siegesmund <[EMAIL PROTECTED]> wrote: > > I don't know if it is at all possible, but I loved this feature with > > crosspoint (in the old times of fido-net). Is it possible to color (in > > the index) a mail which is a reply to a mail from me? So that I can see > > very fast if someone answered me in a list? (Hope this is not a FAQ). ... > - The third option that I can think of involves a patch that I wrote: > > http://schrab.com/aaron/mutt/patch-1.3.24.ats.parent_match.1 > >This would allow you to do > > color index red default %~P aaron, i have been using similar syntax for the same purpose since mutt v1.2.something (less than 1.2.4 for sure) created from freebsd ports, now on v1.3.25i, w/o any problems. syntax is... color index red default ~P ^- notice the missing '%' ...so how does the patch figure in? >Although that would only work if your message was in the same >mailbox. i didn't understand the above statement. when you say "message(s) in the same mailbox", what do you mean by it? - parv --
Re: Color mails which are a reply to a mail from me?
also sprach Gerhard Siegesmund <[EMAIL PROTECTED]> [2002.01.05.2347 +0100]: > I don't know if it is at all possible, but I loved this feature with > crosspoint (in the old times of fido-net). Is it possible to color (in > the index) a mail which is a reply to a mail from me? So that I can see > very fast if someone answered me in a list? (Hope this is not a FAQ). i only want this for folders in the lists subdirectory, so: folder-hook . "uncolor index \"!(~N | ~G) \ (~p | ~b 'martin|madduck|krafft' | ~s 'martin|madduck|krafft'\")" folder-hook . "uncolor index \"!~G ~N \ (~p | ~b 'martin|madduck|krafft' | ~s 'martin|madduck|krafft'\")" folder-hook lists "color index brightblack default \"!(~N | ~G) \ (~p | ~b 'martin|madduck|krafft' | ~s 'martin|madduck|krafft'\")" folder-hook lists "color index brightred default \"!~G ~N \ (~p | ~b 'martin|madduck|krafft' | ~s 'martin|madduck|krafft'\")" these will simply make all mails somehow addressed to me, or mentioning my name appear bold... red if new and black if read. -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck "if I can't dance, i don't want to be part of your revolution." - emma goldman msg22367/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
At 20:34 -0500 05 Jan 2002, parv <[EMAIL PROTECTED]> wrote: > in message <[EMAIL PROTECTED]>, > wrote Aaron Schrab thusly... > > color index red default %~P > > aaron, i have been using similar syntax for the same purpose since mutt > v1.2.something (less than 1.2.4 for sure) created from freebsd ports, > now on v1.3.25i, w/o any problems. syntax is... > > color index red default ~P > ^- notice the missing '%' > > ...so how does the patch figure in? It adds support for the % modifier, which causes the rest of the match operator to match against the parent of the message (the message that it was in reply to), rather than the message itself. So while ~P matches messages that you wrote yourself, %~P matches messages that are replies to messages that you wrote. > > >Although that would only work if your message was in the same > >mailbox. > > i didn't understand the above statement. when you say "message(s) > in the same mailbox", what do you mean by it? Since mutt doesn't keep information about messages not in the current mailbox, the parent of a message needs to be in the current mailbox in order to match against it. -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ In general, if you think something isn't in Perl, try it out, because it usually is. :-)--Larry Wall msg22375/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
Hi, Justin, How about sharing your 'regex' here for our reference? I've tried to write one but found it's inefficient due to searching in all the message bodies (~b). How do you think about it? * Is it possible to limit the lines to scan for message body? I think only 5 lines at the top and bottom is enough. (Refer to Vim's "modeline" concept - for the majority of cases my name would only appear at top or bottom of the message.) BTW, I found I can not handle mutt's regexp though I'm an experienced Perl programmer. :) color index red default '~b (Charles|Charlie)' => Unmatched ( not to mention: color index red default '~b Charl(es|ie)' => Unmatched ( * Could anybody explain mutt's operator precedence and association criteria? best, charlie On Sat, Jan 05, 2002 at 06:09:31PM -0500, Justin R. Miller wrote: > Thus spake Gerhard Siegesmund ([EMAIL PROTECTED]): > > > I don't know if it is at all possible, but I loved this feature with > > crosspoint (in the old times of fido-net). Is it possible to color (in > > the index) a mail which is a reply to a mail from me? So that I can > > see very fast if someone answered me in a list? (Hope this is not a > > FAQ). > > I have a regex color set up for any mail that mentions my name in the > body, since I'll usually be attributed in a followup on the lists I'm > on. That works well for me... msg22995/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
Hi, Aaron, Would you please tell me what's the default pattern if you don't specify one as in your example? (I can not identify from the manual.) On Sat, Jan 05, 2002 at 06:25:05PM -0600, Aaron Schrab wrote: > At 23:47 +0100 05 Jan 2002, Gerhard Siegesmund <[EMAIL PROTECTED]> wrote: > > I don't know if it is at all possible, but I loved this feature with > > crosspoint (in the old times of fido-net). Is it possible to color (in > > the index) a mail which is a reply to a mail from me? So that I can see > > very fast if someone answered me in a list? (Hope this is not a FAQ). > > There are a few things that might work. > > - Searching the body was already mentioned in another message. > > color index red default ~b > ^^ msg22996/pgp0.pgp Description: PGP signature
Re: Color mails which are a reply to a mail from me?
Charles Jie muttered: > BTW, I found I can not handle mutt's regexp though I'm an experienced > Perl programmer. :) > > color index red default '~b (Charles|Charlie)' => Unmatched ( > > not to mention: > > color index red default '~b Charl(es|ie)' => Unmatched ( > > * Could anybody explain mutt's operator precedence and association > criteria? You have to escape the pipe Symbol i.e. color index red default '~b Charl(es \| ie)' This is an annoyance bugging me for a log time btw. HTH, Michael -- The only "intuitive" interface is the nipple. After that, it's all learned. (Bruce Ediger, [EMAIL PROTECTED], in comp.os.linux.misc, on X interfaces.) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: Color mails which are a reply to a mail from me?
[ I've moved quoted text around, so that it's in the correct place. ] At 20:39 +0800 12 Jan 2002, Charles Jie <[EMAIL PROTECTED]> wrote: > On Sat, Jan 05, 2002 at 06:25:05PM -0600, Aaron Schrab wrote: > > color index red default ~b > > > ^^ > Would you please tell me what's the default pattern if you don't specify > one as in your example? (I can not identify from the manual.) There isn't a default pattern. I'd meant to put a place holder there, but forgot to do so. As it is that pattern is broken. -- Aaron Schrab [EMAIL PROTECTED] http://www.execpc.com/~aarons/ A debugged program is one for which you have not yet found the conditions that make it fail. -- Jerry Ogdin
Re: Color mails which are a reply to a mail from me?
Thus spake Michael Tatge ([EMAIL PROTECTED]): > You have to escape the pipe Symbol i.e. color index red default '~b > Charl(es \| ie)' I never did figure that out. I just used my first time, since it is uncommon enough on my lists. Now, however, I use the References: header thusly: folder-hook . 'uncolor index brightmagenta default "~x mithrandir.codesorcery.net !~P"' folder-hook lists 'color index brightmagenta default "~x mithrandir.codesorcery.net !~P"' -- Justin R. Miller <[EMAIL PROTECTED]> View my website at http://codesorcery.net Please encrypt email using key 0xC9C40C31 msg23019/pgp0.pgp Description: PGP signature