Re: [Evolution] Changing subject lines of received emails



Hi!

I got so annoyed with the undescriptive subject lines it's learning
alerts ( itslearning.com ) (and my university) uses, that I wrote a
Python script (attached) to take care of this.

-> I added a filter rule to pipe the mail to this script.

It uses an smtp-client in python standard library to send mail to
evolution, and regular expressions to get info from the contents and add
to the subject line.

I can help with tweaking the script, if you find use for it.

Regards,
Mats Taraldsvik

On Tue, 2008-05-20 at 17:22 +0100, andy wrote:
Reid Thompson wrote: 
On Tue, 2008-05-20 at 12:20 +0000, Pete Biggs wrote:

  
Or what about 'redirect'ing the mail to yourself i.e. 

  Message -> Forward As -> Redirect

Then fill in your own address as the To: and change the subject line to
whatever you want.  This will cause a new message to be created (which
is the only way of doing what you want), but will retain the rest of the
email intact.

This would also be a way of dealing with removing attachments.

Pete
    

Edit as New Message, Save Draft does create a 'new' message -- it's
essentially a copy with modifications.  The Message-id is changed
i.e. the message id from your email
Message-id: <1211286042 27697 19 camel snoopy chem ox ac uk>

Edit as New Message, Save Draft

the message id from the Draft
Message-id: <1211286858 26126 9 camel raker ateb com>

and placing both emails in the same folder with threading on, lists the
draft as a thread child to your email
_______________________________________________
Evolution-list mailing list
Evolution-list gnome org
http://mail.gnome.org/mailman/listinfo/evolution-list

  
Dear Paul, Reid, Patrick & Pete

First off, thank you very much for all of your replies and
suggestions. Those are all very much appreciated and there are a
number of pretty decent workarounds contained therein.

My wife has seemingly stumbled on a fix that she feels comfortable
with which is a variation of something already suggested: she will
merely forward these emails to herself with the subject line she wants
that will be meaningful to her and delete the original. It's a bit of
a pain, but I will monitor some of those emails and see if there is
some way that I can (semi-)automate this process - e.g. when an email
from Companies House arrives, set a rule to forward it to her email
address and so it will pop-up waiting for a new subject line.

Once again, thank you so much from both of us!

You're a good crowd.

All the best

Andy

-- 

"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas 
Pynchon, "Gravity's Rainbow"
_______________________________________________
Evolution-list mailing list
Evolution-list gnome org
http://mail.gnome.org/mailman/listinfo/evolution-list

Attachment: evolution-filter.py
Description: Text Data



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