mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:41:59 +01:00
minor code cleanup
This commit is contained in:
parent
e30025e139
commit
2de295008e
@ -105,7 +105,7 @@ int connect_to_pop3_server(int sd, char *server, char *username, char *password,
|
|||||||
|
|
||||||
|
|
||||||
int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, int use_ssl, struct __config *cfg){
|
int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, int use_ssl, struct __config *cfg){
|
||||||
int i, rc=ERR, n, messages=0, processed_messages=0, pos, endpos, len, readlen, fd, lastpos, nreads;
|
int i, rc=ERR, n, messages=0, processed_messages=0, pos, readlen, fd, lastpos, nreads;
|
||||||
char *p, buf[MAXBUFSIZE], filename[SMALLBUFSIZE];
|
char *p, buf[MAXBUFSIZE], filename[SMALLBUFSIZE];
|
||||||
char aggrbuf[3*MAXBUFSIZE];
|
char aggrbuf[3*MAXBUFSIZE];
|
||||||
|
|
||||||
@ -148,9 +148,7 @@ int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data,
|
|||||||
|
|
||||||
readlen = 0;
|
readlen = 0;
|
||||||
pos = 0;
|
pos = 0;
|
||||||
len = 0;
|
|
||||||
nreads = 0;
|
nreads = 0;
|
||||||
endpos = 0;
|
|
||||||
|
|
||||||
memset(aggrbuf, 0, sizeof(aggrbuf));
|
memset(aggrbuf, 0, sizeof(aggrbuf));
|
||||||
lastpos = 0;
|
lastpos = 0;
|
||||||
|
@ -141,9 +141,9 @@ int test_htmls(){
|
|||||||
|
|
||||||
int main(int argc, char **argv){
|
int main(int argc, char **argv){
|
||||||
int n;
|
int n;
|
||||||
struct __config cfg;
|
//struct __config cfg;
|
||||||
|
|
||||||
cfg = read_config(CONFIG_FILE);
|
//cfg = read_config(CONFIG_FILE);
|
||||||
|
|
||||||
n = test_urls();
|
n = test_urls();
|
||||||
printf("testing fixURL(), errors: %d\n", n);
|
printf("testing fixURL(), errors: %d\n", n);
|
||||||
|
@ -297,7 +297,7 @@ void usage(){
|
|||||||
int main(int argc, char **argv){
|
int main(int argc, char **argv){
|
||||||
int i, c, rc=0, n_mbox=0, tot_msgs=0;
|
int i, c, rc=0, n_mbox=0, tot_msgs=0;
|
||||||
char *configfile=CONFIG_FILE, *emlfile=NULL, *mboxdir=NULL, *mbox[MBOX_ARGS], *directory=NULL;
|
char *configfile=CONFIG_FILE, *emlfile=NULL, *mboxdir=NULL, *mbox[MBOX_ARGS], *directory=NULL;
|
||||||
char *imapserver=NULL, *username=NULL, *password=NULL, *skiplist=SKIPLIST, *folder=NULL;
|
char *imapserver=NULL, *username=NULL, *password=NULL, *skiplist=SKIPLIST;
|
||||||
struct session_data sdata;
|
struct session_data sdata;
|
||||||
struct __config cfg;
|
struct __config cfg;
|
||||||
struct __data data;
|
struct __data data;
|
||||||
@ -382,7 +382,7 @@ int main(int argc, char **argv){
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'F' :
|
case 'F' :
|
||||||
folder = optarg;
|
//folder = optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'h' :
|
case 'h' :
|
||||||
|
Loading…
Reference in New Issue
Block a user