int num_cal; /**< ??? todo */
#endif
struct wc_attachment *first_attachment; /**< ??? todo */
+ char last_chat_user[256]; /**< ??? todo */
char ImportantMessage[SIZ]; /**< ??? todo */
int ctdl_pid; /**< Session ID on the Citadel server */
char httpauth_user[256]; /**< only for GroupDAV sessions */
extern char floorlist[128][SIZ];
extern char *axdefs[];
extern char *ctdlhost, *ctdlport;
+extern int http_port;
extern char *server_cookie;
extern int is_https;
extern int setup_wizard;
void serv_read(char *buf, int bytes);
int haschar(char *, char);
void readloop(char *oper);
+void read_message(long msgnum, int printable_view, char *section);
void embed_message(char *msgnum_as_string);
void print_message(char *msgnum_as_string);
void display_headers(char *msgnum_as_string);
-void text_to_server(char *ptr, int convert_to_html);
+void text_to_server(char *ptr);
+void text_to_server_qp(char *ptr);
void display_enter(void);
void post_message(void);
void confirm_delete_msg(void);
void offer_start_page(void);
void convenience_page(char *titlebarcolor, char *titlebarmsg, char *messagetext);
void change_start_page(void);
-void output_html(char *);
+void output_html(char *, int);
void display_floorconfig(char *);
void delete_floor(void);
void create_floor(void);
void display_calendar(long msgnum);
void display_task(long msgnum);
void display_note(long msgnum);
+void updatenote(void);
void do_calendar_view(void);
void do_tasks_view(void);
void free_calendar_buffer(void);
void tabbed_dialog(int num_tabs, char *tabnames[]);
void begin_tab(int tabnum, int num_tabs);
void end_tab(int tabnum, int num_tabs);
+void str_wiki_index(char *s);
void display_wiki_page(void);
+#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 */
void begin_burst(void);
void end_burst(void);
-extern char *ascmonths[];
-extern char *hourname[];
+extern char *ascmonths[]; /**< Short (three letter) month names */
+extern char *months[]; /**< Long (full) month names */
+extern char *hourname[]; /**< Names of hours (12am, 1am, etc.) */
+extern char *wdays[]; /**< Days of the week */
+
+void initialize_months_and_days(void);
void http_datestring(char *buf, size_t n, time_t xtime);
-/* Views (from citadel.h) */
-#define VIEW_BBS 0 /* Traditional Citadel BBS view */
-#define VIEW_MAILBOX 1 /* Mailbox summary */
-#define VIEW_ADDRESSBOOK 2 /* Address book view */
-#define VIEW_CALENDAR 3 /* Calendar view */
-#define VIEW_TASKS 4 /* Tasks view */
-#define VIEW_NOTES 5 /* Notes view */
-#define VIEW_WIKI 6 /* Wiki view */
+
+/** Views (from citadel.h) */
+#define VIEW_BBS 0 /**< Traditional Citadel BBS view */
+#define VIEW_MAILBOX 1 /**< Mailbox summary */
+#define VIEW_ADDRESSBOOK 2 /**< Address book view */
+#define VIEW_CALENDAR 3 /**< Calendar view */
+#define VIEW_TASKS 4 /**< Tasks view */
+#define VIEW_NOTES 5 /**< Notes view */
+#define VIEW_WIKI 6 /**< Wiki view */
+#define VIEW_CALBRIEF 7 /**< Brief Calendar view */
/* These should be empty, but we have them for testing */