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 638307 - Error when sending mail after converting to maildir
Error when sending mail after converting to maildir
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.0.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Matthew Barnes
Evolution QA team
: 638501 644442 649997 654875 654969 657061 661234 664224 665236 667654 677324 689613 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-12-29 22:06 UTC by Kjartan Maraas
Modified: 2013-09-13 01:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (706 bytes, patch)
2011-02-17 11:32 UTC, Milan Crha
committed Details | Review
evo patch ][ (2.85 KB, patch)
2011-06-17 09:44 UTC, Milan Crha
committed Details | Review

Description Kjartan Maraas 2010-12-29 22:06:05 UTC
I get this every time I try to send a message:

The reported error was "Could not add to mbox:///home/kmaraas/.local/share/evolution/mail/local#Sent: Cannot find the folder «Sent»: the folder does not exist.
Adding to local «Sendt» folder instead"

Losely translated back to english from the norwegian translation :-)
Comment 1 André Klapper 2010-12-29 23:35:13 UTC
What is the setting for
"Edit > Prefs > Mail Accounts > Edit > Defaults > Folder for sent messages" ?
Comment 2 Kjartan Maraas 2010-12-31 17:56:58 UTC
It was set correctly to the "Sendt" folder, but choosing it again "fixed" the problem :-/
Comment 3 Kjartan Maraas 2011-01-11 11:50:31 UTC
And now it's back... The folder in my version of Evolution is called "Sendt". Is this a problem with lack of localization in the mbox code?
Comment 4 Akhil Laddha 2011-02-08 08:47:17 UTC
can be related to bug 637727
Comment 5 Milan Crha 2011-02-16 16:09:24 UTC
*** Bug 638501 has been marked as a duplicate of this bug. ***
Comment 6 Milan Crha 2011-02-17 11:32:06 UTC
Created attachment 181118 [details] [review]
evo patch

for evolution;

