Bug 305953

Summary: Exported filters do not contain action
Product: [Applications] kmail2 Reporter: Kevin Clevenger <kevin.clevenger>
Component: filteringAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.8.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kevin Clevenger 2012-08-28 22:42:08 UTC
When exporting filters the export does not contain the associated action for that filter:
[Filter #16]
Applicability=0
AutomaticName=false
ConfigureShortcut=false
ConfigureToolbar=false
Enabled=true
Icon=system-run
StopProcessingHere=true
ToolbarName=SBR Storage
action-args-0=
action-name-0=transfer
actions=1
apply-on=check-mail,manual-filtering
contentsA=storage-list@example.com
fieldA=To
funcA=contains
identifier=z07Fiu6c55ZGGVlI
name=SBR Storage
operator=and
rules=1


Reproducible: Always

Actual Results:  
I'm guessing action-args-0= should have the destination folder as a value if the action is a transfer
Comment 1 Laurent Montel 2012-08-29 07:15:32 UTC
Could you look at in akonadi_mailfilter_agent what was action-args-0 please ?
Comment 2 Laurent Montel 2012-08-29 07:38:10 UTC
ok works here.
It returns "" if path is not valid in tree.
So for me it was not valid here.
Verify it and reopen if necessary.
Comment 3 Kevin Clevenger 2012-08-29 15:31:49 UTC
Hi,

It looks like I had some Akonadi issues. I reset the dB and rebooted and the filter export looks like it's working correctly now. The odd thing is that the paths were valid and it was filtering and moving messages it was just that the export was omitting the destination folder.

[Filter #16]
Applicability=0
AutomaticName=false
ConfigureShortcut=false
ConfigureToolbar=false
Enabled=true
Icon=system-run
StopProcessingHere=true
ToolbarName=SBR Storage
action-args-0=Company/Mailing Lists/SBR Storage
action-name-0=transfer
actions=1
apply-on=check-mail,manual-filtering
contentsA=storage-list@example.com
fieldA=To
funcA=contains
identifier=z07Fiu6c55ZGGVlI
name=SBR Storage
operator=and
rules=1