X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsortm.c;h=4cd999d8f3d2234dba9156601752ac9f07048c21;hp=0d8e39da14339d8c2a986e7079ca1699a64e27aa;hb=5f2b39344cca1086c975d47b730929d8f1904214;hpb=246ca516a0f7b870316116bc184347b0fb2bc00b diff --git a/uip/sortm.c b/uip/sortm.c index 0d8e39d..4cd999d 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -16,20 +16,18 @@ static struct swit switches[] = { #define TEXTSW 1 { "textfield field", 0 }, #define NSUBJSW 2 - { "notextfield", 0 }, -#define SUBJSW 3 - { "subject", -3 }, /* backward-compatibility */ -#define LIMSW 4 + { "notextfield", 2 }, +#define LIMSW 3 { "limit days", 0 }, -#define NLIMSW 5 - { "nolimit", 0 }, -#define VERBSW 6 +#define NLIMSW 4 + { "nolimit", 2 }, +#define VERBSW 5 { "verbose", 0 }, -#define NVERBSW 7 - { "noverbose", 0 }, -#define VERSIONSW 8 - { "version", 0 }, -#define HELPSW 9 +#define NVERBSW 6 + { "noverbose", 2 }, +#define VERSIONSW 7 + { "Version", 0 }, +#define HELPSW 8 { "help", 0 }, { NULL, 0 } }; @@ -43,8 +41,8 @@ struct smsg { static struct smsg *smsgs; int nmsgs; -char *subjsort = (char *) 0; /* sort on subject if != 0 */ -unsigned long datelimit = 0; +char *subjsort = NULL; /* sort on subject if != 0 */ +time_t datelimit = 0; int submajor = 0; /* if true, sort on subject-major */ int verbose; @@ -122,11 +120,8 @@ main(int argc, char **argv) argp[-2]); continue; - case SUBJSW: - subjsort = "subject"; - continue; case NSUBJSW: - subjsort = (char *)0; + subjsort = NULL; continue; case LIMSW: @@ -165,7 +160,7 @@ main(int argc, char **argv) } if (!msgs.size) - app_msgarg(&msgs, "all"); + app_msgarg(&msgs, seq_all); if (!datesw) datesw = "date"; if (!folder)