diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 | 
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /sqwebmail/sqwebmail.h | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'sqwebmail/sqwebmail.h')
| -rw-r--r-- | sqwebmail/sqwebmail.h | 115 | 
1 files changed, 115 insertions, 0 deletions
| diff --git a/sqwebmail/sqwebmail.h b/sqwebmail/sqwebmail.h new file mode 100644 index 0000000..ff2545f --- /dev/null +++ b/sqwebmail/sqwebmail.h @@ -0,0 +1,115 @@ +/* +*/ +#ifndef	sqwebmail_h +#define	sqwebmail_h + +/* +** Copyright 1998 - 2006 Double Precision, Inc.  See COPYING for +** distribution information. +*/ + + +#if	HAVE_CONFIG_H +#undef	PACKAGE +#undef	VERSION +#include	"config.h" +#endif + +extern void error(const char *), error2(const char *, int); +extern void error3(const char *, int, const char *, const char *, int); + +#define	enomem()	error2(__FILE__,__LINE__) +#define eio(x,y)	error3(__FILE__,__LINE__,x,y,-1) +#define emsg(x,y)	error3(__FILE__,__LINE__,x,y,0) + +/* Location of the user's Maildir */ + +#define USER_DIR	"Maildir" + +/* For PAM-based authentication */ + +#define	SQWEBMAIL_PAM	"webmail" + +/* Socket filename */ + +#define SOCKFILENAME SOCKDIR "/sqwebmail.sock" + +/* Where we keep the IP address we authenticated from */ + +#define	IPFILE		"sqwebmail-ip" + +/* Last time the sent folder was renamed */ + +#define SENTSTAMP	"sqwebmail-sentstamp" + +/* File that keeps the time of last access */ + +#define	TIMESTAMP	"sqwebmail-timestamp" + +/* Various configuration stuff */ + +#define	CONFIGFILE	"sqwebmail-config" + +/* More configuration stuff */ + +#define GPGCONFIGFILE	"sqwebmail-gpgconfig" + +/* Eliminate duplicate messages being sent based on form reloads by using +** unique message tokens. +*/ + +#define	TOKENFILE	"sqwebmail-token" + +/* Sig file */ + +#define	SIGNATURE	"sqwebmail-sig" + +#define	CHECKFILENAME(p) { if (!*p || strchr((p), '/') || *p == '.') enomem(); } + +/* Cached shared paths */ + +#define SHAREDPATHCACHE	"sqwebmail-sharedpath" + +/* Wrap lines for new messages */ +#define	MYLINESIZE	76 + +/* Automake dribble */ + +#ifndef	HAVE_STRDUP +extern char *strdup(const char *); +#endif + +#ifndef	HAVE_STRCASECMP +extern int strcasecmp(const char *, const char *); +#endif + +#ifndef	HAVE_STRNCASECMP +extern int strncasecmp(const char *, const char *, size_t); +#endif + +extern void cleanup(); + +extern void http_redirect_argu(const char *, unsigned long); +extern void http_redirect_argss(const char *, const char *, const char *); +extern void http_redirect_argsss(const char *, const char *, const char *, +				const char *); + +#define	ISCTRL(c)	((unsigned char)(c) < (unsigned char)' ') + +extern void fake_exit(int); + +extern void addarg(const char *); +extern void freeargs(); +extern void insert_include(const char *); +extern const char *getarg(const char *); +extern char *get_templatedir(); +extern char *get_imageurl(); + +#define	GPGDIR "gpg" + +#define	MIMEGPGFILENAME "mimegpgfilename" +#define SEARCHRESFILENAME "searchres" + +char *trim_spaces(const char *s); + +#endif | 
