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 637727 - Sent/Draft folder not set in startup-wizard account
Sent/Draft folder not set in startup-wizard account
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2010-12-21 10:00 UTC by Milan Crha
Modified: 2011-02-11 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evo patch (2.65 KB, patch)
2011-02-11 11:57 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2010-12-21 10:00:12 UTC
Moving this from a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=664431

Evolution as shipped with Fedora 14 does not have a "Sent Messages Folder"
configured under "Defaults" in the account options screen.  This causes a
somewhat confusing error to appear when sending an email message.  Sent
messages will still go on to their intended destination, and the message will
be appended to the "Sent" folder, but the error message persists until the user
goes into their account setup and sets a reasonable value.

Version-Release number of selected component (if applicable):  Evolution 2.32.1

Steps to Reproduce:
1.  Begin with a clean install of Evolution.
2.  Enter your account details (note under "Defaults" the folder is not set.
3.  Send a message, see the error.

Actual results:  An error message appears on the screen that may lead the user
to believe their message did not go through or that they did something wrong.

Expected results:  No error message since Evolution should set a reasonable
default value for this setting and/or not complain when it's going to fall-back
on the "Sent" folder anyway.
Comment 1 Akhil Laddha 2010-12-21 11:35:39 UTC
somehow related to bug 637440
Comment 2 Matthew Barnes 2010-12-21 13:27:40 UTC
Is this still reproducable with 2.91?  I rewrote all the sending logic.
Comment 3 Milan Crha 2010-12-21 14:52:52 UTC
I noticed this too with new fresh account, just after install, when there is no evolution running yet. You get a startup wizard to configure your first email account, and it has not filled Sent and Drafts folder, probably because the folder button checks whether they exist, but they are not, the underlying data are not initialized yet. That's my guess on the issue.
Comment 4 Milan Crha 2011-02-11 11:57:25 UTC
Created attachment 180648 [details] [review]
evo patch

for evolution;

e-mail-local wasn't initialized, so it was returning NULL URLs for Sent and Draft folders in startup-wizard. I realized that the 'initialized' variable wasn't set properly in e_mail_local_init, so I fixed that, together with added few more checks to avoid issues like this.
Comment 5 Milan Crha 2011-02-11 11:59:40 UTC
Created commit 7215cf0 in evo master (2.91.90+)