On Tue, Apr 10, 2012 at 07:10:18PM -0500, David Champion wrote:
> * On 10 Apr 2012, Michael Ludwig wrote: 
> > 
> > 28.06.11 14:08+0200 Alexander Muyla   21 [Firebird-net-provider] Consol
> > 29.06.11 01:56-0700 ven             ~  6 [Firebird-net-provider] fbdata
> > 30.06.11 19:40+0000 Nataniel (JIRA)   98 [Firebird-net-provider] [FB-Tr
> > 
> > Does anyone know of a why to hide those tags short of editing the source?
> 
> I used to strip them out in procmail, but that sometimes causes problems
> in the list manager software when I reply.  I've since edited the
> source, and I find this a much more compete solution.  There are two
> patches and some muttrc configuration:
> 
> https://bitbucket.org/dgc/mutt-dgc/raw/tip/replacelist
> https://bitbucket.org/dgc/mutt-dgc/raw/tip/subjectrx
> 
> Examples of subjectx commands I've used:
> subjectrx '^(re: *)?\[[^]]*\] *' '%1%R'
> subjectrx '\[nsit-rt #[0-9]+\] *' '%L%R'
> subjectrx '\[nsit-[^\0-9]*\]:? *' '%L%R'
> subjectrx '\[servicedesk #([0-9]+)\] ([^.]+)\.([^.]+) - 
> (new|open|pending|update) - ' '%L[#%1] %R'
> 
I filter them out in my (python) procmail replacement.  The
configuration file specifies mailing list information, e.g.:-

    ...
    ...
    leafnode        Li      leafnode-l...@dt.e-technik.uni-dortmund.de
    linux-usb       Li      linux-...@vger.kernel.org
    mutt            Li      mutt-users@mutt.org
    owfs            Li      owfs-develop...@lists.sourceforge.net   
Owfs-developers
    palm            Li      p...@copilotconsulting.com              Palm
    postfix         Li      postfix-us...@postfix.org
    raa             Li      chris....@isbd.net
    ...
    ...

The first column is the [mutt] alias for the list, the second is a
destination directory (in the ones shown they all go to ~/Mail/Li/<alias>)
the third column is the list E-Mail address, and the fourth column is
the text to be stripped out of the subject line (plus the []).


> The advantage of this solution is that it affects only how the message
> is displayed in the pager, so the people who set up the mailing list to
> expect these [list tags] still get them back from you when you reply.
> 
No mailing list I have come across needs what's between the [], they get
put there automatically on *every* message sent from the list so
removing them from replies has no effect at all on what others see.

-- 
Chris Green

Reply via email to