Bug 326474 - Does not import filters from previous Kmail
Summary: Does not import filters from previous Kmail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.10.5
Platform: Debian testing Linux
: NOR critical
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-10-23 01:27 UTC by envite
Modified: 2018-10-27 02:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description envite 2013-10-23 01:27:47 UTC
I have just upgraded to Kmail 4.10.5 from 4.4.11 and now there are no filters configured at all.

Reproducible: Didn't try

Steps to Reproduce:
1. Have an old Kmail configured
2. Upgrade to Kmail 4.10.5
3. Check filters
Comment 1 Laurent Montel 2013-10-24 11:16:08 UTC
".kde/share/config/akonadi_mailfilter_agentrc" is empty ?
For sure I will not try to fix it I don't have 4.4 it's very very old so any chance that I fixe it.
Can just try to help you.
Comment 2 Laurent Montel 2014-02-20 11:34:31 UTC
wait info
Comment 3 envite 2014-02-20 18:47:23 UTC
Sorry, I missed your first e-mail.

Currently, akonadi_mailfilter_agentrc has my newly defined filters, so I can not check if it was empty.

My only backup so old indicates that some days before the upgrade there were no such file. filters were stored on kmailrc.

So it is truly a bug in the upgrade process: version 4.10.5 failed to get the filters from 4.4.11's kmailrc.
Comment 4 Fab Stz 2015-02-11 18:30:06 UTC
Hi, I can confirm the issue when upgrading from debian wheezy (kdepim 4.4.11.1) to jessie (kdepim 4.14.1)

During migration :
The filters are migrated but kept in file ~/.kde/share/config/kmail2rc
Thus, they are applied to the emails, but not viewable in the filter configuration windows of kmail2

My workaround to migrate the filters :
1. Copy all [Filter #xx] sections from ~/.kde/share/config/kmail2rc to ~/.kde/share/config/akonadi_mailfilter_agentrc

2. In the latter add this section and in the filters value specify the count of Filter sections you added (instead of yy)
[General]
filters=yy

3. Remove the [Filter #xx] sections from ~/.kde/share/config/kmail2rc
Comment 5 Laurent Montel 2015-02-11 18:56:15 UTC
The problem is that mailfilteragent was created after kmail2
=> when we migrate from kmail1 we have a kmailrc and it will take time before to migrate to kmail2rc

kconf_update is launch before it so it can't migrate it...
Comment 6 Andrew Crouthamel 2018-09-25 21:36:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 02:53:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!