aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-send-recv.c28
2 files changed, 30 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 374c06e971..a05e92e649 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-01-23 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-send-recv.c (build_dialogue): Make sure the source->url is
+ not NULL (which is perfectly valid).
+
* openpgp-utils.c:
* mail-crypto.c: A few minor tweaks.
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 0762733bf2..88dabcae55 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -1,3 +1,24 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Authors: Michael Zucchi <NotZed@ximian.com>
+ *
+ * Copyright 2001 Ximian, Inc. (www.ximian.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
+ *
+ */
#include <stdio.h>
#include <string.h>
@@ -170,7 +191,12 @@ static struct _send_data *build_dialogue(GSList *sources, CamelFolder *outbox, c
row = 0;
while (sources) {
MailConfigService *source = sources->data;
-
+
+ if (!source->url) {
+ sources = sources->next;
+ continue;
+ }
+
info = g_malloc0(sizeof(*info));
/* imap is handled differently */
if (!strncmp(source->url, "imap:", 5))
s with no more public distfiles (thanks ehaupt's dist...bapt2012-09-211-0/+3 * - Update MAINTAINER to my new FreeBSD.org addressjhale2012-09-132-2/+2 * - reset maintainership per maintainerjgh2012-09-071-4/+6 * Mark ports unsafe per wiki page of broken ports.eadler2012-09-031-0/+2 * - Reassign nork@ ports to the heaptabthorpe2012-08-161-1/+1 * Switch from libglut to freeglut and retire libglut. Libglut hasn't beenkwm2012-08-051-1/+1 * Fix typos in COMMENTcs2012-07-291-1/+1 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-1/+1 * For the ports that are maintained by ports@ that have pkgconfig as theirdougb2012-07-231-1/+1 * - reset MAINTAINERdinoex2012-06-261-1/+1 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-153-5/+4 * Add missing dependseadler2012-06-091-1/+2 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-064-8/+4 * - Update to version 0.4.9.2sylvio2012-06-064-32/+24 * - update png to 1.5.10dinoex2012-06-01