added pop3 support for pilerimport

This commit is contained in:
SJ
2012-11-24 23:02:08 +01:00
parent 9c9f59ac52
commit c0420fed0a
8 changed files with 289 additions and 34 deletions

View File

@@ -11,6 +11,9 @@
#include <cfg.h>
#include "defs.h"
#define CHK_NULL(x, errmsg) if ((x)==NULL) { printf("error: %s\n", errmsg); return ERR; }
#define CHK_SSL(err, msg) if ((err)==-1) { printf("ssl error: %s\n", msg); return ERR; }
int get_build();
void __fatal(char *s);
long tvdiff(struct timeval a, struct timeval b);
@@ -36,6 +39,8 @@ void init_session_data(struct session_data *sdata);
int read_from_stdin(struct session_data *sdata);
void strtolower(char *s);
unsigned long resolve_host(char *host);
#ifndef _GNU_SOURCE
char *strcasestr(const char *s, const char *find);
#endif