Bug 2391 - template not reloaded after template file change
Summary: template not reloaded after template file change
Status: RESOLVED WONTFIX
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Compose Window (show other bugs)
Version: 3.7.8
Hardware: PC Linux
: P3 minor
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2011-03-29 08:59 UTC by Martin Karas
Modified: 2012-09-05 12:15 UTC (History)
0 users

See Also:


Attachments

Description Martin Karas 2011-03-29 08:59:09 UTC
I use templates a lot (and have generator for them), but Claws reads all of them only once and stores their contents in some internal cache, ignoring any following changes to the files.

It would be nice to have it stat() the files, detect mtime (ctime?) change and then reload modified template. This stat() should be made everytime just before using the template.

The caveeat here can be the fact, that the Template menu items are based on the contents of the templates, so stat()-ing before every access of the submenu can lead to low performance...
Comment 1 Colin Leroy 2012-09-05 11:53:17 UTC
Hi,

Internal Claws-Mail files living in ~/.claws-mail/ are not to be manually edited.

Editing them while Claws Mail isn't running may work, although this voids your warranty ;-) but doing so while Claws Mail is running is a sure way to lose your time. At best, your changes won't get overwritten when quitting Claws Mail.
Comment 2 Martin Karas 2012-09-05 12:15:37 UTC
Thanks for your reply.

Some time ago I decided to go with  --compose "mailto:...?subject=...&cc=..&body=..." instead of templates.

Note You need to log in before you can comment on or make changes to this bug.