mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:01:58 +01:00
Improved imap quite==0
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4ce49d6bc2
commit
689a06cfa4
10
src/imap.c
10
src/imap.c
@ -159,7 +159,7 @@ int imap_select_cmd_on_folder(char *folder, struct data *data){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("found %d messages\n", messages);
|
if(data->quiet == 0){printf("found %d messages\n", messages); }
|
||||||
|
|
||||||
data->import->total_messages += messages;
|
data->import->total_messages += messages;
|
||||||
|
|
||||||
@ -356,7 +356,7 @@ int process_imap_folder(char *folder, struct session_data *sdata, struct data *d
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
printf("\n");
|
if(data->quiet == 0){printf("\n"); }
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
@ -375,7 +375,7 @@ int list_folders(struct data *data){
|
|||||||
char attrs[SMALLBUFSIZE], folder[SMALLBUFSIZE];
|
char attrs[SMALLBUFSIZE], folder[SMALLBUFSIZE];
|
||||||
int len=MAXBUFSIZE+3, pos=0, n, rc=ERR, fldrlen=0, result;
|
int len=MAXBUFSIZE+3, pos=0, n, rc=ERR, fldrlen=0, result;
|
||||||
|
|
||||||
printf("List of IMAP folders:\n");
|
if(data->quiet == 0){printf("List of IMAP folders:\n"); }
|
||||||
|
|
||||||
buf = malloc(len);
|
buf = malloc(len);
|
||||||
if(!buf) return rc;
|
if(!buf) return rc;
|
||||||
@ -478,9 +478,9 @@ int list_folders(struct data *data){
|
|||||||
if(!strstr(attrs, "\\Noselect")){
|
if(!strstr(attrs, "\\Noselect")){
|
||||||
addnode(data->imapfolders, folder);
|
addnode(data->imapfolders, folder);
|
||||||
}
|
}
|
||||||
else printf("skipping ");
|
else if(data->quiet == 0){printf("skipping "); }
|
||||||
|
|
||||||
printf("=> '%s [%s]'\n", folder, attrs);
|
if(data->quiet == 0){printf("=> '%s [%s]'\n", folder, attrs); }
|
||||||
|
|
||||||
memset(attrs, 0, sizeof(attrs));
|
memset(attrs, 0, sizeof(attrs));
|
||||||
}
|
}
|
||||||
|
@ -716,7 +716,7 @@ int init_ssl_to_server(struct data *data){
|
|||||||
n = SSL_connect(data->net->ssl);
|
n = SSL_connect(data->net->ssl);
|
||||||
CHK_SSL(n, "internal ssl error");
|
CHK_SSL(n, "internal ssl error");
|
||||||
|
|
||||||
printf("Cipher: %s\n", SSL_get_cipher(data->net->ssl));
|
//printf("Cipher: %s\n", SSL_get_cipher(data->net->ssl));
|
||||||
|
|
||||||
server_cert = SSL_get_peer_certificate(data->net->ssl);
|
server_cert = SSL_get_peer_certificate(data->net->ssl);
|
||||||
CHK_NULL(server_cert, "server cert error");
|
CHK_NULL(server_cert, "server cert error");
|
||||||
|
Loading…
Reference in New Issue
Block a user