aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-18 04:23:30 +0800
committerDan Winship <danw@src.gnome.org>2000-04-18 04:23:30 +0800
commit96b306af3289d236e2b23f8cb91327dc71c937b8 (patch)
tree10e03a5d8ad12db4751cd6c4744a6525c4e793d3 /camel/providers
parentc52986db9777f0da353908c57e2c8a3e16204448 (diff)
downloadgsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.gz
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.bz2
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.lz
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.xz
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.zst
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.zip
Remove the "session" field from CamelMimeMessage. Nothing uses it, about
* camel-mime-message.[ch]: Remove the "session" field from CamelMimeMessage. Nothing uses it, about half of the existing calls to camel_mime_message_new_with_session pass NULL, and there's no obvious reason for it to be there. * others: Use camel_mime_message_new instead of camel_mime_message_new_with_session svn path=/trunk/; revision=2479
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/MH/camel-mh-folder.c4
-rw-r--r--camel/providers/maildir/camel-maildir-folder.c3
-rw-r--r--camel/providers/mbox/camel-mbox-folder.c2
-rw-r--r--camel/providers/mbox/camel-mbox-utils.c2
-rw-r--r--camel/providers/nntp/camel-nntp-folder.c2
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c2
6 files changed, 7 insertions, 8 deletions
diff --git a/camel/providers/MH/camel-mh-folder.c b/camel/providers/MH/camel-mh-folder.c
index 86bbab46ba..f4ff8f305a 100644
--- a/camel/providers/MH/camel-mh-folder.c
+++ b/camel/providers/MH/camel-mh-folder.c
@@ -508,7 +508,7 @@ _get_message (CamelFolder *folder, gint number, CamelException *ex)
if (input_stream != NULL) {
#warning use session field here
- message = camel_mime_message_new_with_session ( (CamelSession *)NULL);
+ message = camel_mime_message_new ();
camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream);
gtk_object_unref (GTK_OBJECT (input_stream));
message->message_number = number;
@@ -785,7 +785,7 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex)
if (input_stream != NULL) {
#warning use session field here
- message = camel_mime_message_new_with_session ( (CamelSession *)NULL);
+ message = camel_mime_message_new ();
camel_data_wrapper_construct_from_stream ( CAMEL_DATA_WRAPPER (message), input_stream);
gtk_object_unref (GTK_OBJECT (input_stream));
diff --git a/camel/providers/maildir/camel-maildir-folder.c b/camel/providers/maildir/camel-maildir-folder.c
index 4ad5409658..2cb81f3e81 100644
--- a/camel/providers/maildir/camel-maildir-folder.c
+++ b/camel/providers/maildir/camel-maildir-folder.c
@@ -462,8 +462,7 @@ _get_message (CamelFolder *folder, gint number, CamelException *ex)
if (!file) return NULL;
/* Create the message object */
-#warning use session field here
- message = camel_mime_message_new_with_session ((CamelSession *) NULL);
+ message = camel_mime_message_new ();
stream = camel_stream_fs_new_with_name (file, CAMEL_STREAM_FS_READ);
if (!message || !stream) {
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c
index a31ade5ec4..3b48895dbf 100644
--- a/camel/providers/mbox/camel-mbox-folder.c
+++ b/camel/providers/mbox/camel-mbox-folder.c
@@ -1083,7 +1083,7 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex)
}
- message = camel_mime_message_new_with_session (camel_service_get_session (CAMEL_SERVICE (parent_store)));
+ message = camel_mime_message_new ();
camel_data_wrapper_set_input_stream (CAMEL_DATA_WRAPPER (message), message_stream);
diff --git a/camel/providers/mbox/camel-mbox-utils.c b/camel/providers/mbox/camel-mbox-utils.c
index f341210f71..cd7da089e9 100644
--- a/camel/providers/mbox/camel-mbox-utils.c
+++ b/camel/providers/mbox/camel-mbox-utils.c
@@ -365,7 +365,7 @@ index_message(ibex *index, int fd, CamelMboxParserMessageInfo *mi)
/* the stream will close the fd we have */
newfd = dup(fd);
stream = camel_stream_fs_new_with_fd_and_bounds(newfd, mi->message_position, mi->message_position + mi->size);
- message = camel_mime_message_new_with_session( (CamelSession *)NULL);
+ message = camel_mime_message_new();
camel_data_wrapper_set_input_stream (
CAMEL_DATA_WRAPPER (message), stream);
diff --git a/camel/providers/nntp/camel-nntp-folder.c b/camel/providers/nntp/camel-nntp-folder.c
index 00d0bcc902..11faa4b561 100644
--- a/camel/providers/nntp/camel-nntp-folder.c
+++ b/camel/providers/nntp/camel-nntp-folder.c
@@ -711,7 +711,7 @@ _get_message_by_uid (CamelFolder *folder, const gchar *uid, CamelException *ex)
buf_len,
CAMEL_STREAM_MEM_READ);
- message = camel_mime_message_new_with_session (camel_service_get_session (CAMEL_SERVICE (parent_store)));
+ message = camel_mime_message_new ();
camel_data_wrapper_set_input_stream (CAMEL_DATA_WRAPPER (message), message_stream);
CAMEL_LOG_FULL_DEBUG ("Leaving CamelNNTPFolder::get_message_by_uid\n");
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 0b2ccb030b..cf0d1763d3 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -207,7 +207,7 @@ get_message_by_number (CamelFolder *folder, gint number, CamelException *ex)
msgstream = camel_stream_mem_new_with_buffer (body, strlen (body),
CAMEL_STREAM_MEM_READ);
- msg = camel_mime_message_new_with_session (camel_service_get_session (CAMEL_SERVICE (folder->parent_store)));
+ msg = camel_mime_message_new ();
camel_data_wrapper_set_input_stream (CAMEL_DATA_WRAPPER (msg),
msgstream);