-.TH "MYMAIL" "0.9.6" "March 2013" "Francois Fleuret" "User Commands"
+.TH "MYMAIL" "0.9.7" "March 2013" "Francois Fleuret" "User Commands"
\" This man page was written by Francois Fleuret <francois@fleuret.org>
\" and is distributed under a Creative Commons Attribution-Share Alike
#include <time.h>
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
-#define VERSION "0.9.6"
+#define VERSION "0.9.7"
#define MAX_NB_SEARCH_CONDITIONS 32
char raw_mbox_line[BUFFER_SIZE];
FILE *mail_file;
+ /* printf("Extract\n"); */
+
mail_file = safe_fopen(mail_filename, "r", "mbox for mail extraction");
fseek(mail_file, position_in_mail, SEEK_SET);
if(db_key == ID_LEADING_LINE) {
c = db_value;
while(*c && *c != ' ') c++; while(*c && *c == ' ') c++;
+ /* printf("From %s", db_value); */
strptime(c, "%a %b %e %k:%M:%S %Y", &tm);
*t = mktime(&tm);
} else {
if(db_key == ID_DATE) {
if(strptime(db_value, "%a, %d %b %Y %k:%M:%S", &tm) ||
strptime(db_value, "%d %b %Y %k:%M:%S", &tm)) {
+ /* printf("Date: %s", db_value); */
*t = mktime(&tm);
}
}
condition->time_stop = 0;
}
}
+
break;
}
}