comparison src/readpst.c @ 247:85d77d7b034b

another patche from Kenneth Berland for solaris
author Carl Byington <carl@five-ten-sg.com>
date Fri, 07 May 2010 12:07:46 -0700
parents 5a82d41c883d
children fb66d428347d
comparison
equal deleted inserted replaced
246:5a82d41c883d 247:85d77d7b034b
1276 fprintf(f_output, "BEGIN:VCALENDAR\n"); 1276 fprintf(f_output, "BEGIN:VCALENDAR\n");
1277 fprintf(f_output, "VERSION:2.0\n"); 1277 fprintf(f_output, "VERSION:2.0\n");
1278 fprintf(f_output, "PRODID:LibPST v%s\n", VERSION); 1278 fprintf(f_output, "PRODID:LibPST v%s\n", VERSION);
1279 if (method) fprintf(f_output, "METHOD:%s\n", method); 1279 if (method) fprintf(f_output, "METHOD:%s\n", method);
1280 fprintf(f_output, "BEGIN:VEVENT\n"); 1280 fprintf(f_output, "BEGIN:VEVENT\n");
1281 if (sender) fprintf(f_output, "ORGANIZER;CN=\"%s\":MAILTO:%s\n", item->email->outlook_sender_name.str, sender); 1281 if (sender) {
1282 if (item->email->outlook_sender_name.str) {
1283 fprintf(f_output, "ORGANIZER;CN=\"%s\":MAILTO:%s\n", item->email->outlook_sender_name.str, sender);
1284 } else {
1285 fprintf(f_output, "ORGANIZER;CN=\"\":MAILTO:%s\n", sender);
1286 }
1287 }
1282 write_appointment(f_output, item); 1288 write_appointment(f_output, item);
1283 fprintf(f_output, "END:VCALENDAR\n"); 1289 fprintf(f_output, "END:VCALENDAR\n");
1284 } 1290 }
1285 1291
1286 1292