After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 643530 - mail folder inside .evolution/mail migrated by mistake
mail folder inside .evolution/mail migrated by mistake
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Shell
2.32.x (obsolete)
Other Linux
: Low enhancement
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-02-28 21:28 UTC by Yves-Alexis Perez
Modified: 2021-05-19 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yves-Alexis Perez 2011-02-28 21:28:52 UTC
Hey,

I had a bug report from a Debian user saying that when migrating to freedesktop.org folders (from .evolution to .local/share/evolution), some mails were migrated with the config not updated and so the user at one point thought all the mail was gone.

The downstream bug is at http://bugs.debian.org/615822 but basically, for local maildir accounts, you need to configure a folder path. In that case he chose a folder inside .evolution/mail (I guess to put every mail on the same place on the box and the delivery was done accordingly). 

At migration time, the folder was migrated to .local/share/evolution while it was not a local evolution cache folder, and as the account config wasn't updated, the maildir appeared empty in evo.

I'm not sure it's a good idea to deliver mail to a folder inside evolution cache, but nothing prevented that and having all the local mail at the same place makes some sense, so it might be worth adding a check in the migration code to only migrate folders which are indeed owned by evolution.
Comment 1 Matthew Barnes 2011-02-28 21:44:06 UTC
Camel doesn't yet distinguish between data directories and cache directories, so the migration routine for mail is basically:

   mv ~/.evolution/mail $(XDG_DATA_HOME)/evolution/mail

I guess we'll need to move the data piecemeal by registered accounts, although the user is ultimately at fault for setting up a Maildir account in a private application directory.  Therefore, low priority.

(Switching to Shell component since that's where the mail migration code lives.)
Comment 2 Yves-Alexis Perez 2011-02-28 21:46:06 UTC
Yup, as I said it doesn't look like a good idea but in the meantime it's not prevented by the application and it makes some sense (“keep all my mail at the same place” or something like that). 

But yeah, fine tuning for cases like this is hard and might lead to causing more issues than  solving ones.
Comment 3 André Klapper 2021-05-19 11:36:47 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. 
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/evolution/-/issues/

Thank you for your understanding and your help.