comparison src/readpst.c @ 352:09dd5299d91c

Added Content-ID header support
author Igor Stroh <igor.stroh@rulim.de>
date Thu, 17 Dec 2015 12:03:44 +0100
parents 7a91e30826d8
children 843705c25b45
comparison
equal deleted inserted replaced
351:602869b958a3 352:09dd5299d91c
1187 fprintf(f_output, "Content-Type: %s\n", MIME_TYPE_DEFAULT); 1187 fprintf(f_output, "Content-Type: %s\n", MIME_TYPE_DEFAULT);
1188 } else { 1188 } else {
1189 fprintf(f_output, "Content-Type: %s\n", attach->mimetype.str); 1189 fprintf(f_output, "Content-Type: %s\n", attach->mimetype.str);
1190 } 1190 }
1191 fprintf(f_output, "Content-Transfer-Encoding: base64\n"); 1191 fprintf(f_output, "Content-Transfer-Encoding: base64\n");
1192
1193 if (attach->content_id.str) {
1194 fprintf(f_output, "Content-ID: %s\n", attach->content_id.str);
1195 }
1192 1196
1193 if (attach->filename2.str) { 1197 if (attach->filename2.str) {
1194 // use the long filename, converted to proper encoding if needed. 1198 // use the long filename, converted to proper encoding if needed.
1195 // it is already utf8 1199 // it is already utf8
1196 pst_rfc2231(&attach->filename2); 1200 pst_rfc2231(&attach->filename2);