aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-18 09:09:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-18 09:09:45 +0800
commitde8246dc8a906807234cab134e100abf64f2b1e0 (patch)
tree53ac35488805e155f6a916917221b11b243ae6ab
parent5543f7d8100d762958fde07967ca1b3e0616feb9 (diff)
downloadgsoc2013-evolution-de8246dc8a906807234cab134e100abf64f2b1e0.tar.gz
gsoc2013-evolution-de8246dc8a906807234cab134e100abf64f2b1e0.tar.zst
gsoc2013-evolution-de8246dc8a906807234cab134e100abf64f2b1e0.zip
If the body text was NULL, then don't bother turning it into HTML
2000-10-17 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer.c (e_msg_composer_new_with_message): If the body text was NULL, then don't bother turning it into HTML (besides, it causes a nasty segfault). svn path=/trunk/; revision=5971
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer.c21
2 files changed, 17 insertions, 10 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 670e2eb9c8..609d741da3 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-17 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * e-msg-composer.c (e_msg_composer_new_with_message): If the body
+ text was NULL, then don't bother turning it into HTML (besides, it
+ causes a nasty segfault).
+
2000-10-15 Dan Winship <danw@helixcode.com>
* Makefile.am: Move CPPFLAGS flags to INCLUDES to avoid bashing
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 71a343b359..e05dc71103 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1445,17 +1445,18 @@ e_msg_composer_new_with_message (CamelMimeMessage *msg)
contents = camel_medium_get_content_object (CAMEL_MEDIUM (msg));
text = mail_get_message_body (contents, FALSE, &is_html);
- if (is_html)
- final_text = g_strdup (text);
- else
- final_text = e_text_to_html (text, E_TEXT_TO_HTML_CONVERT_NL |
- E_TEXT_TO_HTML_CONVERT_SPACES);
- g_free (text);
-
- e_msg_composer_set_body_text (new, final_text);
+ if (text) {
+ if (is_html)
+ final_text = g_strdup (text);
+ else
+ final_text = e_text_to_html (text, E_TEXT_TO_HTML_CONVERT_NL |
+ E_TEXT_TO_HTML_CONVERT_SPACES);
+ g_free (text);
+
+ e_msg_composer_set_body_text (new, final_text);
+ }
- /*set_editor_text (BONOBO_WIDGET (new->editor),
- NULL, "FIXME: like, uh... put the message here and stuff\n");*/
+ /* FIXME: attach the message attachments */
return new;
}
span class='insertions'>+1 * Update KDE Plasma Desktop to 5.12.5tcberner2018-05-042-6/+6 * multimedia/ffmpeg: update to 4.0jbeich2018-05-022-1/+2 * deskutils/virt-manager: update to 1.5.1novel2018-04-292-5/+6 * Flavorize deskutils/znotestcberner2018-04-294-34/+32 * Update KDE Applications to 18.04.0tcberner2018-04-2939-161/+173 * Update deskutils/latte-dock to 0.7.5tcberner2018-04-283-4/+9 * Update grahics/exiv2 to 0.26tcberner2018-04-283-3/+3 * Hook deskutils/plasma5-sddm-kcm into the buildtcberner2018-04-281-0/+1 * Import the KDE Plasma5 portstcberner2018-04-289-0/+210 * Update to 1.6.6krion2018-04-272-4/+4 * deskutils/spice-gtk: Fix build with LibreSSL 2.7brnrd2018-04-271-3/+3 * Switch all pypi.python.org WWWs to a new PyPi home pypi.org whereamdmi32018-04-261-1/+1 * Finish py-pycarddav removalantoine2018-04-241-1/+0 * Remove dupplicate port.mat2018-04-243-32/+0 * Move devel/py-msgpack-python to devel/py-msgpacksunpoet2018-04-231-2/+3 * Update calibre to 3.22.1madpilot2018-04-213-6/+7 * - Switch to new test frameworkamdmi32018-04-201-3/+1 * Update mpfr to 4.0.1 release and bump PORTVERSION of dependent ports.ale2018-04-191-0/+1 * devel/boost-*: update to 1.67.0jbeich2018-04-189-7/+9 * Provide Akonadi (server) and KMail (client) with a pkg-message thatadridg2018-04-171-0/+12 * Update to version 1.3.22krion2018-04-154-18/+54 * multimedia/gstreamer1-qt4, multimedia/gstreamer1-qt5: create flavorstcberner2018-04-141-1/+2 * devel/qjson, devel-qjson-qt5 create flavorstcberner2018-04-143-6/+6 * devel/qca, devel/qca-qt5 -- create flavorstcberner2018-04-141-2/+2 * deskutils/fbreader: Fix build with Clang 6tcberner2018-04-141-0/+25 * Updating MATE ports to and patch for MATE 1.20ericbsd2018-04-1411-17/+25 * deskutils/zim: update to 0.68rm2018-04-122-4/+4 * Fix PKGBASE conflict of devel/libkgapitcberner2018-04-112-4/+4 * deskutils/gnome-documents: Update to 3.24.2cpm2018-04-114-33/+31 * New ports: KDE Applications deskutils/tcberner2018-04-1172-1/+5414 * New ports: KDE Applications net/ and dependenciestcberner2018-04-1113-0/+519 * New ports: net-p2p/ktorrent, net-p2p/libktorrent, net/syndicationtcberner2018-04-113-0/+30 * deskutils/owncloudclient: Update 2.4.0 -> 2.4.1yuri2018-04-093-11/+14 * deskutils: Convert to USES=phpbrnrd2018-04-083-10/+6 * Update calibre to 3.21.0madpilot2018-04-072-5/+4 * devel/icu: update to 61.1jbeich2018-04-066-5/+6 * www/webkit2-gtk3: Update to 2.20.0tobik2018-04-063-2/+3 * - Update to 2.11.0sunpoet2018-04-042-5/+4 * deskutils/noti: Update 3.0.0 -> 3.1.0yuri2018-04-012-4/+4 * Update xfce4-tumbler to 0.2.1madpilot2018-04-013-4/+6 * New port: deskutils/anydesk: Fast remote desktopyuri2018-03-275-0/+64 * Make libgnome and libgnomeui not implying esound dependencybapt2018-03-2610-10/+10 * Mark samples file as such.mr2018-03-262-2/+2 * Add nextcloudclientmr2018-03-251-0/+1 * Add nextcloudclient as of 20180323.mr2018-03-2510-0/+276 * Update calibre to 3.20.0madpilot2018-03-242-4/+4 * Update to a newer snapshot from it's source. Move to the official githubehaupt2018-03-223-32/+21 * deskutils/syncthing-gtk: Update to 0.9.3.1swills2018-03-222-4/+4 * Move databases/akonadi to databases/akonadi-kde4tcberner2018-03-214-4/+4 * Bump PORTREVISION on ports depending on devel/libical.truckman2018-03-206-5/+6 * deskutils/spice-gtk: fix build without NLSnovel2018-03-181-1/+1 * deskutils/freeplane: Update to 1.6.14yuri2018-03-163-9/+26 * Changed maintainer's e-mail in 6 ports: lbdm@privacychain.ch -> lebarondemerd...yuri2018-03-141-1/+1 * Move security/qtkeychain-qt[45] to security/qtkeychain and create flavorstcberner2018-03-131-1/+2 * Migrate USE_APACHE to USES= apachebrnrd2018-03-121-1/+1 * Bump PORTREVISIONs of all users of math/mpc that we just updated togerald2018-03-116-3/+6 * Update calibre to 3.19.0madpilot2018-03-103-4/+6