/*
- * Copyright (c) 1987-2012 by the citadel.org team
+ * Copyright (c) 1987-2014 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
#include <sys/stat.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#define PORT_NUM 2000 /* port number to listen on */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 813 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 813 /* Minimum required version of Citadel server */
-#define LIBCITADEL_MIN 813 /* Minimum required version of libcitadel */
+#define CLIENT_VERSION 829 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 829 /* Minimum required version of Citadel server */
+#define LIBCITADEL_MIN 821 /* Minimum required version of libcitadel */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define TARGET "webcit01" /* Window target for inline URL's */
icalproperty_status Status;
} disp_cal;
-typedef struct _IcalEnumMap {
+typedef struct _IcalKindEnumMap {
const char *Name;
long NameLen;
icalproperty_kind map;
-} IcalEnumMap;
+} IcalKindEnumMap;
+typedef struct _IcalMethodEnumMap {
+ const char *Name;
+ long NameLen;
+ icalproperty_method map;
+} IcalMethodEnumMap;
/*
* Address book entry (keep it short and sweet, it's just a quickie lookup
#define DATEFMT_BRIEF 1
#define DATEFMT_RAWDATE 2
#define DATEFMT_LOCALEDATE 3
-void webcit_fmt_date(char *buf, size_t siz, time_t thetime, int Format);
+long webcit_fmt_date(char *buf, size_t siz, time_t thetime, int Format);
typedef enum _RESTDispatchID {
typedef struct _ParsedHttpHdrs {
int http_sock; /* HTTP server socket */
+ long HaveRange;
+ long RangeStart;
+ long RangeTil;
+ long TotalBytes;
const char *Pos;
StrBuf *ReadBuf;
int starttls(int sock);
extern SSL_CTX *ssl_ctx;
int client_read_sslbuffer(StrBuf *buf, int timeout);
-void client_write_ssl(const StrBuf *Buf);
+int client_write_ssl(const StrBuf *Buf);
#endif
extern int is_https;
void begin_critical_section(int which_one);
void end_critical_section(int which_one);
+void CheckGZipCompressionAllowed(const char *MimeType, long MLen);
extern void do_404(void);
void http_redirect(const char *);
long locate_user_vcard_in_this_room(message_summary **VCMsg,
wc_mime_attachment **VCAtt);
void http_transmit_thing(const char *content_type, int is_static);
+void http_transmit_headers(const char *content_type, int is_static, long is_chunked);
long unescape_input(char *buf);
void check_thread_pool_size(void);
void StrEndTab(StrBuf *Target, int tabnum, int num_tabs);
long *msgs; /* Array of msgnums for messages we are displaying */
int num_msgs; /* Number of msgnums stored in 'msgs' */
int alloc_msgs; /* Currently allocated size of array */
+ int unread_oments;
};
struct bltr blogview_learn_thread_references(long msgnum);
void tmplput_blog_permalink(StrBuf *Target, WCTemplputParams *TP);
void display_summary_page(void);
+
+HashList *GetValidDomainNames(StrBuf *Target, WCTemplputParams *TP);