]> code.citadel.org Git - citadel.git/blobdiff - webcit/messages.h
* output the mime type of the tepmlate in read_message so we can have different ones
[citadel.git] / webcit / messages.h
index 728b1359ee6d1a6e6a96621f08c543af5dc37f0b..cd2e8ecfca5bfcc5c4dbabc5ff17a9236caa8f8b 100644 (file)
@@ -17,7 +17,7 @@ struct wc_mime_attachment {
        StrBuf *ContentType;
        StrBuf *Charset;
        StrBuf *Data;
-       size_t length;                     /* length of the mimeatachment */
+       size_t length;                     /* length of the mimeattachment */
        long size_known;
        long lvalue;               /* if we put a long... */
        long msgnum;            /**< the message number on the citadel server derived from message_summary */
@@ -48,14 +48,14 @@ typedef struct _message_summary {
        StrBuf *OtherNode;
        const StrBuf *PartNum;
 
-       HashList *Attachments;  /**< list of Accachments */
+       HashList *Attachments;  /**< list of Attachments */
        HashList *Submessages;
        HashList *AttachLinks;
 
        HashList *AllAttach;
 
        int is_new;         /**< is it yet read? */
-       int hasattachments;     /* does it have atachments? */
+       int hasattachments;     /* does it have attachments? */
 
 
        /** The mime part of the message */
@@ -85,7 +85,14 @@ typedef struct _readloopstruct {
 
 
 void readloop(long oper);
-int  read_message(StrBuf *Target, const char *tmpl, long tmpllen, long msgnum, int printable_view, const StrBuf *section);
+int read_message(StrBuf *Target, 
+                const char *tmpl, long tmpllen, 
+                long msgnum, 
+                const StrBuf *section, 
+                const StrBuf **OutMime);
+int load_message(message_summary *Msg, 
+                StrBuf *FoundCharset,
+                StrBuf **Error);
 
 
 int load_msg_ptrs(const char *servcmd, int with_headers);