Re: mutt removing stuff in brackets from subject
On Thu, Nov 5, 2009 at 11:08 AM, Monte Stevens montk...@yahoo.ca wrote: On Thu, Nov 05, 2009 at 09:44:38AM -0500, James wrote: On Wed, Nov 4, 2009 at 10:40 PM, Monte Stevens montk...@yahoo.ca wrote: On Wed, Nov 04, 2009 at 10:03:08PM -0500, James wrote: I did not build this myself. I inherited the .muttrc from a friend and tinkered with it / added things to it. I never ran into any issues until now with the brackets. I'd recommend using the default then if you have no requirement to use the regexp you inherited. I guess I don't understand the purpose of regex_reply. Can someone give me a clearer definition? Again, my understanding was that mutt used this regex to determine if the message you're reading / responding to was a reply to another message. From Michael's post on June 17: Yes it will remove something. As you quoted reply_regexp is also used when replying. Mutt will match $reply_regexp match against the subject and replace everything matching (at the start of the string) with just Re: Say you get a message with the subject Aw: test and reply to it. You get with the default reply_regexp Re: test. source: http://marc.info/?l=mutt-usersm=124524776520486w=2 The muttrc manual uses the word recognize which seems to be what is causing confusion (for me as well). Perhaps it should use recognize for threading and manipulate for replying. Great. I think this clears things up. So theoretically a well-written regex_reply will take Re: RE: Re: blah and replace it with Re: blah? Any good regex_reply configurations out there? -j
Re: mutt removing stuff in brackets from subject
On 2009-11-10, James j...@nc.rr.com wrote: Any good regex_reply configurations out there? Here's what I use after several years of tuning. # # Note: All letters in the reply_regexp must be lower-case, else the # entire pattern will be treated as case-sensitive. # set reply_regexp=^((\ \\[protocol_tc\\]|\ \\[fw_rtp\\]|\ \\[wvware - help\\]|\ \\[[a-z][a-z0-9 :-]+[0-9]\\]|\ out of office autoreply:|\ (\\(fwd\\))|\ (re(\\[[0-9]\\])?|aw|fw|fwd|\\?\\?|ç.å¤.|´ð¸´|\\?\\?\\?\\?):\ )[ \t]*)+ I subscribe to several mailing lists, mostly company-internal (I deleted some names and altered others in the above), that automatically insert the name of the list in brackets at the start of the Subject. I could use a regular expression for the names, but I prefer enumerating them to avoid unintended matches. The structure I use makes that really easy to do. Including those names in 'reply_regexp' prevents them from building up in successive replies. The pattern immediately above out of office autoreply: was written primarily to handle the w3m-dev-en list, whose Subjects begin as this example, [w3m-dev-en 01113], where the number is the message number. I added out of office autoreply: so that those messages would be threaded with other replies to the original message. The question marks and the two sequences of non-ASCII characters are there to handle replies from coworkers in China who use some sort of Chinese Outlook. Regards, Gary
Re: mutt removing stuff in brackets from subject
On Tue, Nov 03, 2009 at 09:44:39AM -0500, James wrote: Still having this issue. When I reply (or group reply), everything inside of a Fwd: [Blah Blah] results in a Fwd: subject. Any other thoughts on what may be causing this? No, but you can try a few things to narrow it down. Run mutt without the system muttrc. -- $ mutt -n Run mutt without your muttrc -- $ mutt -F /dev/null Maybe that second one will be no good because your mailboxes are defined in your muttrc. Build a testing muttrc; with just your mailboxes. $ mutt -F ~/my-testing-muttrc Do you get the same result when replying or group replying to messages in each of these tests? -- Monte
Re: mutt removing stuff in brackets from subject
* Monte Stevens montk...@yahoo.ca [11-04-09 18:28]: Run mutt without the system muttrc. -- $ mutt -n Run mutt without your muttrc -- $ mutt -F /dev/null Maybe that second one will be no good because your mailboxes are defined in your muttrc. Build a testing muttrc; with just your mailboxes. mutt -F /dev/null -f /home/user/mail/mail-file will allow using the second example w/o defining mailboxes and then you can change using 'c' tabtab -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: mutt removing stuff in brackets from subject
All, Still having this issue. When I reply (or group reply), everything inside of a Fwd: [Blah Blah] results in a Fwd: subject. Any other thoughts on what may be causing this? -j On Sun, Jul 19, 2009 at 8:30 PM, Nicolas Sebrecht nicolas.s-...@laposte.net wrote: On Wed, Jun 17, 2009 at 02:57:45PM +0200, Michael Tatge wrote: * On Wed, Jun 17, 2009 09:47AM +0200 Rejo Zenger (mutt-us...@subs.krikkit.nl) muttered: ++ 16/06/09 19:51 +0200 - Michael Tatge: When I respond to an email that has a subject similar to: [StuffHere] Blah Blah Blah Mutt actually *removes* everything inside of the brackets and the brackets themselves. Any thoughts on why this happens? Works fine here. There is a setting that might be resposible though. Check reply_regexp Correct me if I'm wrong, but I don't think that particular setting would remove a thing form the subject. The manual says: A regular expression used to recognize reply messages when threading and replying. ^ I tend to think it should not be used when threading: replying and threading are two unrelated tasks. What about adding a $thread_regexp? -- Nicolas Sebrecht
Re: mutt removing stuff in brackets from subject
On Wed, Jun 17, 2009 at 02:57:45PM +0200, Michael Tatge wrote: * On Wed, Jun 17, 2009 09:47AM +0200 Rejo Zenger (mutt-us...@subs.krikkit.nl) muttered: ++ 16/06/09 19:51 +0200 - Michael Tatge: When I respond to an email that has a subject similar to: [StuffHere] Blah Blah Blah Mutt actually *removes* everything inside of the brackets and the brackets themselves. Any thoughts on why this happens? Works fine here. There is a setting that might be resposible though. Check reply_regexp Correct me if I'm wrong, but I don't think that particular setting would remove a thing form the subject. The manual says: A regular expression used to recognize reply messages when threading and replying. ^ I tend to think it should not be used when threading: replying and threading are two unrelated tasks. What about adding a $thread_regexp? -- Nicolas Sebrecht
Re: mutt removing stuff in brackets from subject
Hi, * Rejo Zenger wrote: I see. I expected mutt to use this regular expression to determine whether it should prepand the current subject with Re: or that it should leave it intact (if there is a match) - instead of removing whatever is matched and replacing it. That has the potential to produce a horrible mess like: Re: Aw: Re: ... that is unreadable. Rocco
Re: mutt removing stuff in brackets from subject
++ 18/06/09 14:23 +0200 - Rocco Rutte: I see. I expected mutt to use this regular expression to determine whether it should prepand the current subject with Re: or that it should leave it intact (if there is a match) - instead of removing whatever is matched and replacing it. That has the potential to produce a horrible mess like: Re: Aw: Re: ... that is unreadable. It's not really relevant, but I disagree. If the behaviour would be like I said above, mutt won't make things worse. If the regular expression matched both Re: and Aw: and otehr variations, then mutt would recognize the subject is already prepended and would not touch the subject to do it again. So, if subject is Example, it would be prepended with Re: and if the subject is something like Re: Example or even Re: Aw: Re: Example (which both would match the given regular expression) it would leave the subject alone. As a result, mutt would never create a mess like Re: Aw: Re: - but it would leave it that way if it's there already. -- Rejo Zenger . r...@zenger.nl . 0x75FC50F3 . https://rejo.zenger.nl GPG encrypted e-mail prefered. signature.asc Description: Digital signature
Re: mutt removing stuff in brackets from subject
* On Wed, Jun 17, 2009 09:47AM +0200 Rejo Zenger (mutt-us...@subs.krikkit.nl) muttered: ++ 16/06/09 19:51 +0200 - Michael Tatge: When I respond to an email that has a subject similar to: [StuffHere] Blah Blah Blah Mutt actually *removes* everything inside of the brackets and the brackets themselves. Any thoughts on why this happens? Works fine here. There is a setting that might be resposible though. Check reply_regexp Correct me if I'm wrong, but I don't think that particular setting would remove a thing form the subject. The manual says: A regular expression used to recognize reply messages when threading and replying. ^ As far as I know, this setting makes it possible for mutt to recognize patters like Re: and re: at the beginning of a Subject and, if present, mutt will not prepend the subject with another Re: when replying. Yes it will remove something. As you quoted reply_regexp is also used when replying. Mutt will match $reply_regexp match against the subject and replace everything matching (at the start of the string) with just Re: Say you get a message with the subject Aw: test and reply to it. You get with the default reply_regexp Re: test. HTH, Michael -- Checking host system type... i586-unknown-linux configure: error: sorry, this is the gnu os, not linux -- Topic on #Linux PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de
Re: mutt removing stuff in brackets from subject
++ 17/06/09 14:57 +0200 - Michael Tatge: Mutt will match $reply_regexp match against the subject and replace everything matching (at the start of the string) with just Re: Say you get a message with the subject Aw: test and reply to it. You get with the default reply_regexp Re: test. I see. I expected mutt to use this regular expression to determine whether it should prepand the current subject with Re: or that it should leave it intact (if there is a match) - instead of removing whatever is matched and replacing it. Thanks for the clarification. -- Rejo Zenger . r...@zenger.nl . 0x75FC50F3 . https://rejo.zenger.nl GPG encrypted e-mail prefered. signature.asc Description: Digital signature
mutt removing stuff in brackets from subject
All, When I respond to an email that has a subject similar to: [StuffHere] Blah Blah Blah Mutt actually *removes* everything inside of the brackets and the brackets themselves. Any thoughts on why this happens? I've poked around and can't seem to find anything in my muttrc that would cause this to happen explicitly. Thanks! -j
Re: mutt removing stuff in brackets from subject
* On Tue, Jun 16, 2009 10:59AM -0400 James (j...@nc.rr.com) muttered: When I respond to an email that has a subject similar to: [StuffHere] Blah Blah Blah Mutt actually *removes* everything inside of the brackets and the brackets themselves. Any thoughts on why this happens? Works fine here. There is a setting that might be resposible though. Check reply_regexp HTH, Michael -- On a normal ascii line, the only safe condition to detect is a 'BREAK' - everything else having been assigned functions by Gnu EMACS. (By Tarl Neustaedter) PGP-Key-ID: 0xDC1A44DD Jabber: init...@amessage.de