X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mymail.git;a=blobdiff_plain;f=mymail.c;h=a584e48a5bdbb544e622bb9537399701cc3e897a;hp=770df43b7c534144a3cf382b3411f489997308b0;hb=953c4d5b2fe270d10ca826b8d448d36edbb49f68;hpb=c35b861ba366be8bcd944e283aa90e3e1eb4fbe6 diff --git a/mymail.c b/mymail.c index 770df43..a584e48 100644 --- a/mymail.c +++ b/mymail.c @@ -264,7 +264,7 @@ void print_usage(FILE *out) { fprintf(out, " -t, --use-leading-time\n"); fprintf(out, " use the time stamp from the leading line of each mail and not the Date:\n"); fprintf(out, " field\n"); - fprintf(out, " -f, --do-not-discard-mails-in-the-future\n"); + fprintf(out, " -f, --do-not-discard-mails-from-the-future\n"); fprintf(out, " do not ignore mails with a date more than 24h in the future\n"); fprintf(out, " -p , --db-pattern \n"); fprintf(out, " set the db filename pattern for recursive search\n"); @@ -581,8 +581,8 @@ int search_in_db(const char *db_filename, } } - printf("global_discard_mail_from_the_future = %d\n", - global_discard_mail_from_the_future); + /* printf("global_discard_mail_from_the_future = %d\n", + global_discard_mail_from_the_future); */ if(nb_extracted_mails < global_nb_mails_max && current_mail_filename[0] && @@ -808,7 +808,7 @@ static struct option long_options[] = { { "version", no_argument, 0, 'v' }, { "quiet", no_argument, 0, 'q' }, { "use-leading-time", no_argument, 0, 't' }, - { "do-not-discard-mails-in-the-future", no_argument, 0, 'f' }, + { "do-not-discard-mails-from-the-future", no_argument, 0, 'f' }, { "db-file-output", 1, 0, 'd' }, { "db-pattern", 1, 0, 'p' }, { "db-root", 1, 0, 'r' }, @@ -833,6 +833,7 @@ struct time_criterion { static struct time_criterion time_criteria[] = { + { "1h", 0, 1, -1, -1 }, { "8h", 0, 8, -1, -1 }, { "24h", 0, 24, -1, -1 }, { "48h", 0, 48, -1, -1 },