Base 64 debug output

Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
Tyrolyean 2020-04-29 19:29:13 +02:00
parent 60c0050a9b
commit c5257bbb6c
No known key found for this signature in database
GPG key ID: 81EC9BAC5E9667C6

View file

@ -225,14 +225,18 @@ void print_mail_structure(struct email_t *email, unsigned int level){
printf(" "); printf(" ");
} }
if(email->base64_encoded){
printf("Base64 encoded ");
}
if(email->is_multipart){ if(email->is_multipart){
printf("Multipart Message with %lu submessages:\n", printf("multipart Message with %lu submessages:\n",
email->submes_cnt); email->submes_cnt);
for(size_t i = 0; i < email->submes_cnt; i++){ for(size_t i = 0; i < email->submes_cnt; i++){
print_mail_structure(email->submes[i], level+1); print_mail_structure(email->submes[i], level+1);
} }
}else{ }else{
printf("Final message with length %lu and type [%.*s] \n", printf("final message with length %lu and type [%.*s] \n",
email->message_length, (int)email->ct_len, email->message_length, (int)email->ct_len,
email->content_type); email->content_type);
} }