aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2003-08-27 02:17:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-08-27 02:17:59 +0800
commita09cef605f4fc1bfbfbb4d23d32106f710debc95 (patch)
tree29094be868b06499a1020d59f891fcca435fd966 /composer
parent04b9ec51d45f2efb3b8118eef99c7592ba269792 (diff)
downloadgsoc2013-evolution-a09cef605f4fc1bfbfbb4d23d32106f710debc95.tar.gz
gsoc2013-evolution-a09cef605f4fc1bfbfbb4d23d32106f710debc95.tar.zst
gsoc2013-evolution-a09cef605f4fc1bfbfbb4d23d32106f710debc95.zip
temporarily reverting camel namespace changes until after other branches have been merged
svn path=/trunk/; revision=22374
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog16
-rw-r--r--composer/e-msg-composer-attachment-bar.c12
-rw-r--r--composer/e-msg-composer-attachment.c4
-rw-r--r--composer/e-msg-composer.c36
4 files changed, 26 insertions, 42 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index 6caf503db7..d077cd9316 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,19 +1,3 @@
-2003-08-26 Jeffrey Stedfast <fejj@ximian.com>
-
- * e-msg-composer.c (message_rfc822_dnd):
- s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g
-
-2003-08-25 Jeffrey Stedfast <fejj@ximian.com>
-
- * e-msg-composer-attachment-bar.c: updated for namespace changed
- made to camel-mime-utils.[c,h]
-
- * e-msg-composer-attachment.c: updated for namespace changed made
- to camel-mime-utils.[c,h]
-
- * e-msg-composer.c: updated for namespace changed made to
- camel-mime-utils.[c,h]
-
2003-08-19 Jeffrey Stedfast <fejj@ximian.com>
* Original patch from David Woodhouse, but modified a bit by me.
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 479fd99871..7e7d9227c3 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -231,7 +231,7 @@ update (EMsgComposerAttachmentBar *bar)
content_type = camel_mime_part_get_content_type (attachment->body);
/* Get the image out of the attachment
and create a thumbnail for it */
- image = camel_content_type_is (content_type, "image", "*");
+ image = header_content_type_is (content_type, "image", "*");
if (image && attachment->pixbuf_cache == NULL) {
CamelDataWrapper *wrapper;
@@ -304,7 +304,7 @@ update (EMsgComposerAttachmentBar *bar)
} else {
char *mime_type;
- mime_type = camel_content_type_simple (content_type);
+ mime_type = header_content_type_simple (content_type);
pixbuf = e_icon_for_mime_type (mime_type, 48);
g_free (mime_type);
gnome_icon_list_append_pixbuf (icon_list, pixbuf, NULL, label);
@@ -725,7 +725,7 @@ attach_to_multipart (CamelMultipart *multipart,
content = camel_medium_get_content_object (CAMEL_MEDIUM (attachment->body));
if (!CAMEL_IS_MULTIPART (content)) {
- if (camel_content_type_is (content_type, "text", "*")) {
+ if (header_content_type_is (content_type, "text", "*")) {
CamelMimePartEncodingType encoding;
CamelStreamFilter *filter_stream;
CamelMimeFilterBestenc *bestenc;
@@ -733,7 +733,7 @@ attach_to_multipart (CamelMultipart *multipart,
const char *charset;
char *type;
- charset = camel_content_type_param (content_type, "charset");
+ charset = header_content_type_param (content_type, "charset");
stream = camel_stream_null_new ();
filter_stream = camel_stream_filter_new_with_stream (stream);
@@ -762,8 +762,8 @@ attach_to_multipart (CamelMultipart *multipart,
if (!charset) {
/* looks kinda nasty, but this is how ya have to do it */
- camel_content_type_set_param (content_type, "charset", default_charset);
- type = camel_content_type_format (content_type);
+ header_content_type_set_param (content_type, "charset", default_charset);
+ type = header_content_type_format (content_type);
camel_mime_part_set_content_type (attachment->body, type);
g_free (type);
}
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index 5942b51340..fb7fe46073 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -220,7 +220,7 @@ e_msg_composer_attachment_new (const char *file_name,
workaround, don't set a Content-Id on these parts. Fixes
bug #10032 */
/* set the Content-Id */
- content_id = camel_header_msgid_generate ();
+ content_id = header_msgid_generate ();
camel_mime_part_set_content_id (part, content_id);
g_free (content_id);
#endif
@@ -430,7 +430,7 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment, GtkWidget *p
set_entry (editor_gui, "description_entry",
camel_mime_part_get_description (attachment->body));
content_type = camel_mime_part_get_content_type (attachment->body);
- type = camel_content_type_simple (content_type);
+ type = header_content_type_simple (content_type);
set_entry (editor_gui, "mime_type_entry", type);
g_free (type);
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 3a4ec93e86..5a78a68a02 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -388,7 +388,7 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
}
data = g_byte_array_new ();
g_byte_array_append (data, composer->mime_body, strlen (composer->mime_body));
- type = camel_content_type_decode (composer->mime_type);
+ type = header_content_type_decode (composer->mime_type);
} else {
data = get_text (composer->persist_stream_interface, "text/plain");
if (!data) {
@@ -399,9 +399,9 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
/* FIXME: we may want to do better than this... */
charset = best_charset (data, composer->charset, &plain_encoding);
- type = camel_content_type_new ("text", "plain");
+ type = header_content_type_new ("text", "plain");
if (charset)
- camel_content_type_set_param (type, "charset", charset);
+ header_content_type_set_param (type, "charset", charset);
}
stream = camel_stream_mem_new_with_byte_array (data);
@@ -426,7 +426,7 @@ build_message (EMsgComposer *composer, gboolean save_html_object_data)
camel_object_unref (stream);
camel_data_wrapper_set_mime_type_field (plain, type);
- camel_content_type_unref (type);
+ header_content_type_unref (type);
if (composer->send_html) {
CORBA_Environment ev;
@@ -2535,7 +2535,7 @@ message_rfc822_dnd (EMsgComposer *composer, CamelStream *stream)
camel_mime_parser_scan_from (mp, TRUE);
camel_mime_parser_init_with_stream (mp, stream);
- while (camel_mime_parser_step (mp, 0, 0) == CAMEL_MIME_PARSER_STATE_FROM) {
+ while (camel_mime_parser_step (mp, 0, 0) == HSCAN_FROM) {
CamelMimeMessage *message;
CamelMimePart *part;
@@ -3211,10 +3211,10 @@ add_attachments_handle_mime_part (EMsgComposer *composer, CamelMimePart *mime_pa
e_msg_composer_add_inline_image_from_mime_part (composer, mime_part);
} else if (CAMEL_IS_MIME_MESSAGE (wrapper)) {
/* do nothing */
- } else if (related && camel_content_type_is (content_type, "image", "*")) {
+ } else if (related && header_content_type_is (content_type, "image", "*")) {
e_msg_composer_add_inline_image_from_mime_part (composer, mime_part);
} else {
- if (camel_content_type_is (content_type, "text", "*")) {
+ if (header_content_type_is (content_type, "text", "*")) {
/* do nothing */
} else {
e_msg_composer_attach (composer, mime_part);
@@ -3231,7 +3231,7 @@ add_attachments_from_multipart (EMsgComposer *composer, CamelMultipart *multipar
gboolean related;
int i, nparts;
- related = camel_content_type_is (CAMEL_DATA_WRAPPER (multipart)->mime_type, "multipart", "related");
+ related = header_content_type_is (CAMEL_DATA_WRAPPER (multipart)->mime_type, "multipart", "related");
if (CAMEL_IS_MULTIPART_SIGNED (multipart)) {
mime_part = camel_multipart_get_part (multipart, CAMEL_MULTIPART_SIGNED_CONTENT);
@@ -3303,14 +3303,14 @@ handle_multipart_signed (EMsgComposer *composer, CamelMultipart *multipart, int
} else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) {
/* decrypt the encrypted content and configure the composer to encrypt outgoing messages */
handle_multipart_encrypted (composer, multipart, depth);
- } else if (camel_content_type_is (content_type, "multipart", "alternative")) {
+ } else if (header_content_type_is (content_type, "multipart", "alternative")) {
/* this contains the text/plain and text/html versions of the message body */
handle_multipart_alternative (composer, multipart, depth);
} else {
/* there must be attachments... */
handle_multipart (composer, multipart, depth);
}
- } else if (camel_content_type_is (content_type, "text", "*")) {
+ } else if (header_content_type_is (content_type, "text", "*")) {
char *text;
if ((text = mail_get_message_body (content, FALSE, FALSE)))
@@ -3360,14 +3360,14 @@ handle_multipart_encrypted (EMsgComposer *composer, CamelMultipart *multipart, i
} else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) {
/* decrypt the encrypted content and configure the composer to encrypt outgoing messages */
handle_multipart_encrypted (composer, multipart, depth);
- } else if (camel_content_type_is (content_type, "multipart", "alternative")) {
+ } else if (header_content_type_is (content_type, "multipart", "alternative")) {
/* this contains the text/plain and text/html versions of the message body */
handle_multipart_alternative (composer, multipart, depth);
} else {
/* there must be attachments... */
handle_multipart (composer, multipart, depth);
}
- } else if (camel_content_type_is (content_type, "text", "*")) {
+ } else if (header_content_type_is (content_type, "text", "*")) {
char *text;
if ((text = mail_get_message_body (content, FALSE, FALSE)))
@@ -3412,11 +3412,11 @@ handle_multipart_alternative (EMsgComposer *composer, CamelMultipart *multipart,
/* depth doesn't matter so long as we don't pass 0 */
handle_multipart (composer, mp, depth + 1);
}
- } else if (camel_content_type_is (content_type, "text", "html")) {
+ } else if (header_content_type_is (content_type, "text", "html")) {
/* text/html is preferable, so once we find it we're done... */
text_part = mime_part;
break;
- } else if (camel_content_type_is (content_type, "text", "*")) {
+ } else if (header_content_type_is (content_type, "text", "*")) {
/* anyt text part not text/html is second rate so the first
text part we find isn't necessarily the one we'll use. */
if (!text_part)
@@ -3463,7 +3463,7 @@ handle_multipart (EMsgComposer *composer, CamelMultipart *multipart, int depth)
} else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) {
/* decrypt the encrypted content and configure the composer to encrypt outgoing messages */
handle_multipart_encrypted (composer, mp, depth + 1);
- } else if (camel_content_type_is (content_type, "multipart", "alternative")) {
+ } else if (header_content_type_is (content_type, "multipart", "alternative")) {
handle_multipart_alternative (composer, mp, depth + 1);
} else {
/* depth doesn't matter so long as we don't pass 0 */
@@ -3553,7 +3553,7 @@ e_msg_composer_new_with_message (CamelMimeMessage *message)
EDestination **Tov, **Ccv, **Bccv;
GHashTable *auto_cc, *auto_bcc;
CamelContentType *content_type;
- struct _camel_header_raw *headers;
+ struct _header_raw *headers;
CamelDataWrapper *content;
EAccount *account = NULL;
char *account_name;
@@ -3736,7 +3736,7 @@ e_msg_composer_new_with_message (CamelMimeMessage *message)
} else if (CAMEL_IS_MULTIPART_ENCRYPTED (content)) {
/* decrypt the encrypted content and configure the composer to encrypt outgoing messages */
handle_multipart_encrypted (new, multipart, 0);
- } else if (camel_content_type_is (content_type, "multipart", "alternative")) {
+ } else if (header_content_type_is (content_type, "multipart", "alternative")) {
/* this contains the text/plain and text/html versions of the message body */
handle_multipart_alternative (new, multipart, 0);
} else {
@@ -4188,7 +4188,7 @@ e_msg_composer_add_inline_image_from_file (EMsgComposer *composer,
camel_medium_set_content_object (CAMEL_MEDIUM (part), wrapper);
camel_object_unref (wrapper);
- cid = camel_header_msgid_generate ();
+ cid = header_msgid_generate ();
camel_mime_part_set_content_id (part, cid);
name = g_path_get_basename(file_name);
camel_mime_part_set_filename (part, name);
a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science?h=gstreamer0.10-removal&id=43bd9f14d9ce11690e9538bf3b03d3462faa6dbe'>Presenting GNOME 2.20.1 and all related works for FreeBSD. The officialmarcus2007-10-254-12/+17 * We are one release behind, so add a backup directory on the mastersitelinimon2007-10-252-2/+4 * Migration from bison 1.x to 2.xade2007-10-171-2/+2 * - Update to 1.4.0pav2007-10-156-1518/+1674 * - Update to 1.2.7.araujo2007-10-093-11/+11 * Remove always-false/true conditions based on OSVERSION 500000edwin2007-10-049-50/+8 * 1. Remove limit stacksize line for SysV shared memory size.maho2007-10-013-9/+21 * Mark as broken on 7.x.linimon2007-09-301-0/+4 * Mark as broken with gcc4.2.linimon2007-09-301-1/+7 * Mark as broken on gcc 4.2.linimon2007-09-301-0/+4 * Switch autoconf dependencies from 2.53 or 2.59 to 2.61.linimon2007-09-308-15/+21 * - Fill in HOSTTYPE and OSTYPE; this prevents "Error expanding embeddedpav2007-09-301-1/+1 * Add WANT_PERL to get the bsd.perl.mk inclusion. This should have nolinimon2007-09-261-0/+1 * - Update to 5.4.0.araujo2007-09-202-4/+4 * - Update to 0.8.3pav2007-09-196-14/+11 * - Finish chasing goffice updatepav2007-09-111-1/+1 * Upgrade to the release 2 of the CGNS 2.5 library.thierry2007-09-092-4/+4 * Chase goffice update.marcus2007-09-062-4/+4 * Regular update to a new backward compatible upstream version 2.8 withitetcu2007-09-053-4/+10 * - Fix build of dfftpack. [1]db2007-09-033-6/+16 * - Update to 0.6.0clsung2007-08-273-5/+6 * - Unbreaksem2007-08-255-6/+92 * - update to 0.49clsung2007-08-212-4/+4 * - Update to 0.48clsung2007-08-212-6/+6 * - Update to 2.1.1miwi2007-08-203-13/+12 * - Update to 5.3.2.araujo2007-08-172-4/+4 * - Update to 5.3.2.araujo2007-08-173-5/+6 * - Fix buildrafan2007-08-159-144/+176 * Move speedcrunch from science to math.itetcu2007-08-145-118/+0 * SpeedCrunch is a multiplatform desktop calculator for power users.itetcu2007-08-145-0/+118 * Update URIs.maho2007-08-132-4/+4 * - Upgrade to 1.4.1thierry2007-08-1126-686/+1039 * - Update to 5.3.2.araujo2007-08-092-4/+4 * - Update to 1.04miwi2007-08-062-4/+4 * - Remove the DESTDIR modifications from individual ports as we have a new,gabor2007-08-041-3/+3 * Update to 20070524.3.maho2007-08-028-103/+93 * Mark as BROKEN on sparc64: gets unaligned memory address on compile.linimon2007-08-012-0/+8 * Fix a circular dependency between ADF and CGNS, to avoid a segfault ofthierry2007-08-011-0/+9 * - Make Python 2.5.1 the default Python versionalexbl2007-07-302-0/+2 * Chase goffice update.marcus2007-07-292-4/+5 * - Depend on the GL* stuff, to prevent compilation failure for folks with onlypav2007-07-291-1/+2 * - science/liblr is moved to science/liblinear (project renamed)rafan2007-07-284-70/+1 * - Update to 1.1rafan2007-07-283-17/+19 * - USE_FORTRAN=yes to use FORTRAN compiler.db2007-07-281-4/+1 * - Update to 0.8.2pav2007-07-276-9/+23 * - Band-aid for unfetchable distfile until this is updated to 1.1 (it dependsrafan2007-07-242-4/+2 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-237-9/+5 * - Really fix plist for goffice-0.4.1pav2007-07-221-1/+1 * Upgrade to 0.9pre5.thierry2007-07-1810-191/+74 * - Now we use USE_FORTRAN=yes to use FORTRAN compiler.araujo2007-07-165-20/+7 * - Take maintainership.araujo2007-07-151-1/+1 * - Update for goffice 0.4.1pav2007-07-152-3/+4 * Correct mpich dependency.maho2007-07-151-1/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-141-4/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-142-9/+2 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-142-7/+4 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-141-4/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-145-23/+6 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-141-4/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-141-5/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-142-9/+3 * Now we USE_FORTRAN knob for using FORTRANmaho2007-07-141-4/+1 * - Now we use USE_FORTRAN=yes to use FORTRAN compiler.araujo2007-07-131-4/+1 * - Switch to USE_FORTRAN knobmiwi2007-07-131-6/+1 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-121-5/+2 * - Use proper capitalization in my email address.trasz2007-07-121-1/+1 * - Fix build with gcc 4.2miwi2007-07-062-3/+24 * - USE gfortranmiwi2007-07-063-9/+14 * Fix build and finally migrated to gfortran42!maho2007-07-041-4/+7 * - Mark BROKEN on HEADpav2007-07-031-1/+7 * - Update to 0.8.1pav2007-07-017-31/+23 * - Update to 2.7miwi2007-06-304-43/+29 * - Change my mail address to araujo@.araujo2007-06-307-7/+7 * chase math/gsl lib versionijliao2007-06-294-8/+8 * - Update to 1.0.8lwhsu2007-06-296-13/+13 * Don't set TERM conditionally on pointyhat, to avoid it defaulting tothierry2007-06-291-0/+4 * Remove a .orig file to fix plist.thierry2007-06-281-0/+1 * - Update patch files locationrafan2007-06-221-1/+1 * - Update to 2007.06.15.1339miwi2007-06-218-29/+121 * - Fix pkg-plistbeech2007-06-192-10/+3 * Code_Saturne is EDF's general purpose computational fluid dynamicsthierry2007-06-1833-0/+1889 * - Update to 2.2.8 (with corrections)beech2007-06-114-1677/+1764 * BROKEN: Does not compilekris2007-06-101-0/+2 * - Unbreakmiwi2007-06-052-4/+11 * - Fix build with gcc 4.2miwi2007-06-051-2/+1 * Fix plist: if wmkdep segfaults for some reason, don't install its core!thierry2007-05-302-1/+1 * - Add a new dependence of gfortran42miwi2007-05-281-1/+6 * Add liblr-1.0, a library for large regularized logistic regression.rafan2007-05-277-0/+141 * - Chase increase of science/netcdf shlib version.miwi2007-05-272-4/+4 * BROKEN with gcc 4.2kris2007-05-272-1/+11 * - update for gnustep-make-2.0.0dinoex2007-05-253-2/+5 * BROKEN: Does not buildkris2007-05-251-0/+2 * BROKEN: Configure failskris2007-05-251-0/+2 * - Update to 0.8.0pav2007-05-259-346/+434 * - Chase openbabel updatepav2007-05-251-2/+2 * - Update to 2.1.0pav2007-05-253-16/+64 * The chemical-mime-data package is a collection of data files to add support forpav2007-05-255-0/+153 * The Blue Obelisk Data Repository lists many important chemoinformatics datapav2007-05-255-0/+52 * - Welcome X.org 7.2 \o/.flz2007-05-2060-66/+65 * - distfile rerolled, onle white space changes.araujo2007-05-022-4/+4 * Parallel-NetCDF is a library providing high-performance I/O while stillmiwi2007-04-308-0/+108 * NIfTI-1 is a new Analyze-style data format, proposed by the NIfTI DFWGmiwi2007-04-287-0/+105 * Also remove the BROKEN line...thierry2007-04-281-2/+0 * Unbreak after the latest silent update. Changes were:thierry2007-04-282-14/+3 * Mark BROKEN after a silent update.thierry2007-04-271-0/+2 * - Update to 2.2.7miwi2007-04-273-1692/+1686 * Upgrade to 1.4.thierry2007-04-2624-1243/+1880 * Marked as BROKEN [1], and make fetchable [2].maho2007-04-232-8/+11 * - Update to 2007.04.18.1830miwi2007-04-215-197/+161 * - Update to 5.3.3miwi2007-04-192-4/+4 * Update to 1.6.10.maho2007-04-173-9/+13 * * Use gfortranmaho2007-04-171-3/+10 * Change my email address to trasz@FreeBSD.org.trasz2007-04-131-1/+1 * - Fix typo, PORTREVISION, not PORTREVERSION, my fault, sorrylwhsu2007-04-121-1/+1 * Take over.maho2007-04-121-1/+1 * 2007-03-27 emulators/kmamerun: Project was abandoned 4 years ago and expects ...miwi2007-04-116-108/+0 * - Update to 1.0.7lwhsu2007-04-107-23/+28 * science/netcdflwhsu2007-04-1016-135/+46 * - Update to 0.6.9pav2007-04-102-5/+5 * - Update to 0.6.5pav2007-04-105-9/+7 * - Remove old Perl support from unmaintained ports in categories startinggabor2007-04-061-4/+0 * . Drop maintainership of these ports. Its glaringly obvious that I don'tglewis2007-04-043-3/+3 * Does not build with jdk 1.4 either, so mark BROKENkris2007-04-041-0/+2