aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-medium.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-medium.h')
-rw-r--r--camel/camel-medium.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-medium.h b/camel/camel-medium.h
index c35466336c..d39b5898ad 100644
--- a/camel/camel-medium.h
+++ b/camel/camel-medium.h
@@ -48,7 +48,6 @@ typedef struct
GHashTable *headers;
- GMimeContentField *content_type;
CamelDataWrapper *content; /* part real content */
} CamelMedium;
@@ -63,6 +62,9 @@ typedef struct {
void (*remove_header) (CamelMedium *medium, const gchar *header_name);
const gchar * (*get_header) (CamelMedium *medium, const gchar *header_name);
+ CamelDataWrapper * (*get_content_object) (CamelMedium *medium);
+ void (*set_content_object) (CamelMedium *medium, CamelDataWrapper *content);
+
} CamelMediumClass;
@@ -77,6 +79,8 @@ void camel_medium_remove_header (CamelMedium *medium, const gchar *header_name);
const gchar *camel_medium_get_header (CamelMedium *medium, const gchar *header_name);
+CamelDataWrapper *camel_medium_get_content_object (CamelMedium *medium);
+void camel_medium_set_content_object (CamelMedium *medium, CamelDataWrapper *content);
#ifdef __cplusplus
/span>1-0/+5 * Only do the rawtext checks if the part is a text part, otherwise don'tJeffrey Stedfast2001-10-221-0/+5 * Updated comments to make the code a bit more clear.Jeffrey Stedfast2001-10-221-0/+5 * Dont do the macro stuff - basically so you can actually debug calls.12001-10-221-0/+5 * oops, dont free the vuid, since its alloca'd now.12001-10-221-0/+5 * If no exception supplied, use a local one. (move_message_to): Set the seen02001-10-201-0/+6 * If the destination folder is the vfolder source folder, thenJeffrey Stedfast2001-10-201-0/+6 * When registering provider, translate all strings.92001-10-201-0/+3 * camel-vee-folder.c (folder_changed_change): Change logic, we always addMichael Zucci2001-10-201-0/+5 * Fixes a deadlock. camel-vee-folder.c: (folder_changed_change): Ok, so dontMichael Zucci2001-10-201-0/+3 * camel-vee-folder.c: (folder_changed_change_uid): Use alloca for vuid, andMichael Zucci2001-10-191-0/+9 * Lock the right lock for unmatched subfolder list stuff. If the sub folder92001-10-191-0/+19 * If a charset isn't specified or claims to be utf-8, check the validity ofJeffrey Stedfast2001-10-191-0/+9 * Added CAMEL_CFLAGS so we get the right iconv stuff, patch from Yanko82001-10-191-0/+6 * Make sure the cancel_fd isn't -1.Jeffrey Stedfast2001-10-191-0/+5 * Flush the stream here, not sure it really matters but it might (hopefully)Jeffrey Stedfast2001-10-191-0/+4 * Make user-cancellable.Jeffrey Stedfast2001-10-191-0/+3 * String cleanup for bug #6640.Jeffrey Stedfast2001-10-191-0/+3 * Fix my Cyrus imapd workaround...instead of checking to see if info->flagsJeffrey Stedfast2001-10-191-0/+6 * Use '.' as the inbox name for filter new messages test.72001-10-181-0/+4 * New function to clone a folderinfo tree.72001-10-181-0/+5 * Same as maildir and mbox append-message.Jeffrey Stedfast2001-10-181-0/+6 * Make sure the new description isn't the same as the old descriptionJeffrey Stedfast2001-10-181-0/+11 * Add an optimization for when destination folder is the same as the sourceJeffrey Stedfast2001-10-181-0/+5 * Patch from Danw, Use unread count of -1 to mark unflagged messages. Make72001-10-181-0/+11 * Set the DELETED flag on directly on the info if the source folder doesn'tJeffrey Stedfast2001-10-181-0/+6 * As below.Not Zed2001-10-171-0/+7 * Rearange the order of the gpg options slightly otherwise it might try toJeffrey Stedfast2001-10-171-0/+4 * If CAMEL_DEBUG is defined, print some useful ref/unref info.Jeffrey Stedfast2001-10-171-0/+12 * If no content, dont try and decode further and spit meaningless warnings.62001-10-171-0/+5 * Only perform the operation on the folder if the folder has summaryJeffrey Stedfast2001-10-171-0/+8 * Save the errno before calling fcntl so fcntl doesn't overwrite errno inJeffrey Stedfast2001-10-161-0/+7 * Replace the Bcc headers in a single location and don't flush the dataJeffrey Stedfast2001-10-141-0/+6 * Remove the stripheader filter from the build.Jeffrey Stedfast2001-10-131-0/+12 * Unhook from all events before removing folder.22001-10-131-0/+9 * convert the uids list to a subset appropriate for each subfolder before12001-10-121-0/+4 * Removed charset/locale charset lookup and iconv_open/close functions,12001-10-121-0/+5 * Same.Jeffrey Stedfast2001-10-121-0/+7 * Same hack as below.Jeffrey Stedfast2001-10-111-0/+7 * Only re-build the folder if we're expunging. Also only clear out the02001-10-111-0/+6 * Added a hack for Solaris systems.Jeffrey Stedfast2001-10-111-0/+5 * oops, we want get_unread_message_count, not get_message_count!02001-10-111-0/+8 * Another go at getting the logic right again. Make transients only update92001-10-101-0/+5 * Implement.92001-10-101-0/+33 * replace the ever-growing list of gbooleans with a single guint32 forDan Winship2001-10-091-0/+20 * Unlock the store before returning error. (noted by NotZed)Dan Winship2001-10-091-0/+5 * Fix a slight error in logic. Just because the last word was an encodedJeffrey Stedfast2001-10-071-0/+7 * Implemented uuencoding and decoding. (complete): Implemented uuencodingJeffrey Stedfast2001-10-061-0/+10 * Use a folder_subscribed event rather than a folder_created one.52001-10-061-0/+14 * Turn off warnings. (get_name): Same.Jeffrey Stedfast2001-10-061-0/+32 * Try harder to get broken names out of addresses. Unencoded ,'s in names52001-10-061-0/+9 * Change the order of execution slightly. We delete the folder first, then42001-10-061-0/+8 * tedfast <fejj@ximian.com>Jeffrey Stedfast2001-10-051-0/+5 * Remove now unused 'recents' array/freeing func.32001-10-041-0/+8 * Dont explicitly save metadata, its saved in summary_sync.32001-10-041-0/+19 * Added MATCH_NEWLINE flag, -> REG_NEWLINE.32001-10-041-0/+14 * Call camel_folder_delete() on the folder if it's "alive".Jeffrey Stedfast2001-10-041-0/+12 * Strange are the ways of alloca. Fixes 11543.Dan Winship2001-10-031-0/+5 * Import the certificate if the user accepts it.Jeffrey Stedfast2001-10-031-2/+8 * for hashing/comparing local url's, we ignore trailing /'s in paths (maybe22001-10-031-0/+5 * Change to camel_charset_iconv_open/close.22001-10-031-0/+23 * Revert my x-unknown special-case hack - this may mask other problems.Jeffrey Stedfast2001-10-031-0/+9 * Go back to using the store url's path, not the toplevel_dir thing.22001-10-031-0/+6 * Change the lock to a recursive e-mutex. (camel_object_hook_event):22001-10-031-0/+17 * Remove any cached messages that belonged to the deleted folder.Jeffrey Stedfast2001-10-021-0/+7 * If the charset is x-unknown, return the locale_charset.Jeffrey Stedfast2001-10-021-0/+5 * Fix up the provider flags to specify things more completely so we don'tDan Winship2001-10-021-0/+12 * Don't munge the URL; CamelSession's caching relies on it not changing.Dan Winship2001-10-021-0/+16 * if STAT returns 0, don't bother sending UIDL. Speeds things up slightlyDan Winship2001-10-011-0/+7 * Add --no-secmem-warning and --no-greeting to the gpg command-line options.Jeffrey Stedfast2001-09-301-0/+9 * Same here.Jeffrey Stedfast2001-09-291-0/+7 * Init the nntp url hash and url_equal functions.Jeffrey Stedfast2001-09-291-0/+30 * Oops, a CamelFolder is not a CamelFolderClass.Jeffrey Stedfast2001-09-291-2/+7 * Make this take an SSL * instead of a CamelTcpStreamSSL *, since it can getDan Winship2001-09-281-0/+7 * Grab the store's command_lock before grabbing the folder's cache_lock toDan Winship2001-09-281-0/+14 * Dont re-register the connect_op if we got it by calling72001-09-281-0/+6 * Fill the finalised data with nonsense, rather than 0's - more easily72001-09-281-0/+13 * CRLF decode the stream before parsing it into a MIME part. This fixes bugJeffrey Stedfast2001-09-281-0/+7 * Change "gboolean connected" to "CamelServiceConnectionStatus status",Dan Winship2001-09-271-0/+36 * If we get a search error, just abort, dont try and fall back and copy to62001-09-271-0/+21 * New function to convenience Larry ;-) (check_content_id): Oops, returnJeffrey Stedfast2001-09-271-0/+3 * fixed merge conflictsJeffrey Stedfast2001-09-271-1/+0 * New function to convenience Larry ;-)Jeffrey Stedfast2001-09-271-0/+10 * Emptied VeeStorePrivate, member wasn't used.62001-09-271-0/+18 * Fix Ettore's fix.Jeffrey Stedfast2001-09-271-0/+4 * No longer takes a remember argument. (pgp_sign): Only uncache theJeffrey Stedfast2001-09-261-0/+11 * [Patch for Automake 1.5 compatibility pointed out by RichardEttore Perazzoli2001-09-261-0/+11 * Only unref info if we got it.52001-09-261-0/+3 * Fix for !threads enabled not ccompiling. (camel_operation_ref): Assert52001-09-261-0/+21 * call SSL_read/write, looping on SSL_ERROR_WANT_READ/WRITE. I'm sureDan Winship2001-09-261-0/+10 * A "safe write" function that always writes out all data asked of it, till52001-09-261-0/+8 * Set the exception to FOLDER_INVALID rather than making out it worked. A42001-09-251-0/+4 * In the 'lose' case, free messages, not fetch_data twice!42001-09-251-0/+3 * If the type is encoded, get the fallback charset from the message42001-09-251-0/+50 * Don't even try to alert the user if the session isn't interactive.Jeffrey Stedfast2001-09-241-1/+15 * Set the exception if create_folder isn't implemented.12001-09-221-0/+5 * Go back to not using camel_folder_info_build() here because this seems toJeffrey Stedfast2001-09-221-0/+7 * Force a refresh of vfolders before storing their count. This essentially12001-09-211-0/+20 * New function to just load the summary. Not much use yet, until unreadMichael Zucci2001-09-211-0/+16 * Setup unread count properly, and also setup the url properly.Michael Zucci2001-09-211-0/+7 * Build the path on the folderinfo.02001-09-211-0/+35 * And finally here.Jeffrey Stedfast2001-09-211-0/+21 * Nuke debug warning.Dan Winship2001-09-211-0/+4 * Updated exception strings to be more clear.Jeffrey Stedfast2001-09-201-0/+5 * Oops, don't fail if `data' isn't a CamelService...cuz it's not supposed toJeffrey Stedfast2001-09-201-0/+6 * General cleanup of camel debug printfs.92001-09-191-0/+20 * Match mailing-list header List-Owner.Jeffrey Stedfast2001-09-191-0/+4 * If filter inbox is set on the store, and we're opening inbox '', then82001-09-191-0/+107 * Virtualize this.Dan Winship2001-09-191-0/+11 * Added korean charset conversion.Jeffrey Stedfast2001-09-191-0/+4 * Don't process the ImapResponse data, we don't want to block forever onJeffrey Stedfast2001-09-181-0/+2 * Don't process the ImapResponse data, we don't want to block forever onJeffrey Stedfast2001-09-181-0/+4 * Reverted previous changes.Jeffrey Stedfast2001-09-181-0/+4 * Helpful install-exec-hook debugging outputJP Rosevear2001-09-181-0/+4 * New function to get the URI of a folder. (get_uri): DefaultJeffrey Stedfast2001-09-171-0/+6 * New function, set the complete list of folders on a vfolder, all at once.42001-09-151-0/+51 * Use g_datalist_set_data_full so that the data will be free'd when we clearJeffrey Stedfast2001-09-151-0/+5 * Don't claim failure when reading/writing the empty string.Dan Winship2001-09-151-0/+6 * use install hook instead of install rule to guarantee we run afterJP Rosevear2001-09-151-0/+5 * Don't reuse the exception if it has already been set.Jeffrey Stedfast2001-09-141-0/+8 * Do error-checking based on function return values rather than exceptionsJeffrey Stedfast2001-09-141-0/+5 * Pass an exception to the cache. (imap_append_online): Same.Jeffrey Stedfast2001-09-141-0/+16 * Convert the charset to the iconv-friendly name.Jeffrey Stedfast2001-09-141-0/+8 * Return -1 on failure.Jeffrey Stedfast2001-09-141-0/+5 * free the source url in the nonfailure case.Larry Ewing2001-09-131-0/+5 * Change the 'not' virtual method from an immediate e-sexp function to a22001-09-131-0/+12 * Unref the message info.Jeffrey Stedfast2001-09-131-0/+5 * Pass in a hashtalbe used for finding visited nodes. (inode_hash):02001-09-111-0/+11 * Progress reporting while moving messages.02001-09-111-0/+11 * Get rid of the g_warning, we no longer really need that.Jeffrey Stedfast2001-09-111-2/+9 * Forgot to return the newly allocated msg.02001-09-101-0/+5 * Likewise.Not Zed2001-09-081-0/+11 * #if 0 out the code that was hopefully going to fix bug #5325 because theJeffrey Stedfast2001-09-081-0/+4 * Disconnect from the service here otherwise the locks will be destroyed andJeffrey Stedfast2001-09-081-0/+4 * Make sure to unref the mime filters when we finish with them.Jeffrey Stedfast2001-09-081-0/+5 * s/Synchronising/Synchronizing/. (mbox_summary_sync_quick): Likewise.Ettore Perazzoli2001-09-081-0/+7 * constificationJeffrey Stedfast2001-09-081-0/+3 * Reuse the original boundary instead of generating our own.Jeffrey Stedfast2001-09-081-0/+6 * Thread function to perform filtering. (filter_free): Free the filter62001-09-071-0/+19 * Use camel_stream_buffer_read_line() instead of duplicationing theJeffrey Stedfast2001-09-071-0/+9 * Fix this to always set an exception if it returns POP3_FAIL, asDan Winship2001-09-071-0/+8 * Set an exception on POP3_FAIL as well.Jeffrey Stedfast2001-09-071-0/+5 * #ifdef out the "delete after N days" option in pop3_conf_entries, since itDan Winship2001-09-071-0/+6 * Too late to sync the folders here... if this is gonna happen at all itJeffrey Stedfast2001-09-051-0/+4 * Do a clean disconnect.Jeffrey Stedfast2001-09-051-0/+4 * Return the default folder (ie. INBOX) rather than saying we don't supportJeffrey Stedfast2001-08-311-0/+4 * #include pk11func.h. (ssl_bad_cert): Use CERT_GetDefaultCertDB.Jeffrey Stedfast2001-08-311-0/+5 * fix smime the same way...Jeffrey Stedfast2001-08-301-0/+8 * Special-case message/rfc822 mime parts - don't set an encoding on these,Jeffrey Stedfast2001-08-301-0/+11 * Add progress reporting to deleting messages. Dont change the calculationNot Zed2001-08-291-0/+6 * Initialize buf and diag_buf to NULL, hopefully this fixes the crash if theJeffrey Stedfast2001-08-291-0/+4 * Initialize buf and diag_buf to NULL, hopefully this fixes the crash if theJeffrey Stedfast2001-08-291-0/+6 * Whoops. Double-free and FMR = bad.Peter Williams2001-08-291-0/+3 * Don't reveal the user's IMAP password if their server supportsPeter Williams2001-08-291-0/+6 * If the user accepts the certificate, add it to the database as a trustedJeffrey Stedfast2001-08-291-0/+5 * Make the locking more fine-grained on destruction; specifically, don'tPeter Williams2001-08-291-0/+6 * Changed the description/names of some of the local providers to try andJeffrey Stedfast2001-08-281-0/+7 * s/IMAPv4/IMAPJeffrey Stedfast2001-08-281-1/+5 * re-read the iconv man page, and treat the return value properly. ItNot Zed2001-08-271-0/+17 * ["Summarising" and "Synchronising" are spelt with a "s" in ENGLISH]Not Zed2001-08-251-0/+11 * Use fseek instead of fseeko since we want to be portable and use ftellJeffrey Stedfast2001-08-251-4/+13 * Revert Not Zed's previous commits as they apparently can cause seriousPeter Williams2001-08-251-0/+5 * s/Synchronising/Synchronizing/.Ettore Perazzoli2001-08-251-0/+11 * Limit the maximum output buffer size. iconv bugs? returns E2BIG forever onNot Zed2001-08-241-0/+4 * Likewise.Not Zed2001-08-241-0/+34 * Add a missing \n to the end of a printf.Peter Williams2001-08-241-0/+7 * Oops. Fixed a mis-use of GPtrArray. If we set_size, then usingJeffrey Stedfast2001-08-231-0/+7 * Turn on --batch and reenable gpg keyserver lookups. (pgp_decrypt): DisableJeffrey Stedfast2001-08-221-2/+8 * Fix the duplicate message check so it doesn't mess up threading when aDan Winship2001-08-211-0/+9 * build a static camel for the addressbook conduitJP Rosevear2001-08-201-0/+4 * s/Synchronising/Synchronizing/. (mbox_summary_sync_quick): Likewise.Ettore Perazzoli2001-08-201-0/+9 * oops, commit the ChangeLogJeffrey Stedfast2001-08-201-0/+10 * #include <sys/types.h> for mode_t on freebsd.Chris Toshok2001-08-201-0/+4 * Make sure the generated UID is non-NULL before appending it to the arrayJeffrey Stedfast2001-08-201-0/+6 * Start scanning new messages at maxuid + 1 rather than uidval + 1? MaybeJeffrey Stedfast2001-08-181-0/+6 * If we are online and message flags have changed in the current folder,Jeffrey Stedfast2001-08-171-9/+14 * Don't ever send "STORE FLAGS.SILENT ()" since Cyrus imapd doesn't likeJeffrey Stedfast2001-08-171-0/+9 * Fix this again. Sigh. Problem of namespace = "" may not yet be completelyPeter Williams2001-08-171-0/+6 * New function. Try to approximate the SSL error into errno.Peter Williams2001-08-161-0/+8 * Oh crap, huge killer typo.Peter Williams2001-08-151-0/+5 * Canonicalize store->namespace to end in store->dir_sep, once both valuesPeter Williams2001-08-151-0/+7 * After talking to NotZed, it turns out I was wrong after all. (store_sync):Jeffrey Stedfast2001-08-151-0/+9 * We need to be ref'ing the folder if/when we add it to the hash. This mayJeffrey Stedfast2001-08-141-0/+3 * Fix a leak.Peter Williams2001-08-141-0/+10 * We need to be ref'ing the folder if/when we add it to the hash. This mayJeffrey Stedfast2001-08-141-0/+1 * We need to be ref'ing the folder if/when we add it to the hash. This mayJeffrey Stedfast2001-08-141-0/+5 * s/summarising/summarizing/. (summary_rebuild): Likewise.Ettore Perazzoli2001-08-121-0/+12 * Added an assert - at this point a backtrace would be more useful than aJeffrey Stedfast2001-08-111-1/+5 * Return FALSE here, not NULL.Jeffrey Stedfast2001-08-111-0/+3 * Don't g_strdup() the uid into the trigger_event call.Jeffrey Stedfast2001-08-111-0/+3 * Set the total bytes expected to 0 if the response is empty too.Jeffrey Stedfast2001-08-111-0/+2 * Set the total bytes expected to 0 if the response is empty too.Jeffrey Stedfast2001-08-111-0/+3 * regfree the pattern before continue'ing. This was showing up quite a bitJeffrey Stedfast2001-08-101-0/+6 * A quoted string cannot contain \n's so check for those as well.Jeffrey Stedfast2001-08-101-0/+6 * Remove trailing stuff from URLs before returning. (Done in an evil way,Jon Trowbridge2001-08-091-0/+6 * check for NULL name and addr (fixes a bug i was about to report)jacob berkman2001-08-081-0/+5 * Properly determine match type to pass to header_match.Not Zed2001-08-081-0/+27 * New function to do danw's address "is" comparison (as specified in bugJeffrey Stedfast2001-08-081-0/+7 * Modify to take a headers_only argument which will then only fetch messageJeffrey Stedfast2001-08-071-0/+12 * New internal function to get a message stream by message sequence id (soJeffrey Stedfast2001-08-071-0/+10 * Don't strstr for noselect=yes, that's just plain broken.Jeffrey Stedfast2001-08-071-0/+5 * Fix off-by-one error in cleaning up deleted messages at the end of theDan Winship2001-08-071-0/+4 * Do a refresh_info on the selected folder before looking at its unreadDan Winship2001-08-071-0/+6 * Completely hide the namespace from everything external to the IMAP code,Peter Williams2001-08-071-0/+40 * Always do --no-auto-key-retrieve.Jeffrey Stedfast2001-08-071-0/+4 * Minor changes to the iconv code so that it does the check in the returnJeffrey Stedfast2001-08-041-0/+7 * First check to make sure that service->url->authmech is non-NULL beforeJeffrey Stedfast2001-08-041-0/+4 * Sigh, if gpg returns '1' it means that the key is bad but it did succeedeJeffrey Stedfast2001-08-041-0/+8 * special case popb4smtp auth before we try and connect, and do the magicNot Zed2001-08-031-0/+26 * If we fail to get the lock, make sure we close our locking fd, and resetNot Zed2001-08-011-0/+4 * Slightly re-arranged filter/change notification logic. If we;re filtering,Not Zed2001-08-011-0/+24 * Fix the fix that fixes broken mailer behavior. We want to make sure thatJeffrey Stedfast2001-07-281-0/+7 * Allow the url to be NULL just like the libc free convention.Jeffrey Stedfast2001-07-271-0/+5 * Send an IMAP command, but don't wait for responses.Dan Winship2001-07-271-0/+21 * Add another Sender pattern.Dan Winship2001-07-251-0/+5 * Change the break into a continue, we should process as many as we canNot Zed2001-07-25