aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-ops.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a9d44019fc..37c96cc2dc 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-24 Dan Winship <danw@helixcode.com>
+
+ * mail-ops.c (composer_send_cb): connect to and disconnect from
+ the transport.
+
2000-05-24 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Added libepaned.a.
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 90acb9e84d..16d045f1b0 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -312,22 +312,27 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
}
message = e_msg_composer_get_message (composer);
+ gtk_object_destroy (GTK_OBJECT (composer));
camel_mime_message_set_from (message, from);
camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer",
"Evolution (Developer Preview)");
camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0);
- camel_transport_send (transport, CAMEL_MEDIUM (message), ex);
- if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
+ camel_service_connect (CAMEL_SERVICE (transport), ex);
+ if (!camel_exception_is_set (ex))
+ camel_transport_send (transport, CAMEL_MEDIUM (message), ex);
+ if (!camel_exception_is_set (ex))
+ camel_service_disconnect (CAMEL_SERVICE (transport), ex);
+ if (camel_exception_is_set (ex)) {
mail_exception_dialog ("Could not send message", ex, composer);
camel_exception_free (ex);
gtk_object_unref (GTK_OBJECT (message));
return;
}
+ camel_exception_free (ex);
gtk_object_unref (GTK_OBJECT (message));
- gtk_object_destroy (GTK_OBJECT (composer));
}
199/+1 * - Update to 4.1wen2014-12-212-4/+3 * cleanup plistbapt2014-12-213-3/+0 * Update to 4.3.5.jkim2014-12-191-4/+4 * Update to 4.3.4.jkim2014-11-271-4/+4 * Change the way Perl modules are installed, update the default Perl to 5.18.mat2014-11-2612-10/+11 * - Drop dirrm* from plistsamdmi32014-11-227-24/+0 * Upgrade to 4.0.1.vanilla2014-11-222-4/+4 * Fix the generation of Fontmap.diff, which I broke earlier, when trying tomi2014-11-191-11/+10 * Cleanup plistantoine2014-11-1217-87/+3 * Update to 4.3.3.jkim2014-11-011-4/+4 * Cross-platform emulator of Elektronika RPN programmable calculatoramdmi32014-10-294-0/+51 * KDE/FreeBSD team presents KDE SC 4.14.2 and KDE Workspace 4.11.13!makc2014-10-193-172/+32 * Update to 4.3.2.jkim2014-10-172-5/+4 * Add missing dependencies and CPE data.des2014-10-151-1/+8 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-114-2/+4 * eric4 ports: update to version 4.5.24.bsam2014-09-101-2/+2 * - Update to 4.0sunpoet2014-09-062-3/+3 * Change MAINTAINER to bz-ports@ as discussed with bugzilla@ (now bz-ports@)flo2014-09-061-1/+1 * Allow staging as a regular userantoine2014-09-061-0/+1 * Remove non staged ports without pending PR from russianbapt2014-09-0232-1215/+0 * More unzip removalantoine2014-08-181-1/+0 * Upgrade OpenEXR and ilmbase to 2.2.0.mandree2014-08-162-1/+2 * Merge 4 unzip slave ports into archivers/unzip as non-default optionsmarino2014-08-152-93/+0 * russian/wordpress: update to 3.9.2wg2014-08-092-3/+3 * Mark BROKEN: fails to installantoine2014-08-091-0/+2 * www/MT, russian/MT: Upgrade version 5.2.9 => 5.2.10marino2014-08-0417-1/+200 * Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-305-5/+5 * russian/xcode:makc2014-07-291-3/+4 * Reset maintainership for ports not staged with no pending PRbapt2014-07-254-4/+4 * Fix build with texlivebapt2014-07-221-1/+1 * Remove indefinite articles and trailing periods from COMMENT, plusolgeni2014-07-172-2/+2 * remove NO_STAGE.vanilla2014-07-071-1/+0 * Update to version 4.5.23.bsam2014-06-301-2/+2 * - Stage supportmiwi2014-06-281-4/+3 * Update to 4.2.5.jkim2014-06-241-4/+4 * Remove localized bugzilla ports for which the master port expired:rene2014-06-2111-667/+0 * Update distinfo after 4.2.4 updateantoine2014-06-141-4/+4 * - stagify the portrodrigo2014-06-1311-33/+205 * Support staging.mi2014-06-101-2/+1 * - Update to 3.9.1sunpoet2014-05-202-3/+3 * Convert my ports to USES=tarmakc2014-05-124-4/+4 * Update eric4 ports to version 4.5.22.bsam2014-05-121-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.5 and KDE Workspace 4.11.9!makc2014-05-112-2/+3 * Update to 4.1.6.jkim2014-05-071-4/+4 * - update to bugzilla-4.4.4-ru-20140422ohauer2014-05-062-3/+3 * - Update to 3.9sunpoet2014-04-273-25/+12 * - update russian bugzilla language templatesohauer2014-04-236-15/+15 * - Update to 3.8.2sunpoet2014-04-132-5/+3 * Eric4 ports: update to version 4.5.21.bsam2014-04-061-2/+2 * KDE/FreeBSD team presents KDE SC 4.12.4 and KDE Workspace 4.11.8!makc2014-04-032-3/+3 * Remove some expired xmms ports (abandonware, unmaintained):antoine2014-03-232-16/+0 * - Support stagingehaupt2014-03-183-14/+8 * Update to version 4.5.20.bsam2014-03-141-2/+2 * - Support stagingehaupt2014-03-131-7/+4 * Convert r* to USES=zipbapt2014-03-114-4/+4 * KDE/FreeBSD team presents KDE SC 4.12.3 and KDE Workspace 4.11.7!makc2014-03-052-6/+6 * Update to 4.1.5. It is partially based on the following PR.jkim2014-02-261-4/+4 * Deprecate and set expiration date for xmms stuff that is unmaintainedantoine2014-02-241-0/+2 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.2 and KDE Workspace 4.11.6!makc2014-02-184-42/+52 * - Stage supportmiwi2014-02-181-8/+4 * - Support stagingehaupt2014-02-061-4/+7 * - Update to 3.8.1sunpoet2014-02-042-3/+3 * - Stage supportmiwi2014-02-031-4/+2 * - Update gimp-help ports to 2.8.1. Polish translation has been removed, newmakc2014-02-011-3/+3 * - add stage supportaz2014-01-3010-16/+6 * Update maintainer email addressrodrigo2014-01-291-1/+1 * Remove ispell which is deprecated for long, consider using aspell instead or ...bapt2014-01-298-106/+0 * - Stage supportmiwi2014-01-261-1/+0 * Fix properties on pkg-plistbapt2014-01-223-3/+0 * Stage supportantoine2014-01-171-1/+0 * . update to version 4.5.18;bsam2014-01-081-2/+2 * Fix packaging after MASTER port was stagedantoine2014-01-041-1/+0 * - Update to 5.2.9.rakuco2013-12-301-3/+0 * - Update to 3.8sunpoet2013-12-272-3/+3 * Update to version 4.5.17.bsam2013-12-251-2/+2 * Master site does not allow anon ftp access for the reason unknown,ache2013-12-201-1/+2 * - Update Calligra Suite to 2.7.5.avilla2013-12-172-3/+2 * - update/add russian bugzilla templatesohauer2013-12-1410-8/+341 * - Add LICENSEsunpoet2013-12-061-0/+2 * - Fix index spam and bmake warningbdrewery2013-11-241-1/+1 * . USE_GMAKE -> USES=gmake;bsam2013-11-181-3/+2 * - Update to 20131101sunpoet2013-11-183-6/+8 * Fix stagingbapt2013-11-151-1/+1 * . Improve spelling a little.mi2013-11-144-19/+26 * - Update to 3.7.1vg2013-11-122-3/+3 * Update to version 4.5.15.bsam2013-11-111-2/+2 * - Update MASTER_SITES, WWWmakc2013-11-1016-32/+32 * . remove a standard option description (MOTIF);bsam2013-11-071-3/+2 * Stagifybapt2013-11-041-5/+4 * Stagifybapt2013-11-041-6/+5 * Support stage, use bsdtar to extractbapt2013-11-041-4/+3 * Stagifybapt2013-11-041-1/+0 * - Add stage supportswills2013-10-302-2/+0 * - Update to 3.7sunpoet2013-10-262-3/+3 * - Update to 4.0.6.jkim2013-10-262-5/+4 * multimedia/xmms:tijl2013-10-222-10/+2 * - adjust include pathohauer2013-10-181-1/+1 * - update to latest release [1]ohauer2013-10-18