projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup of code layout only
[mmh]
/
uip
/
sortm.c
diff --git
a/uip/sortm.c
b/uip/sortm.c
index
59247c2
..
ed09181
100644
(file)
--- 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
#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 },
{ "limit days", 0 },
-#define NLIMSW 5
- { "nolimit", 0 },
-#define VERBSW 6
+#define NLIMSW 4
+ { "nolimit", 2 },
+#define VERBSW 5
{ "verbose", 0 },
{ "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 }
};
{ "help", 0 },
{ NULL, 0 }
};
@@
-44,7
+42,7
@@
static struct smsg *smsgs;
int nmsgs;
char *subjsort = NULL; /* sort on subject if != 0 */
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;
int submajor = 0; /* if true, sort on subject-major */
int verbose;
@@
-75,9
+73,7
@@
main(int argc, char **argv)
struct msgs *mp;
struct smsg **dlist;
struct msgs *mp;
struct smsg **dlist;
-#ifdef LOCALE
setlocale(LC_ALL, "");
setlocale(LC_ALL, "");
-#endif
invo_name = mhbasename(argv[0]);
/* read user profile/context */
invo_name = mhbasename(argv[0]);
/* read user profile/context */
@@
-122,9
+118,6
@@
main(int argc, char **argv)
argp[-2]);
continue;
argp[-2]);
continue;
- case SUBJSW:
- subjsort = "subject";
- continue;
case NSUBJSW:
subjsort = NULL;
continue;
case NSUBJSW:
subjsort = NULL;
continue;
@@
-165,7
+158,7
@@
main(int argc, char **argv)
}
if (!msgs.size)
}
if (!msgs.size)
- app_msgarg(&msgs, "all");
+ app_msgarg(&msgs, seq_all);
if (!datesw)
datesw = "date";
if (!folder)
if (!datesw)
datesw = "date";
if (!folder)