aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog4
-rw-r--r--composer/e-msg-composer.c20
2 files changed, 15 insertions, 9 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 9969b45de8..8e0cd2ee0d 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,5 +1,9 @@
2000-04-26 Dan Winship <danw@helixcode.com>
+ * e-msg-composer.c (build_message): Only generate a multipart
+ message if there are attachments. Otherwise generate a single
+ part.
+
* Update for CamelMimeBodyPart -> CamelMimePart
2000-04-26 Dan Winship <danw@helixcode.com>
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 81423f39d3..d404146351 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -136,7 +136,6 @@ build_message (EMsgComposer *composer)
{
CamelMimeMessage *new;
CamelMimePart *part;
- CamelMultipart *multipart;
char *text;
int i;
@@ -150,21 +149,24 @@ build_message (EMsgComposer *composer)
composer->extra_hdr_values->pdata[i]);
}
- multipart = camel_multipart_new ();
part = camel_mime_part_new ();
-
text = get_editor_text (BONOBO_WIDGET (composer->editor));
camel_mime_part_set_content (part, text, strlen (text), "text/html");
g_free (text);
- camel_multipart_add_part (multipart, part);
+ if (e_msg_composer_attachment_bar_get_num_attachments (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar))) {
+ CamelMultipart *multipart = camel_multipart_new ();
- e_msg_composer_attachment_bar_to_multipart
- (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar),
- multipart);
+ camel_multipart_add_part (multipart, part);
+
+ e_msg_composer_attachment_bar_to_multipart (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), multipart);
- camel_medium_set_content_object (CAMEL_MEDIUM (new),
- CAMEL_DATA_WRAPPER (multipart));
+ camel_medium_set_content_object (CAMEL_MEDIUM (new),
+ CAMEL_DATA_WRAPPER (multipart));
+ } else {
+ camel_medium_set_content_object (CAMEL_MEDIUM (new),
+ CAMEL_DATA_WRAPPER (part));
+ }
/* FIXME refcounting is most certainly wrong. We want all the stuff to
be destroyed when we unref() the message. */
le='2001-12-12 14:27:52 +0800'>2001-12-126-0/+62 * Fix a problem with auto{conf,make}: some build magic was introduced topetef2001-12-073-3/+3 * Upgrade KDE to 2.2.2:will2001-12-049-15/+78 * Style police: WWW tags should either end in a file/script or TRAILING /; Fix ...lioux2001-11-211-1/+1 * Style police: WWW tags should either end in a file/script or TRAILING /; Fix ...lioux2001-11-211-1/+1 * Update misc/menushki to version 1.0 and also take care ofpat2001-11-161-1/+1 * Maintainer is now committer so change to new email address.pat2001-11-151-1/+1 * New port washerdryer version 1.0: A dockapp that keeps track oflioux2001-11-108-0/+96 * Upgrade to 2.2.1.demon2001-10-279-18/+27 * update to 2.4lioux2001-10-142-15/+4 * Set maintainer to ports@FreeBSD.orgpetef2001-10-071-1/+1 * - chase distfile checksumlioux2001-10-012-5/+5 * update to 2.3lioux2001-09-283-24/+25 * Set DIST_SUBDIR=KDEdemon2001-09-116-3/+6 * Reassign MAINTAINER to kde@FreeBSD.org, a group formed specifically towill2001-08-253-3/+3 * Chase checksum; trivial pixmap change.mikeh2001-08-201-1/+1 * *sigh* They changed the path to the tarballs again. This was verifiedwill2001-08-163-3/+3 * Update to KDE 2.2:will2001-08-159-192/+351 * Original asclock.org website have disappeared.kuriyama2001-07-064-8/+2 * Fix WWW.jim2001-07-021-1/+1 * Add ${PTHREAD_LIBS} and ${PTHREAD_CFLAGS} to fix compile errorssteve2001-06-182-3/+5 * Update to 0.3.52.sobomax2001-06-082-2/+3 * Add wmclock 1.0.12.2, a dockable clock applet for Windowmaker.sobomax2001-05-276-0/+36 * Update to 1.23.sobomax2001-05-273-5/+29 * - Remove unnecessary dir removal of share/doc. It's been in the mtreelioux2001-05-101-1/+0 * - Backward compability issue (as old as possible):lioux2001-05-101-1/+1 * The PORTDOCS installation missed the WRKSRC modification. Fix it.lioux2001-05-031-1/+2 * New port: Multi-Function timer dockapp for WindowMakerlioux2001-05-027-0/+82 * Update to version 0.7.jim2001-04-225-25/+56 * Update port to version 1.21olgeni2001-04-192-2/+2 * Update to wmfishtime 1.2kris2001-04-182-3/+3 * Add wmfishtime 1.1, a time/date applet for WindowMaker with fisheswill2001-04-076-0/+41 * Overhaul QT/KDE support:will2001-04-036-36/+12 * -pthread --> ${PTHREAD_LIBS}sobomax2001-03-301-1/+1 * Bring in my fixes for KDE2 for users of XFree86 4.0.x. Basically, whatwill2001-03-253-3/+3 * Update WWW in pkg-descr.jim2001-03-221-1/+1 * Update MASTER_SITES.roam2001-03-151-2/+2 * Fix plistkris2001-03-101-0/+2 * Attempt to fix conflicts with a local getopt.h (specifically, the fix iswill2001-03-053-3/+3 * Lo and behold, welcome KDE 2.1 to our ports tree. As a direct result ofwill2001-02-2717-228/+282 * Change MASTER_SITES and maintainer email address.olgeni2001-02-061-2/+2 * Style fixes for x11-clocks.olgeni2001-02-0623-24/+24 * fix X manpage error with XFree86-4sf2001-01-102-1/+11 * fix X manpage error with XFree86-4.sf2001-01-102-4/+19 * use ComplexProgramTargetNoMan to avoid making html manpage with XFree86-4.sf2000-12-312-1/+9 * Master site (www.asclock.org) seems to be down for about 2 month.kuriyama2000-12-112-2/+6 * Add $FreeBSD$, which help me in problem reports.obrien2000-11-221-0/+1 * Resign as maintainer of KDE2 ports, having brought them up from inceptionwill2000-11-183-3/+3 * Add missing MAN1=asclock.1.kuriyama2000-11-021-0/+1 * Update MASTER_SITES and add NO_LATEST_LINK=yes to facilitate use of KDE2.will2000-10-301-1/+2 * Oops, forgot to remove -lqt2 along with -L${X11BASE}/lib, to allow peoplewill2000-10-293-3/+3 * Implement fix for configure scripts in regards to finding X libs onwill2000-10-293-6/+6 * Fix KDE2 PLISTs and build for kdelibs.will2000-10-293-0/+3 * - Change maintainer to ports@FreeBSD.org of all my ports.imura2000-10-281-1/+1 * Update to QT 2.2.1 / KDE 2.0 final release. At last! What a long road...will2000-10-259-27/+15 * Moveimura2000-10-242-3/+3 * Merge kde11-i18n into kde11, and remove my *-i18n ports.imura2000-10-231-3/+20 * Remove manpage entry from pkg-plist and use MAN1kevlo2000-10-212-3/+4 * Commit update and minor fixes suggested by portlintjeh2000-10-203-3/+2 * Update MASTER_SITES.jim2000-10-121-3/+2 * Rename PLIST.nosound to pkg-plist.nosound.asami2000-10-081-1/+1 * Implement USE_GNOME, part 2.reg2000-10-051-14/+3 * Implement USE_GTK, part 2.reg2000-10-051-8/+4 * Update to KDE 1.94, the fifth and final beta release of KDE 2.0. If youwill2000-09-169-63/+54 * Add sanduhr - an alarm clock for GNOME desktop designed as a sand-glass.sobomax2000-09-146-0/+96 * Move variable definitions before including bsd.port.pre.mk.kuriyama2000-09-121-2/+2 * Update to 20000829A snapshot. Disable kdenetwork2 for the time being sowill2000-08-309-15/+531 * Support CC properlyjedgar2000-08-181-6/+22 * Oops, let's use the correct MD5jedgar2000-08-161-1/+1 * Bring abclock unto the worldjedgar2000-08-161-0/+1 * New port: abclock, an unusual analog clock for Xjedgar2000-08-167-0/+58 * I don't know why I used both $X11BASE and $LOCALBASE for installingkuriyama2000-08-141-1/+1 * Update to version 0.13.1.jim2000-08-133-2/+3 * - Support X11BASE properlykevlo2000-08-124-15/+40 * - Support X11BASE properlykevlo2000-08-122-18/+14 * Use USE_IMAKE when BATCH=YES.kuriyama2000-08-081-6/+12 * change my e-mail addresssanpei2000-08-031-1/+1 * (1) Add new variable, XFREE86_VERSION, to specify which version ofasami2000-08-03