annotate src/lspst.c @ 40:be6d5329cc01 stable-0-5-11

fix unitialized variable
author carl
date Fri, 24 Aug 2007 18:57:59 -0700
parents b88ceb81dba2
children f6db1f060a95
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
1 /***
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
2 * lspst.c
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
3 * Part of the LibPST project
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
4 * Author: Joe Nahmias <joe@nahmias.net>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
5 * Based on readpst.c by by David Smith <dave.s@earthcorp.com>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
6 *
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
7 */
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
8
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
9 // header file includes {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
10 #include <stdio.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
11 #include <stdlib.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
12 #include <time.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
13 #include <string.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
14 #include <ctype.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
15 #include <errno.h>
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
17 #include "libpst.h"
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
18 #include "define.h"
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
19 #include "timeconv.h"
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
20 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
21 // struct file_ll {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
22 struct file_ll {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
23 char *name;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
24 char *dname;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
25 FILE * output;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
26 int32_t stored_count;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
27 int32_t email_count;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
28 int32_t skip_count;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
29 int32_t type;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
30 struct file_ll *next;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
31 };
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
32 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
33 // Function Declarations {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
34 void canonicalize_filename(char *fname);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
35 int chr_count(char *str, char x);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
36 void debug_print(char *fmt, ...);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
37 char *rfc2426_escape(char *str);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
38 char *rfc2445_datetime_format(FILETIME *ft);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
39 // }}}1
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
40 #ifndef LSPST_DEBUG_MAIN
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
41 #define LSPST_DEBUG_MAIN(x) debug_print x;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
42 #endif
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
43 // int main(int argc, char** argv) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
44 int main(int argc, char** argv) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
45
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
46 // declarations {{{2
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
47 pst_item *item = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
48 pst_file pstfile;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
49 pst_desc_ll *d_ptr;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
50 char *temp = NULL; //temporary char pointer
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
51 int skip_child = 0;
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
52 struct file_ll *f = NULL, *head = NULL;
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
53 // }}}2
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
54
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
55 if (argc <= 1)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
56 DIE(("Missing PST filename.\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
57
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
58 // Open PST file
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
59 if ( pst_open(&pstfile, argv[1], "r") )
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
60 DIE(("Error opening File\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
61 // Load PST index
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
62 if ( pst_load_index(&pstfile) )
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
63 DIE(("Index Error\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
64 pst_load_extended_attributes(&pstfile);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
65
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
66 d_ptr = pstfile.d_head; // first record is main record
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
67 if ((item = _pst_parse_item(&pstfile, d_ptr)) == NULL || item->message_store == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
68 DIE(("main: Could not get root record\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
69 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
70
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
71 // default the file_as to the same as the main filename if it doesn't exist
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
72 if (item->file_as == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
73 if ((temp = strrchr(argv[1], '/')) == NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
74 if ((temp = strrchr(argv[1], '\\')) == NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
75 temp = argv[1];
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
76 else
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
77 temp++; // get past the "\\"
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
78 else
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
79 temp++; // get past the "/"
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
80 item->file_as = (char*)xmalloc(strlen(temp)+1);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
81 strcpy(item->file_as, temp);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
82 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
83 fprintf(stderr, "item->file_as = '%s'.\n", item->file_as);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
84
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
85 // setup head file_ll
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
86 head = (struct file_ll*) malloc(sizeof(struct file_ll));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
87 memset(head, 0, sizeof(struct file_ll));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
88 head->email_count = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
89 head->skip_count = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
90 head->next = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
91 head->name = "mbox";
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
92 head->dname = (char*) malloc(strlen(item->file_as)+1);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
93 strcpy(head->dname, item->file_as);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
94 head->type = item->type;
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
95 LSPST_DEBUG_MAIN(("head @ %p: name = '%s', dname = '%s', next = %p.\n", head, head->name, head->dname, head->next));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
96
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
97 if ((d_ptr = pst_getTopOfFolders(&pstfile, item)) == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
98 DIE(("Top of folders record not found. Cannot continue\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
99 }
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
100 LSPST_DEBUG_MAIN(("d_ptr(TOF) = %p.\n", d_ptr));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
101
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
102 if (item){
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
103 _pst_freeItem(item);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
104 item = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
105 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
106
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
107 d_ptr = d_ptr->child; // do the children of TOPF
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
108 LSPST_DEBUG_MAIN(("d_ptr(TOF->child) = %p.\n", d_ptr));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
109
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
110 LSPST_DEBUG_MAIN(("main: About to do email stuff\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
111 while (d_ptr != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
112 // Process d_ptr {{{2
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
113 LSPST_DEBUG_MAIN(("main: New item record, d_ptr = %p.\n", d_ptr));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
114 if (d_ptr->desc == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
115 DEBUG_WARN(("main: ERROR ?? item's desc record is NULL\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
116 f->skip_count++;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
117 goto check_parent;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
118 }
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
119 LSPST_DEBUG_MAIN(("main: Desc Email ID %x [d_ptr->id = %x]\n", d_ptr->desc->id, d_ptr->id));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
120
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
121 item = _pst_parse_item(&pstfile, d_ptr);
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
122 LSPST_DEBUG_MAIN(("main: About to process item @ %p.\n", item));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
123 if (item != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
124
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
125 // there should only be one message_store, and we have already
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
126 // done it
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
127 if (item->message_store != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
128 DIE(("ERROR(main): A second message_store has been found.\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
129 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
130
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
131 if (item->folder != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
132 // Process Folder item {{{3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
133 // if this is a folder, we want to recurse into it
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
134 printf("Folder");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
135 if (item->file_as != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
136 printf("\t%s/", item->file_as);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
137 printf("\n");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
138
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
139 LSPST_DEBUG_MAIN(("main: I think I may try to go into folder \"%s\"\n", item->file_as));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
140 f = (struct file_ll*) malloc(sizeof(struct file_ll));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
141 memset(f, 0, sizeof(struct file_ll));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
142 f->next = head;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
143 f->email_count = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
144 f->type = item->type;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
145 f->stored_count = item->folder->email_count;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
146 head = f;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
147 f->name = "mbox";
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
148 f->dname = (char*) xmalloc(strlen(item->file_as)+1);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
149 strcpy(f->dname, item->file_as);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
150
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
151 LSPST_DEBUG_MAIN(("main: f->name = %s\nitem->folder_name = %s\n", f->name, item->file_as));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
152 canonicalize_filename(f->name);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
153
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
154 if (d_ptr->child != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
155 d_ptr = d_ptr->child;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
156 skip_child = 1;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
157 } else {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
158 LSPST_DEBUG_MAIN(("main: Folder has NO children. Creating directory, and closing again\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
159 // printf("\tNo items to process in folder \"%s\", should have been %i\n", f->dname, f->stored_count);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
160 head = f->next;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
161 if (f->output != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
162 fclose(f->output);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
163 free(f->dname);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
164 free(f->name);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
165 free(f);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
166
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
167 f = head;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
168 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
169 _pst_freeItem(item);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
170 item = NULL; // just for the odd situations!
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
171 goto check_parent;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
172 // }}}3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
173 } else if (item->contact != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
174 // Process Contact item {{{3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
175 if (f->type != PST_TYPE_CONTACT) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
176 LSPST_DEBUG_MAIN(("main: I have a contact, but the folder isn't a contacts folder. "
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
177 "Will process anyway\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
178 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
179 if (item->type != PST_TYPE_CONTACT) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
180 LSPST_DEBUG_MAIN(("main: I have an item that has contact info, but doesn't say that"
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
181 " it is a contact. Type is \"%s\"\n", item->ascii_type));
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
182 LSPST_DEBUG_MAIN(("main: Processing anyway\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
183 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
184
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
185 printf("Contact");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
186 if (item->contact->fullname != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
187 printf("\t%s", rfc2426_escape(item->contact->fullname));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
188 printf("\n");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
189 // }}}3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
190 } else if (item->email != NULL &&
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
191 (item->type == PST_TYPE_NOTE || item->type == PST_TYPE_REPORT)) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
192 // Process Email item {{{3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
193 printf("Email");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
194 if (item->email->outlook_sender_name != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
195 printf("\tFrom: %s", item->email->outlook_sender_name);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
196 if (item->email->subject->subj != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
197 printf("\tSubject: %s", item->email->subject->subj);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
198 printf("\n");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
199 // }}}3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
200 } else if (item->type == PST_TYPE_JOURNAL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
201 // Process Journal item {{{3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
202 if (f->type != PST_TYPE_JOURNAL) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
203 LSPST_DEBUG_MAIN(("main: I have a journal entry, but folder isn't specified as a journal type. Processing...\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
204 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
205
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
206 printf("Journal\t%s\n", rfc2426_escape(item->email->subject->subj));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
207 // }}}3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
208 } else if (item->type == PST_TYPE_APPOINTMENT) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
209 // Process Calendar Appointment item {{{3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
210 // deal with Calendar appointments
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
211
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
212 LSPST_DEBUG_MAIN(("main: Processing Appointment Entry\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
213 if (f->type != PST_TYPE_APPOINTMENT) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
214 LSPST_DEBUG_MAIN(("main: I have an appointment, but folder isn't specified as an appointment type. Processing...\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
215 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
216
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
217 printf("Appointment");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
218 if (item->email != NULL && item->email->subject != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
219 printf("\tSUMMARY: %s", rfc2426_escape(item->email->subject->subj));
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
220 if (item->appointment != NULL) {
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
221 if (item->appointment->start != NULL)
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
222 printf("\tSTART: %s", rfc2445_datetime_format(item->appointment->start));
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
223 if (item->appointment->end != NULL)
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
224 printf("\tEND: %s", rfc2445_datetime_format(item->appointment->end));
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
225 printf("\tALL DAY: %s", (item->appointment->all_day==1 ? "Yes" : "No"));
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
226 }
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
227 printf("\n");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
228
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
229 // }}}3
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
230 } else {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
231 f->skip_count++;
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
232 LSPST_DEBUG_MAIN(("main: Unknown item type. %i. Ascii1=\"%s\"\n", \
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
233 item->type, item->ascii_type));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
234 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
235 } else {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
236 f->skip_count++;
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
237 LSPST_DEBUG_MAIN(("main: A NULL item was seen\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
238 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
239
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
240 check_parent:
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
241 // _pst_freeItem(item);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
242 while (!skip_child && d_ptr->next == NULL && d_ptr->parent != NULL) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
243 LSPST_DEBUG_MAIN(("main: Going to Parent\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
244 head = f->next;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
245 if (f->output != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
246 fclose(f->output);
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
247 LSPST_DEBUG_MAIN(("main: Email Count for folder %s is %i\n", f->dname, f->email_count));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
248 /*
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
249 printf("\t\"%s\" - %i items done, skipped %i, should have been %i\n", \
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
250 f->dname, f->email_count, f->skip_count, f->stored_count);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
251 */
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
252
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
253 free(f->name);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
254 free(f->dname);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
255 free(f);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
256 f = head;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
257 if (head == NULL) { //we can't go higher. Must be at start?
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
258 LSPST_DEBUG_MAIN(("main: We are now trying to go above the highest level. We must be finished\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
259 break; //from main while loop
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
260 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
261 d_ptr = d_ptr->parent;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
262 skip_child = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
263 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
264
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
265 if (item != NULL) {
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
266 LSPST_DEBUG_MAIN(("main: Freeing memory used by item\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
267 _pst_freeItem(item);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
268 item = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
269 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
270
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
271 if (!skip_child)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
272 d_ptr = d_ptr->next;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
273 else
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
274 skip_child = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
275
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
276 if (d_ptr == NULL) { LSPST_DEBUG_MAIN(("main: d_ptr is now NULL\n")); }
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
277
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
278 // }}}2
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
279 } // end while(d_ptr != NULL)
31
b88ceb81dba2 mege changes from Joe Nahmias
carl
parents: 16
diff changeset
280 LSPST_DEBUG_MAIN(("main: Finished.\n"));
16
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
281
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
282 // Cleanup {{{2
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
283 pst_close(&pstfile);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
284 while (f != NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
285 if (f->output != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
286 fclose(f->output);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
287 free(f->name);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
288 free(f->dname);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
289
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
290 head = f->next;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
291 free(f);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
292 f = head;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
293 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
294 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
295 // }}}2
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
296
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
297 return 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
298 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
299 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
300 // void canonicalize_filename(char *fname) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
301 // This function will make sure that a filename is in cannonical form. That
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
302 // is, it will replace any slashes, backslashes, or colons with underscores.
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
303 void canonicalize_filename(char *fname) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
304 DEBUG_ENT("canonicalize_filename");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
305 if (fname == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
306 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
307 return;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
308 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
309 while ((fname = strpbrk(fname, "/\\:")) != NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
310 *fname = '_';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
311 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
312 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
313 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
314 // int chr_count(char *str, char x) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
315 int chr_count(char *str, char x) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
316 int r = 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
317 if (str == NULL) return 0;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
318 while (*str != '\0') {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
319 if (*str == x)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
320 r++;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
321 str++;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
322 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
323 return r;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
324 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
325 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
326 // void debug_print(char *fmt, ...) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
327 void debug_print(char *fmt, ...) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
328 // shamlessly stolen from minprintf() in K&R pg. 156
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
329 va_list ap;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
330 char *p, *sval;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
331 void *pval;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
332 int ival;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
333 double dval;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
334 FILE *fp = stderr;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
335
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
336 va_start(ap, fmt);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
337 for(p = fmt; *p; p++) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
338 if (*p != '%') {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
339 fputc(*p, fp);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
340 continue;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
341 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
342 switch (tolower(*++p)) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
343 case 'd': case 'i':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
344 ival = va_arg(ap, int);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
345 fprintf(fp, "%d", ival);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
346 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
347 case 'f':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
348 dval = va_arg(ap, double);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
349 fprintf(fp, "%f", dval);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
350 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
351 case 's':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
352 for (sval = va_arg(ap, char *); *sval; ++sval)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
353 fputc(*sval, fp);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
354 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
355 case 'p':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
356 pval = va_arg(ap, void *);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
357 fprintf(fp, "%p", pval);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
358 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
359 case 'x':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
360 ival = va_arg(ap, int);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
361 fprintf(fp, "%#010x", ival);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
362 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
363 default:
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
364 fputc(*p, fp);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
365 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
366 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
367 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
368 va_end(ap);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
369 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
370 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
371 // char *rfc2426_escape(char *str) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
372 char *rfc2426_escape(char *str) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
373 static char *buf = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
374 char *a, *b;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
375 int y, z;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
376
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
377 DEBUG_ENT("rfc2426_escape");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
378 if (str == NULL) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
379 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
380 return NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
381 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
382
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
383 // calculate space required to escape all the commas, semi-colons, backslashes, and newlines
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
384 y = chr_count(str, ',') + chr_count(str, '\\') + chr_count(str, ';') + chr_count(str, '\n');
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
385 // count how many carriage-returns we have to skip
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
386 z = chr_count(str, '\r');
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
387
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
388 if (y == 0 && z == 0) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
389 // there isn't any work required
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
390 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
391 return str;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
392 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
393
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
394 buf = (char *) realloc( buf, strlen(str) + y - z + 1 );
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
395 for (a = str, b = buf; *a != '\0'; ++a, ++b)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
396 switch (*a) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
397 case ',' : case '\\': case ';' : case '\n':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
398 // insert backslash to escape
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
399 *(b++) = '\\';
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
400 *b = *a;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
401 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
402 case '\r':
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
403 // skip
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
404 break;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
405 default:
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
406 *b = *a;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
407 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
408 *b = '\0'; // NUL-terminate the string
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
409
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
410 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
411 return buf;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
412 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
413 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
414 // char *rfc2445_datetime_format(FILETIME *ft) {{{1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
415 char *rfc2445_datetime_format(FILETIME *ft) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
416 static char* buffer = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
417 struct tm *stm = NULL;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
418 DEBUG_ENT("rfc2445_datetime_format");
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
419 if (buffer == NULL)
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
420 buffer = malloc(30); // should be enough
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
421 stm = fileTimeToStructTM(ft);
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
422 if (strftime(buffer, 30, "%Y%m%dT%H%M%SZ", stm)==0) {
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
423 DEBUG_INFO(("Problem occured formatting date\n"));
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
424 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
425 DEBUG_RET();
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
426 return buffer;
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
427 }
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
428 // }}}1
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
429
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
430 // vim:sw=4 ts=4:
c508ee15dfca switch to automake/autoconf
carl
parents:
diff changeset
431 // vim600: set foldlevel=0 foldmethod=marker: