Bug 2404

Summary: matcherrc updates upon account renaming
Product: Claws Mail (GTK 2) Reporter: Denis Laxalde <denis>
Component: FilteringAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.7.10   
Hardware: PC   
OS: Linux   

Description Denis Laxalde 2011-04-15 18:44:35 UTC
Hi,

While investigating bug 2382, I noticed that updates of matcherrc was also weird. In particular, the following happened.
1. rename an account
 - account names in rules titles (i.e. the [#imap/account/folder] thing) are not updated in matcherrc
 - account names in rules or actions are updated
 - some processing rules (apparently the ones with an account/folder name in the action) are still working while some others are not
2. rename again the same account (actually, I went back to the original name):
 - all processing rules are deleted in matcherrc

Thanks.
Comment 1 users 2011-11-21 23:15:35 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.colino.net/claws-mail/

2011-11-21 [pawel]	3.7.10cvs97

	* src/account.c
	* src/prefs_filtering.c
	* src/prefs_filtering.h
		Fix bug #2404 'matcherrc updates upon account renaming'
		Fix bug #2406 'some part of accountrc not updated upon
		account rename'
		Renaming account cause changing of it's root folder prefix
		from #<type>/<old_name> to #<type>/<new_name> so every
		path directing to it must be altered. Fix paths in account
		preferences, global processing and filtering rules, folder
		processing rules upon rename