5 |
#include <unistd.h> |
#include <unistd.h> |
6 |
#include <sys/stat.h> |
#include <sys/stat.h> |
7 |
#include <sys/types.h> |
#include <sys/types.h> |
8 |
|
#include <dirent.h> |
9 |
|
|
10 |
#ifndef DATA_H |
#ifndef DATA_H |
11 |
#include "data.h" |
#include "data.h" |
15 |
#define ERROR_SIGNAL 1 |
#define ERROR_SIGNAL 1 |
16 |
#define ERROR_TRIVIAL 2 |
#define ERROR_TRIVIAL 2 |
17 |
#define ERROR_FILE_OPEN 3 |
#define ERROR_FILE_OPEN 3 |
18 |
#define ERROR_CONFIG_PARSE 4 |
#define ERROR_LOCK_FILE 4 |
19 |
#define ERROR_MEMORY_ALLOCATION 5 |
#define ERROR_CONFIG_PARSE 5 |
20 |
#define ERROR_SETUID 6 |
#define ERROR_MEMORY_ALLOCATION 6 |
21 |
#define ERROR_TERMIO 7 |
#define ERROR_SETUID 7 |
22 |
#define ERROR_NETWORK 8 |
#define ERROR_TERMIO 8 |
23 |
#define ERROR_SSL 9 |
#define ERROR_NETWORK 9 |
24 |
#define ERROR_PASSPHRASE 10 |
#define ERROR_SSL 10 |
25 |
#define ERROR_ENCRYPT 11 |
#define ERROR_PASSPHRASE 11 |
26 |
#define ERROR_DECRYPT 12 |
#define ERROR_ENCRYPT 12 |
27 |
#define ERROR_UNDEFINED 13 |
#define ERROR_DECRYPT 13 |
28 |
|
#define ERROR_UNDEFINED 14 |
29 |
|
|
30 |
/* Flags that control the program's options. */ |
/* Flags that control the program's options. */ |
31 |
#define OPTION_DETAILS_QUIET 0x01 |
#define OPTION_DETAILS_QUIET 0x01 |
135 |
int imap_close(void); |
int imap_close(void); |
136 |
/* int imap_expunge(void); */ |
/* int imap_expunge(void); */ |
137 |
|
|
138 |
|
/* lock.c */ |
139 |
|
void lockfile_create(void); |
140 |
|
void lockfile_check(void); |
141 |
|
int lockfile_remove(void); |
142 |
|
|
143 |
/* log.c */ |
/* log.c */ |
144 |
void info(const char *info,...); |
void info(const char *info,...); |
145 |
void verbose(const char *info,...); |
void verbose(const char *info,...); |