comparison src/lspst.c @ 199:e3a46f66332b

more changes in recurrence decoding
author Carl Byington <carl@five-ten-sg.com>
date Wed, 13 May 2009 11:59:55 -0700
parents 7c60d6d1c681
children 2f38c4ce606f
comparison
equal deleted inserted replaced
198:7c60d6d1c681 199:e3a46f66332b
106 } 106 }
107 if (item->subject.str) 107 if (item->subject.str)
108 printf("Journal\t%s\n", pst_rfc2426_escape(item->subject.str)); 108 printf("Journal\t%s\n", pst_rfc2426_escape(item->subject.str));
109 109
110 } else if (item->appointment && (item->type == PST_TYPE_APPOINTMENT)) { 110 } else if (item->appointment && (item->type == PST_TYPE_APPOINTMENT)) {
111 char time_buffer[30];
111 if (!ff.type) ff.type = item->type; 112 if (!ff.type) ff.type = item->type;
112 // Process Calendar Appointment item 113 // Process Calendar Appointment item
113 DEBUG_MAIN(("main: Processing Appointment Entry\n")); 114 DEBUG_MAIN(("main: Processing Appointment Entry\n"));
114 if (ff.type != PST_TYPE_APPOINTMENT) { 115 if (ff.type != PST_TYPE_APPOINTMENT) {
115 DEBUG_MAIN(("main: I have an appointment, but folder isn't specified as an appointment type. Processing...\n")); 116 DEBUG_MAIN(("main: I have an appointment, but folder isn't specified as an appointment type. Processing...\n"));
116 } 117 }
117 printf("Appointment"); 118 printf("Appointment");
118 if (item->subject.str) 119 if (item->subject.str)
119 printf("\tSUMMARY: %s", pst_rfc2426_escape(item->subject.str)); 120 printf("\tSUMMARY: %s", pst_rfc2426_escape(item->subject.str));
120 if (item->appointment->start) 121 if (item->appointment->start)
121 printf("\tSTART: %s", pst_rfc2445_datetime_format(item->appointment->start)); 122 printf("\tSTART: %s", pst_rfc2445_datetime_format(item->appointment->start, sizeof(time_buffer), time_buffer));
122 if (item->appointment->end) 123 if (item->appointment->end)
123 printf("\tEND: %s", pst_rfc2445_datetime_format(item->appointment->end)); 124 printf("\tEND: %s", pst_rfc2445_datetime_format(item->appointment->end, sizeof(time_buffer), time_buffer));
124 printf("\tALL DAY: %s", (item->appointment->all_day==1 ? "Yes" : "No")); 125 printf("\tALL DAY: %s", (item->appointment->all_day==1 ? "Yes" : "No"));
125 printf("\n"); 126 printf("\n");
126 127
127 } else { 128 } else {
128 ff.skip_count++; 129 ff.skip_count++;