[Libpst-commits] r67 - trunk

Joseph Nahmias jello at alioth.debian.org
Wed Dec 13 21:06:47 CET 2006


Author: jello
Date: 2006-12-13 21:06:47 +0100 (Wed, 13 Dec 2006)
New Revision: 67

Modified:
   trunk/lspst.c
Log:
output start, end, and all_day flag for appointments in lspst. based on patch from Chris Hall

Index: trunk/lspst.c
===================================================================
--- trunk/lspst.c	(revision 66)
+++ trunk/lspst.c	(revision 67)
@@ -215,8 +215,13 @@ int main(int argc, char** argv) {
 				printf("Appointment");
 				if (item->email != NULL && item->email->subject != NULL)
 					printf("\tSUMMARY: %s", rfc2426_escape(item->email->subject->subj));
-				if (item->appointment != NULL && item->appointment->start != NULL)
-					printf("\tSTART: %s", rfc2445_datetime_format(item->appointment->start));
+				if (item->appointment != NULL) {
+				    if (item->appointment->start != NULL)
+					    printf("\tSTART: %s", rfc2445_datetime_format(item->appointment->start));
+				    if (item->appointment->end != NULL)
+					    printf("\tEND: %s", rfc2445_datetime_format(item->appointment->end));
+				    printf("\tALL DAY: %s", (item->appointment->all_day==1 ? "Yes" : "No"));
+				}
 				printf("\n");
 
 				// }}}3



More information about the Libpst-commits mailing list