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 649939 - Cann't create new folder
Cann't create new folder
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.2.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2011-05-11 07:40 UTC by Akhil Laddha
Modified: 2013-09-13 01:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (3.34 KB, patch)
2011-05-11 12:13 UTC, Milan Crha
committed Details | Review
evo patch ][ (1.47 KB, patch)
2011-05-11 15:30 UTC, Milan Crha
committed Details | Review

Description Akhil Laddha 2011-05-11 07:40:45 UTC
evolution 3.1.2

New folder -> enter folder name -> click on 'create', nothing happens.
I have tried to create in exchnage back end as well as in 'On this compupter'. Though in 'On this compupter', i cann't create sub folder but i can create foler under main hierarchy.
Comment 1 Milan Crha 2011-05-11 12:13:54 UTC
Created attachment 187621 [details] [review]
evo patch

for evolution;

Only two forgotten places after Matt's rewrite on folder uris.
Comment 2 Milan Crha 2011-05-11 12:16:24 UTC
Created commit 80d27e8 in evo master (3.1.2+)
Comment 3 Matthew Barnes 2011-05-11 12:36:08 UTC
Thanks for catching that!
Comment 4 Milan Crha 2011-05-11 15:30:07 UTC
Created attachment 187640 [details] [review]
evo patch ][

for evolution;

Hrm, bad catch :( It worked for local store, but not for any remote store. The problem is that '@' in folder name. Mine evo-exchange folder has this uri:
> folder://1294755972.2520.1%40machine/personal/Inbox
the host part is automatically decoded to
> 1294755972.2520.1@machine
when parsing this through camel_url_new(), but is not encoded when making it back into a string. Most places doesn't suffer of such issue, but here, when this is parsed through em_folder_selector_get_selected_uri(), the function doesn't encode the host name part and thus the next string is with the '@' decoded:
> folder://1294755972.2520.1@machine/personal/Inbox
so the e_mail_folder_uri_parse() makes CamelURL from the string in a way that everything in from of '@' is a user name, and only the part after it is a host name, thus searching for the service fails.

This patch is fixing e_mail_folder_uri_parse() to also include user part if it exists, but if there will be more issues with other encoded letters, then it'll probably not help enough.
Comment 5 Milan Crha 2011-05-11 15:40:07 UTC
Created commit f9a3112 in evo master (3.1.2+)
Comment 6 Akhil Laddha 2011-05-30 10:10:12 UTC
I am not able to create new folder again under 'On this computer'. I see below warning when i try to create folder named 'BackUp'. 

(evolution:3677): evolution-mail-WARNING **: Invalid folder URI 'maildir:/home/lakhil/.local/share/evolution/mail/local/BackUp'
Comment 7 Milan Crha 2011-05-31 09:13:19 UTC
Interesting, the URI:
> maildir:/home/lakhil/.local/share/evolution/mail/local
equals to the 'On This Computer' node, and the new parsing functions cannot handle that (they tries to avoid such situation, actually). I do not know how to fix this any better than with the below commit.

Created commit 95ec573 in evo master (3.1.2+)