Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1070749

Summary: [IMAPx] Try to autodetect server folder variants for local folders and use them
Product: Red Hat Enterprise Linux 7 Reporter: Martin <mholec>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: fidencio, jkoten, lmiksik, mbarnes, mclasen, mcrha, pholica, tpelka, vbenes
Target Milestone: pre-dev-freezeKeywords: FutureFeature, Reopened
Target Release: 7.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: evolution-3.12.11-17.el7 Doc Type: Enhancement
Doc Text:
Feature: Autodetect server folder variants for local folders and use them Reason: To store mails on the server, being accessible from multiple machines Result: IMAP accounts pair server folders for usage like Draft or Sent folders after the first run, or when asked to in account Preferences, thus such messages are stored on the server side, available from any client, not only from the machine where they were created.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 01:05:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1256306    

Description Martin 2014-02-27 13:54:28 UTC
Description of problem:
Evolution should try to autodetect server folder variants for local folders and use them.



Version-Release number of selected component (if applicable):
evolution-3.8.5-19.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Configure e-mail account in Evolution.
2. Send e-mail, save draft and template, move to trash and spam messages.

Actual results:
Evolution always stores this messages in local folders. User has to configure server variants manually in "Preferences - Account Editor - Defaults".

Expected results:
Evolution always should try to autodetect these folder on server. Use local folders only as a fallback when Evolution can't find server variants.

Additional info:
Evolution should always look for Sent, Drafts, Trash, Templates and Spam folders on server. If this fails, look at current locale and try to look up for localized variants on server, e.g. Sent => Odeslané.

If this also fails, Evolution configuration wizard could provide "Preferences - Account Editor - Defaults - Special Folders" as another page in the wizard.

Comment 3 Jiri Koten 2015-05-19 09:35:13 UTC
Still reproducible in evolution-3.12.11-2.el7

Comment 4 Milan Crha 2015-05-19 10:35:17 UTC
(In reply to Jiri Koten from comment #3)
> Still reproducible in evolution-3.12.11-2.el7

Right, it's waiting for the upstream bug fix first.

Comment 5 Milan Crha 2016-01-14 14:45:31 UTC
Devel-nacking, it's a feature, might not be done before RHEL 7.3 for sure. It can have also side effects, like users might not expect to use real trash/junk folders on the server when they are used to virtual folders - such change would be a regression to them.

Comment 6 Milan Crha 2016-01-22 16:24:58 UTC
I just fixed this upstream (see the above GNOME bug). The change can be done without API/ABI change, but it requires changes in three packages:
evolution-data-server, evolution and evolution-ews. I can backport it, if all three packages will have its bug reports (eds has this one) and all three packages will be approved for an update.

Comment 8 Milan Crha 2016-03-07 14:14:10 UTC
I pushed evolution-data-server changes for this as part of the bug #1265684. There are still missing changes for the evolution part, thus I move this to the evolution component. I also mentioned above that a change on the evolution-ews side should be done too, but it's only a nice-to-have, it's not mandatory.

Comment 10 Milan Crha 2016-03-21 14:32:17 UTC
The fix also adds "Lookup folders" button into Mail account properties, on the Defaults tab, which is shown only if the account type supports this feature. Once it's clicked, the account tries to pair real folders on the server with those in the Defaults tab. This is also done the first time the account connects to the server after it is created.

Comment 11 Milan Crha 2016-06-22 09:50:03 UTC
*** Bug 1348815 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2016-11-04 01:05:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2228.html