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 596027 - In Anjal, although invalid mail address warning popup, mail's tab closed automatically
In Anjal, although invalid mail address warning popup, mail's tab closed auto...
Status: VERIFIED FIXED
Product: anjal
Classification: Deprecated
Component: mail
git master
Other Linux
: Normal normal
: ---
Assigned To: Yan Li
anjal-maint
Depends on:
Blocks:
 
 
Reported: 2009-09-23 02:36 UTC by Yan Li
Modified: 2009-11-05 06:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
evolution-patch-bug-596027-dont-close-on-sending-error.patch (3.87 KB, patch)
2009-10-09 09:14 UTC, Yan Li
committed Details | Review
anjal-patch-dont-close-on-sending-error.patch (2.71 KB, patch)
2009-10-09 09:15 UTC, Yan Li
committed Details | Review

Description Yan Li 2009-09-23 02:36:18 UTC
This bug is first reported at Moblin Bugzilla: http://bugzilla.moblin.org/show_bug.cgi?id=6108

Build Image(yyyy-mm-dd): git head

Bug detailed descriptions(behavior, impact, etc)
===========================================================
Write an email with empty (or any invalid) "To:" address, then press "Send" button. Although invalid mail address warning popup, mail's tab closed automatically. User have to rewrite it again.

Reproduce Steps(steps,current result, reproduce possibility)
===========================================================
(1)Launch Anjal with a valid mail account
(2)Write an email with empty "To:" address
(3)press "Send" button
(4)Although invalid mail address warning popup, mail's tab closed automatically
Comment 1 Yan Li 2009-10-09 09:14:13 UTC
Created attachment 145107 [details] [review]
evolution-patch-bug-596027-dont-close-on-sending-error.patch

I've fixed this bug by patching Evolution and Anjal.

A new field "sending" is added to the Composer of Evolution to indicate whether the sending is successful or not. Anjal will only emit VIEW_CLOSE signal when the sending was successful.

Anjal had a "sending" field in _MailComposerViewPrivate but it didn't work as expected (at least by my understood). Those two patches moved that field to Evolution's Composer. The Composer will set it when the mail passed all checks and is being sent, so Anjal won't have to do those checks again but just need to check the "sending" field.

The downside is that two new API functions will have to be added to Evolution to access that "sending" field.
Comment 2 Yan Li 2009-10-09 09:15:02 UTC
Created attachment 145108 [details] [review]
anjal-patch-dont-close-on-sending-error.patch
Comment 3 Srinivasa Ragavan 2009-10-09 09:20:45 UTC
Yan, I'm sorry, I dont have a build/machine to test this. It may take a week or so to comment back here :(
Comment 4 Yan Li 2009-10-10 01:39:25 UTC
No problem. I've already put those patches into Moblin for broader testing. The basic idea is that Anjal gets sending result from Evolution's composer and uses that to decide whether to close the composer or not.
Comment 5 Srinivasa Ragavan 2009-11-03 12:18:38 UTC
Comment on attachment 145108 [details] [review]
anjal-patch-dont-close-on-sending-error.patch

To anjal-0-1 branch and master.
Comment 6 Yan Li 2009-11-04 05:46:07 UTC
The patch to Evolution changes API (two new functions in e-msg-composer.h: e_msg_composer_{get,set}_sending()), is this OK for evolution gnome-2-28 branch?
Comment 7 Srinivasa Ragavan 2009-11-04 11:15:37 UTC
Its ok to add apis to Evolution.
Comment 8 Yan Li 2009-11-05 06:36:49 UTC
Comment on attachment 145107 [details] [review]
evolution-patch-bug-596027-dont-close-on-sending-error.patch

Evolution patch committed to master and gnome-2-28.