Bug 2543

Summary: filter actions in actionsrc not updated upon account renaming
Product: Claws Mail (GTK 2) Reporter: Ricardo Mones <mones>
Component: UI/ActionsAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.8.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Backtrace of crash
none
Tentative patch for fixing the observed crash. none

Description Ricardo Mones 2011-11-15 02:01:53 UTC
Created attachment 1039 [details]
Backtrace of crash

When some action contains a filter action involving, for example, a move to some account (an IMAP one in my case), and the account gets renamed, the filter action still references the previous (now invalid) account, causing claws-mail to crash. Backtrace attached.
Comment 1 Ricardo Mones 2011-11-17 01:50:33 UTC
Created attachment 1040 [details]
Tentative patch for fixing the observed crash.

On a second visit to this seems the bug causing the crash is not because of a bad account name, it crashes equally with a good account name.

Problem arises when the action is run and the message view is not shown, which in turn causes the mimeview not to have any part selected. The attached patch seems to fix it, but not fixes the bug itself (renaming of the account in the action).
Comment 2 Colin Leroy 2011-11-17 09:10:24 UTC
Yeah, seems good. Probably related to Pawel's work in the mimeview tree :)
Comment 3 users 2011-11-17 17:06: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-17 [pawel]	3.7.10cvs86

	* src/mimeview.c
		Fix crasher reported in bug #2543
Comment 4 users 2011-11-24 17:51: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-24 [pawel]	3.7.10cvs102

	* src/account.c
	* src/filtering.c
	* src/filtering.h
	* src/imap_gtk.c
	* src/mh_gtk.c
	* src/prefs_actions.c
	* src/prefs_actions.h
		Implement actions updating on folder/account rename
		This fixes bug #2543 'filter actions in actionsrc not
		updated upon account renaming'
Comment 5 Ricardo Mones 2011-11-24 21:06:24 UTC
It's fixed in cvs103, thanks! :)