/[imapfilter]/imapfilter/imapfilter.c
ViewVC logotype

Diff of /imapfilter/imapfilter.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by lefcha, Sat Nov 9 14:43:44 2002 UTC revision 1.40 by lefcha, Mon Feb 3 20:22:01 2003 UTC
# Line 5  Line 5 
5  #include <limits.h>  #include <limits.h>
6  #include <errno.h>  #include <errno.h>
7  #include <setjmp.h>  #include <setjmp.h>
8    #include <locale.h>
9    
10  #include "config.h"  #include "config.h"
11  #include "imapfilter.h"  #include "imapfilter.h"
# Line 26  unsigned int capabilities;     /* Capabiliti Line 27  unsigned int capabilities;     /* Capabiliti
27  unsigned int interval = 0;      /* Poll at the specified interval. */  unsigned int interval = 0;      /* Poll at the specified interval. */
28  char logfile[PATH_MAX];         /* Log file. */  char logfile[PATH_MAX];         /* Log file. */
29  char *home = NULL;              /* User's home directory. */  char *home = NULL;              /* User's home directory. */
30    char charset[CHARSET_LEN];      /* Charset for IMAP SEARCH requests. */
31  #ifdef MEMORY_LOCK  #ifdef MEMORY_LOCK
32  uid_t ruid, euid;               /* Real and effective UID. */  uid_t ruid, euid;               /* Real and effective UID. */
33  #endif  #endif
# Line 49  int main(int argc, char *argv[]) Line 51  int main(int argc, char *argv[])
51      seteuid(ruid);              /* Drop root privileges. */      seteuid(ruid);              /* Drop root privileges. */
52  #endif  #endif
53    
54        setlocale(LC_CTYPE, "");
55    
56      home = getenv("HOME");      home = getenv("HOME");
57      options = (OPTION_DETAILS_NORMAL | OPTION_NAMESPACE | OPTION_WARNING);      options = (OPTION_DETAILS_NORMAL | OPTION_NAMESPACE | OPTION_WARNING);
58        *charset = 0;
59      *logfile = 0;      *logfile = 0;
60    
61      while ((c = getopt(argc, argv, "c:d:hkl:"      while ((c = getopt(argc, argv, "c:d:hkl:"

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26