aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-06-27 02:21:45 +0800
committerPeter Williams <peterw@src.gnome.org>2000-06-27 02:21:45 +0800
commite923d2eea9e325677c57f88e1209765acb306846 (patch)
treed6d04bad75e1d5449799db9a27cf7279c5152ca9 /mail/mail-ops.c
parenta6123511735299f9811a40ed55344a9fcba90655 (diff)
downloadgsoc2013-evolution-e923d2eea9e325677c57f88e1209765acb306846.tar.gz
gsoc2013-evolution-e923d2eea9e325677c57f88e1209765acb306846.tar.zst
gsoc2013-evolution-e923d2eea9e325677c57f88e1209765acb306846.zip
Make the broken threads optional
svn path=/trunk/; revision=3740
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index feddab24e2..7ba935be8a 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -86,11 +86,15 @@ mail_exception_dialog (char *head, CamelException *ex, gpointer widget)
g_free (msg);
}
+#ifdef USE_BROKEN_THREADS
static void
async_mail_exception_dialog (char *head, CamelException *ex, gpointer unused )
{
mail_op_error( "%s: %s", head, camel_exception_get_description( ex ) );
}
+#else
+#define async_mail_exception_dialog mail_exception_dialog
+#endif
static gboolean
check_configured (void)
@@ -326,7 +330,11 @@ fetch_mail (GtkWidget *button, gpointer user_data)
info = g_new( rfm_t, 1 );
info->fb = FOLDER_BROWSER( user_data );
info->source_url = url;
+#ifdef USE_BROKEN_THREADS
mail_operation_try( _("Fetching mail"), real_fetch_mail, NULL, info );
+#else
+ real_fetch_mail( info );
+#endif
}
static gboolean
@@ -360,8 +368,10 @@ real_send_mail( gpointer user_data )
char *from = NULL;
struct post_send_data *psd = NULL;
+#ifdef USE_BROKEN_THREADS
mail_op_hide_progressbar();
mail_op_set_message( "Connecting to transport..." );
+#endif
ex = camel_exception_new ();
composer = info->composer;
@@ -378,13 +388,17 @@ real_send_mail( gpointer user_data )
camel_service_connect (CAMEL_SERVICE (transport), ex);
+#ifdef USE_BROKEN_THREADS
mail_op_set_message( "Connected. Sending..." );
+#endif
if (!camel_exception_is_set (ex))
camel_transport_send (transport, CAMEL_MEDIUM (message), ex);
if (!camel_exception_is_set (ex)) {
+#ifdef USE_BROKEN_THREADS
mail_op_set_message( "Sent. Disconnecting..." );
+#endif
camel_service_disconnect (CAMEL_SERVICE (transport), ex);
}
@@ -490,7 +504,12 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
info->from = from;
info->psd = psd;
+#ifdef USE_BROKEN_THREADS
mail_operation_try( "Send Message", real_send_mail, cleanup_send_mail, info );
+#else
+ real_send_mail( info );
+ cleanup_send_mail( info );
+#endif
}
static void
@@ -631,8 +650,10 @@ static void real_expunge_folder( gpointer user_data )
FolderBrowser *fb = FOLDER_BROWSER(user_data);
CamelException ex;
+#ifdef USE_BROKEN_THREADS
mail_op_hide_progressbar();
mail_op_set_message( "Expunging %s...", fb->message_list->folder->full_name );
+#endif
camel_exception_init(&ex);
@@ -653,7 +674,11 @@ expunge_folder (BonoboUIHandler *uih, void *user_data, const char *path)
FolderBrowser *fb = FOLDER_BROWSER(user_data);
if (fb->message_list->folder) {
+#ifdef USE_BROKEN_THREADS
mail_operation_try( "Expunge Folder", real_expunge_folder, NULL, fb );
+#else
+ real_expunge_folder( fb );
+#endif
}
}
move from X11BASE to LOCALBASEoliver2007-05-271-2/+2 * Fix the build of x11-fonts/xmbdfed with gcc42.keramida2007-05-271-0/+10 * LIBERATION font software consists of TrueType-OpenType formatted font softwarethierry2007-05-266-0/+94 * . change the prefix (/usr/X11 -> %{LOCALBASE}) at the configuration file; [1]bsam2007-05-236-18/+27 * Clean up pkg-message a bit:marck2007-05-232-11/+3 * Remove; moved to x11-fonts/encodingspav2007-05-205-113/+0 * - Welcome X.org 7.2 \o/.flz2007-05-20314-2445/+3860 * - Update to 2.5sat2007-04-152-4/+4 * Sync fontconfig with the fd.o git repository to fix a bug rendering DejaVumarcus2007-04-142-1/+81 * - update to 0.41leeym2007-04-062-4/+4 * - Update to 2.4sat2007-04-042-4/+10 * - Correct pkg-plist for newer fontconfigrafan2007-04-022-1/+1 * - Change my email.stas2007-03-281-1/+1 * Portlint:mezz2007-03-271-1/+1 * Include bsd.port.pre.mk before checking OPTIONS. Thanks my mentor fordryice2007-03-261-3/+5 * - fix plistdryice2007-03-262-2/+22 * Do not install config file as these fonts will automatically be loadedmarcus2007-03-252-8/+2 * - Fix plistpav2007-03-221-0/+1 * - Revert my previous commit; it was totally boguspav2007-03-221-1/+0 * - Fix plist for reference portpav2007-03-211-0/+1 * Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOMEmarcus2007-03-1916-62/+1610 * Adding port x11-fonts/p5-Font-TTFMetrics, a Perl module for parsing TTF files.aaron2007-03-195-0/+50 * - Take maintainershipmiwi2007-03-121-1/+1 * - fc-match: Add 's' to getopt pattern, so -s is recognizedpav2007-03-102-1/+12 * update to 0.8.0dryice2007-03-072-6/+6 * Update to 2.15ahze2007-02-262-4/+4 * - Update to 2.3sat2007-02-163-14/+4 * - Update to 2.2sat2007-02-092-4/+4 * - remove unavailable WWW from pkg-descdryice2007-02-042-2/+1 * - Remove support for xfree86-3pav2007-02-035-39/+9 * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-012-0/+2 * Use libtool port instead of included version to avoid a.out objformat botchkris2007-01-301-0/+1 * Update to 2.14ahze2007-01-282-5/+5 * This is a port of te_IN fonts. Fonts like Pothana2000 and Vemana fontsmiwi2007-01-256-0/+62 * Add port x11-fonts/fntsample:sat2007-01-225-0/+56 * Update to 2.13ahze2006-12-302-4/+4 * Update to 0.6.12ehaupt2006-12-202-5/+5 * - Respect X11BASErafan2006-12-071-4/+4 * - Update to 2.12ahze2006-11-203-11/+6 * Change my email address to farrokhi@ in all ports that I maintain.farrokhi2006-11-081-1/+1 * - Update to 2.11ahze2006-11-022-4/+4 * - Pass maintainership to submittermiwi2006-11-013-4/+4 * Disable the CJK patchset as it is no longer needed after the recentmarcus2006-11-012-9/+6 * Disable the cjk patch, same with freetype2, it doesn't build.mezz2006-10-171-5/+5 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-142-5/+5 * Presenting GNOME 2.16.1 for FreeBSD. This release represents a massivemarcus2006-10-142-6/+10 * Chase the new site.thierry2006-09-253-10/+9 * The author's page disapeared: host the distfile untill it will come back.thierry2006-09-031-2/+3 * NO_CDROM and NO_PACKAGE are not appropriate; use RESTRICTED insteadkris2006-09-031-2/+1 * NO_PACKAGE is not appropriate; use RESTRICTED instead. Mark BROKEN sincekris2006-09-031-1/+2 * - Use ../etc/fonts/conf.d mechanism for font configpav2006-08-296-36/+32 * Add junicode, a unicode font for medievalists (Latin, IPA and Runic).ehaupt2006-08-285-0/+63 * Commit my own version of DESTDIR-introduction recovery and modify themi2006-08-252-3/+6 * - Unbreakmiwi2006-08-211-5/+3 * - Update to 2.9ahze2006-08-212-4/+4 * - Update maintainer addressesmiwi2006-08-201-1/+1 * BROKEN: Does not buildkris2006-08-181-0/+2 * Fix after DESTDIR support was added.erwin2006-08-091-4/+3 * - Upgrade to 1.16;thierry2006-08-044-75/+16 * Update to 0.40erwin2006-08-013-60/+63 * - Update to 3.0.9itetcu2006-07-1910-33/+285 * - Unbreakmiwi2006-07-192-3/+5 * Note to self: first coffee, then commit.erwin2006-07-181-0/+0 * Readd the empty fonts.alias.cyberbit which is here in preparation forerwin2006-07-181-0/+0 * Remove fonts.alias stuffs.maho2006-07-184-9/+1 * - Update to 2.8ahze2006-07-172-4/+4 * Mark as broken: fails to deinstall cleanly.linimon2006-07-171-0/+2 * Remove zero-sized files.erwin2006-07-111-0/+0 * 1. Upgrade linux infrostructure ports from FC3 to FC4.bsam2006-07-109-45/+48 * - Update to 4.20garga2006-07-074-353/+359 * Add manu-gothic, an old german blackletter handwriting (suetterlin) font.miwi2006-06-295-0/+55 * - Update to 2.7ahze2006-06-202-4/+4 * - Update PORTVERSION to correct 0.38.1aaron2006-06-191-2/+2 * Use the correct mtree when you change the prefix, for example:mezz2006-06-122-0/+12 * Update MASTER_SITESmiwi2006-06-081-1/+2 * Remove MAN3PREFIX and assign over to perl.erwin2006-06-061-2/+1 * Remove expired leaf ports:vd2006-06-057-1301/+0 * Correct it, don't use USE_X_PREFIX that cause the circle dependency loop.mezz2006-06-011-1/+1 * - Add header in these *-reference ports.mezz2006-06-012-5/+11 * Add BUILD_DEPENDS to make pinityhat happy.delphij2006-05-311-0/+3 * Update to 0.7.0 (the version goes backward since the old versiondelphij2006-05-294-26/+40 * devel/pkgconfig -> devel/pkg-configmezz2006-05-281-1/+1 * Replace mastersite diedache2006-05-212-5/+5 * Chase DISTFILES and make fetchable again.thierry2006-05-212-6/+6 * - Update to 2.6ahze2006-05-192-4/+4 * - Add pkg-descrahze2006-05-181-0/+3 * portlint:mezz2006-05-161-4/+4 * Don't run fc-cache, we're using the fonts of the X server and the nativenetchild2006-05-136-36/+12 * Remove USE_REINPLACE from categories starting with Xedwin2006-05-13