[Bug 159972] custom variant templates: mail dependent

Maciej Pilichowski bluedzins at wp.pl
Sat Mar 29 11:15:54 GMT 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=159972         




------- Additional Comments From bluedzins wp pl  2008-03-29 12:15 -------
Hmm, I thought about it a bit more and I go with the wish even further:

a) keeps the things like they are now, just simple text + "macros"
b) provide script language (I mean it could be Python, bash, perl, whatever) with predefined variables, or one global hash table

So when you (as user) would like to define "reply" you could do it as today, or select:
[ ] run script

And in the same dialog you will write the script, and for scripted templates kmail will run them and insert the result of the script.

Why such complex (? it is not that complex, after all running script it would be not Kmail part, but interpreter) wish -- it could be one of killer features of KMail. This way user could not only react to specific addresses, but also to a gender of the author! For polish it would be a joy to see automatic responses genderated
Szanowna Pani,

for women, and for men

Szanowny Panie.

Oh, and another note, since Kmail part would be only feeding global hash, and getting the result it could be even better

[ ] run the script in < Ruby / Perl / Python / you name it >

Now I vote definitively for scripted templates :-)



More information about the Kdepim-bugs mailing list