Bug 2391

Summary: template not reloaded after template file change
Product: Claws Mail (GTK 2) Reporter: Martin Karas <martin.karas>
Component: UI/Compose WindowAssignee: users
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: P3    
Version: 3.7.8   
Hardware: PC   
OS: Linux   

Description Martin Karas 2011-03-29 10: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 13: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 14:15:37 UTC
Thanks for your reply.

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