X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fsortm.c;h=9e96d5a4cde0896f9a8a19aa050b51f67612c7d8;hb=00140a3c86e9def69d98ba2ffd4d6e50ef6326ea;hp=59247c2b360c5f2c62b3398c2f91dc134ff3fc17;hpb=7e3bc577e84e13a47005a706718bd6ec0e6a0e0a;p=mmh diff --git a/uip/sortm.c b/uip/sortm.c index 59247c2..9e96d5a 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -17,19 +17,17 @@ static struct swit switches[] = { { "textfield field", 0 }, #define NSUBJSW 2 { "notextfield", 0 }, -#define SUBJSW 3 - { "subject", -3 }, /* backward-compatibility */ -#define LIMSW 4 +#define LIMSW 3 { "limit days", 0 }, -#define NLIMSW 5 +#define NLIMSW 4 { "nolimit", 0 }, -#define VERBSW 6 +#define VERBSW 5 { "verbose", 0 }, -#define NVERBSW 7 +#define NVERBSW 6 { "noverbose", 0 }, -#define VERSIONSW 8 - { "version", 0 }, -#define HELPSW 9 +#define VERSIONSW 7 + { "Version", 0 }, +#define HELPSW 8 { "help", 0 }, { NULL, 0 } }; @@ -44,7 +42,7 @@ static struct smsg *smsgs; int nmsgs; char *subjsort = NULL; /* sort on subject if != 0 */ -unsigned long datelimit = 0; +time_t datelimit = 0; int submajor = 0; /* if true, sort on subject-major */ int verbose; @@ -122,9 +120,6 @@ main(int argc, char **argv) argp[-2]); continue; - case SUBJSW: - subjsort = "subject"; - continue; case NSUBJSW: subjsort = NULL; continue; @@ -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)