Re: [Evolution] Modifying display of subject line



On Fri, 2003-08-29 at 10:30, David Woodhouse wrote:
On Fri, 2003-08-29 at 09:07 +0100, Toby A Inkster wrote:
It's almost impossible to get this right.

Well, Sylpheed Claws seems to get it right. It's a very handy feature.

How does it distinguish between cross-posted pollution from other lists
which do the stupid subject mangling, and real information that was
_intended_ to be in the subject header, but happens to be in square
brackets (like [patch] [wishlist] [off-topic] etc.)?

It allows one to set a per-folder regexp that will be sought and
destroyed from message titles (it is not actually destroyed on disk, but
rather hidden in the UI).

For example, in your "Mailing Lists/Evolution" folder you could have the
regexp:

/\[Evolution\] */

Which would remove the string "[Evolution]" followed by none or more
spaces from any subject lines, but leave things like "[off-topic]" or
"[patch]" alone.

A more complex example:

/\[Evolution(-devel)?\] */

Would match "[Evolution]" followed by possible spaces, and also
"[Evolution-devel]" followed by possible spaces.

Anyway, that is how things work in Sylpheed Claws.

A better behaviour would be along the lines of a sed
"s/pattern/replacement/" regexp (where replacement could be "" for a
Sylpheed style behaviour). 

It would also be nice if this could be applied to From addresses, e.g.:

s/Ian Inkster/Dad/

Also for reference, in Sylpheed when you reply, the 'Re: ' is prepended
to the original subject, not the mangled one.

Regards,

-- 
Toby A Inkster
Fundraising & IT
The National Childbirth Trust (UK Office)
Phone: 0870 770 3236
Fax:   0870 770 3237




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]