]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
* while decoding messages, guess the charset in this sequence:
[citadel.git] / webcit / webcit.h
index abcfb13cbffb89af7ecb471a2c4d0480a53e8dd3..ac36328c4cff786a932b12344110ef3b3ca6e0aa 100644 (file)
@@ -401,6 +401,7 @@ typedef struct _wc_mime_attachment {
        StrBuf *Charset;
        StrBuf *Data;
        size_t length;                     /* length of the mimeatachment */
+       long size_known;
        char content_type[SIZ];    /* the content itself ???*/
        char filename[SIZ];                /* the filename hooked to this content ??? */
        char *data;                /* the data pool; aka this content */
@@ -409,7 +410,7 @@ typedef struct _wc_mime_attachment {
 }wc_mime_attachment;
 
 
-typedef void (*RenderMimeFunc)(wc_mime_attachment *Mime, StrBuf *RawData);
+typedef void (*RenderMimeFunc)(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset);
 
 /*
  * \brief message summary structure. ???
@@ -449,7 +450,7 @@ typedef struct _message_summary {
        wc_mime_attachment *vcard_partnum_ref;
 } message_summary;
 
-typedef void (*ExamineMsgHeaderFunc)(message_summary *Msg, StrBuf *HdrLine);
+typedef void (*ExamineMsgHeaderFunc)(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset);
 
 
 
@@ -671,6 +672,7 @@ void who_inner_div(void);
 void ajax_mini_calendar(void);
 void fmout(char *align);
 void _fmout(StrBuf *Targt, char *align);
+void FmOut(StrBuf *Target, char *align, StrBuf *Source);
 void pullquote_fmout(void);
 void wDumpContent(int);
 
@@ -731,6 +733,7 @@ void print_menu_box(char* Title, char *Class, int nLines, ...);
 long stresc(char *target, long tSize, char *strbuf, int nbsp, int nolinebreaks);
 void escputs(char *strbuf);
 void url(char *buf, size_t bufsize);
+void UrlizeText(StrBuf* Target, StrBuf *Source, StrBuf *WrkBuf);
 void escputs1(char *strbuf, int nbsp, int nolinebreaks);
 void msgesc(char *target, size_t tlen, char *strbuf);
 void msgescputs(char *strbuf);
@@ -915,10 +918,6 @@ int fetch_http(char *url, char *target_buf, int maxbytes);
 
 int is_mobile_ua(char *user_agent);
 
-#ifdef HAVE_ICONV
-iconv_t ctdl_iconv_open(const char *tocode, const char *fromcode);
-#endif
-
 void embed_room_banner(char *, int);
 
 /* navbar types that can be passed to embed_room_banner */