This was tricky. I was afraid that we'll need more code to be done, like fixing search folders, every mail account and such, but no, this works as it is (if user lets evo migrate). The only thing was that the sent/draft folder set on the newly created account, the old mbox, was localizing their names, which is wrong in uris.
Comment 7 Milan Crha 2011-02-17 11:33:31 UTC
Created commit 2ee58bb in evo master (2.91.90+)
Comment 8 Milan Crha 2011-03-14 08:26:52 UTC
*** Bug 644442 has been marked as a duplicate of this bug. ***
Comment 9 Milan Crha 2011-06-13 09:39:58 UTC
Reopening, it's not fixed in 3.0.2.
Comment 10 Milan Crha 2011-06-13 09:40:31 UTC
*** Bug 649997 has been marked as a duplicate of this bug. ***
Comment 11 Milan Crha 2011-06-13 09:44:28 UTC
Downstream bug report about the same in 3.0.2:
https://bugzilla.redhat.com/show_bug.cgi?id=712813
Comment 12 Milan Crha 2011-06-17 09:44:00 UTC
Created attachment 190100 [details] [review]
evo patch ][

for evolution;

To update accounts' Drafts and Sent folders pointing to the old mbox location during initial migration.
Comment 13 Milan Crha 2011-06-17 09:47:02 UTC
Created commit 2c4c8af in evo master (3.1.3+)
Created commit af4ddea in evo gnome-3-0 (3.0.3+)
Comment 14 Matthew Barnes 2011-07-19 01:51:21 UTC
*** Bug 654875 has been marked as a duplicate of this bug. ***
Comment 15 André Klapper 2011-07-20 18:52:38 UTC
*** Bug 654969 has been marked as a duplicate of this bug. ***
Comment 16 André Klapper 2011-08-22 14:51:07 UTC
*** Bug 657061 has been marked as a duplicate of this bug. ***
Comment 17 Milan Crha 2011-09-07 12:36:37 UTC
*** Bug 657061 has been marked as a duplicate of this bug. ***
Comment 18 nmichaels 2011-09-22 13:16:25 UTC
I'm getting this message in 3.0.3. http://live.gnome.org/Evolution/FAQ says it was fixed in 3.0.2 and later. Evolution segfaulted during migration from whatever I had before; maybe that's why.
Comment 19 Milan Crha 2011-09-23 05:55:29 UTC
(In reply to comment #18)
> I'm getting this message in 3.0.3. http://live.gnome.org/Evolution/FAQ says it
> was fixed in 3.0.2 and later. Evolution segfaulted during migration from
> whatever I had before; maybe that's why.

Seems like a typo, as it ought to be 3.0.3 (see comment #13). Anyway, the code goes into effect only the first time you run evolution after update from 2.x, and your current version should be 3.0.3 (the one you are updating to). It's possible that evolution didn't get up to the point of fixing your Sent/Draft folder links if it crashed during this initial data migration. In that case only comment 1 & comment 2 can help you.
Comment 20 André Klapper 2011-10-10 10:25:24 UTC
*** Bug 661234 has been marked as a duplicate of this bug. ***
Comment 21 Akhil Laddha 2011-12-01 04:31:18 UTC
*** Bug 665236 has been marked as a duplicate of this bug. ***
Comment 22 Akhil Laddha 2011-12-29 08:05:24 UTC
*** Bug 664224 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2012-01-11 15:03:47 UTC
*** Bug 667654 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2012-06-02 08:17:57 UTC
*** Bug 677324 has been marked as a duplicate of this bug. ***
Comment 25 frederik mattelaere 2012-06-05 10:21:53 UTC
Hi,

I've also this error when I send e-mails:
The error I've:

mbox:///home/frederik/.local/share/evolution/mail/local#Sent mislukt: Ongeldige map-URI ‘mbox:///home/frederik/.local/share/evolution/mail/local#Sent


All mine settings on this computer are the same as mine other Ubuntu computer & there I don't have that problem:

The version of ubuntu i use:
-----------------------------
frederik@Ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

Version of Evolution:
---------------------
Evolution 3.2.3


Note:
-----
Computer is updated to all latest updates!


Best Regards,
Frederik
Comment 26 Alain BOURDEAU 2012-06-05 16:33:25 UTC
Bonjour,
Strange, 

I just upgrade a UBUNTU 10.04 LTS to 12.04 LTS directly thru 'update' "mise à jour en Français" and this new evolution, after self transforming the old mail storage system to the new one run fine like befor.

The first mail I write with a atached file is sending just with a warning saiyng that one directorie is not accessible. I think that the myname@localhost count is not good.

Best regard,
Alain
Comment 27 Leonard Evens 2012-06-13 18:02:05 UTC
I upgraded from Fedora 14 to Fedora 17 by doing a fresh install but not chaning my /home directory.

Under evolution 3.4.2, lots of things stopped working from my .local/share/evolution/mail settings.

In particular, whenever I send a messages I get the error message referred to above.  the sent message does get put in On this computer > Sent, where I want it.
I tried to change defaults as recommended here, but I can't save any changes to Defaults because Apply is grayed out.
As best I can tell, all the files in the 
.local/share/evolution/mail
tree belong to me with at least rw permissions.

evolution 3.03 under Fedora 15 has a slightly different interface, but this problem does not appear there.

Also, under an alternate identity in Fedora 17, I created a fresh evolution, and the problem didn't appear there.
Comment 28 Mike Doherty 2012-07-06 23:35:41 UTC
I have just seen this error after installing evolution 3.2.3. Should I just create the missing mbox?
Comment 29 Milan Crha 2012-07-09 07:16:56 UTC
(In reply to comment #28)
> I have just seen this error after installing evolution 3.2.3. Should I just
> create the missing mbox?

See comment #1.
Comment 30 Pavel 2012-10-11 19:51:41 UTC
I'm still getting this error in evolution 3.4.4
Comment 31 Milan Crha 2012-10-19 09:03:42 UTC
That might mean that the migration utility didn't run properly. Did you have this error in 3.4.3 too? The thing is that the migration runs only between major versions, like when you update from 3.2.x to 3.4.x, and only once. You may want to edit your account and set the sent folder manually (the 3.4.4 has a fix in migration too, which prevented proper run of migration).
Comment 32 Pavel 2012-10-19 18:19:39 UTC
Actually, when I moved from F14 to F17, I made a backup in evo 2 and restored it in evo 3.0.1 (had to use F15 in a VM), because version 3.4.1 could not restore that backup properly - all my local mail folders were empty, and it did not offer to migrate mbox format to maildir. Then I made a backup again in same VM and restored in on F17 with evolution 3.4.1 which comes with F17. After that restoration, I saw that problem every time I send email.
Comment 33 Milan Crha 2012-10-22 10:36:48 UTC
As I said above, 3.4.4 has a fix in migration, which makes your steps working as expected without the virtual machine. The change is done without bug reference, at least within the NEWS file for that version.
Comment 34 Pavel 2012-10-22 11:04:50 UTC
You mean, it will be able to restore backup made by version 2 and convert mbox format to maildir? That would be great. I won't need it now, but still, it is good.
Comment 35 Milan Crha 2012-10-23 07:25:43 UTC
Yes, you should be able to restore from F14 (2.32.3) backup in F17 (3.4.4) directly, without inter-step.
Comment 36 André Klapper 2012-12-04 18:11:23 UTC
*** Bug 689613 has been marked as a duplicate of this bug. ***
Comment 37 Pacho Ramos 2013-04-02 19:50:55 UTC
I am still getting this with 3.8.0 :/
Comment 38 Milan Crha 2013-04-03 07:00:44 UTC
The automatic conversion is not done each start, but only when updating from some older version. I wanted to name the exact version, but I cannot find the code in 3.8.0; it's gone for an unknown reason to me.
Comment 39 Pacho Ramos 2013-04-03 21:54:07 UTC
In my case, I updated from old 2.32 version
Comment 40 Pacho Ramos 2013-04-07 15:57:05 UTC
(In reply to comment #39)
> In my case, I updated from old 2.32 version

Since this problem will hit all people running Gentoo stable when we tag Gnome 3.8 as stable in next months, could you provide me the "proper" way to solve this if the code won't be readded to 3.8?

Thanks
Comment 41 Milan Crha 2013-04-08 08:10:33 UTC
To be honest, I do not know why it was dropped, or where it was moved.

Matthew, could you clarify your changes on this, please?
Comment 42 Matthew Barnes 2013-04-08 11:17:49 UTC
As I recall, the migration code was doing a bunch of EAccount manipulation and we dropped the whole EAccount class in 3.6.  Probably got lost at some point during the 18 months I was working on that.  I can only assume it was an oversight.

e_mail_folder_uri_parse() would be a better place to check for that corner case anyway, since there's already a bunch of backward-compatibility gunk there to handle old folder URI formats.
Comment 43 Matthew Barnes 2013-04-08 13:26:32 UTC
(In reply to comment #42)
> e_mail_folder_uri_parse() would be a better place to check for that corner case
> anyway, since there's already a bunch of backward-compatibility gunk there to
> handle old folder URI formats.

I implemented this for Evolution 3.9.1 and 3.8.1:

https://git.gnome.org/browse/evolution/commit/?id=94372b5f1857b66d1ae7e14a37075122b5c8336c

https://git.gnome.org/browse/evolution/commit/?h=gnome-3-8&id=ac480dcea5e584a54adf4c5a6b832e49c70f7fe7
Comment 44 Pacho Ramos 2013-04-14 18:42:23 UTC
Cannot them be reintroduced for 3.8? :/
Comment 45 Pacho Ramos 2013-04-14 21:23:14 UTC
Oops, sorry, I misunderstood comment #43, it now works fine. Thanks a lot :D