/* This keeps compiler happy on calls to qsort */
typedef int (*qsort_comp) (const void *, const void *);
/* This keeps compiler happy on calls to qsort */
typedef int (*qsort_comp) (const void *, const void *);
snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]",
invo_name);
print_help (buf, switches, 1);
snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]",
invo_name);
print_help (buf, switches, 1);
if (!context_find ("path"))
free (path ("./", TFOLDER));
if (!context_find ("path"))
free (path ("./", TFOLDER));
- if (!msgs.size)
- app_msgarg(&msgs, "all");
+ if (!msgs.size) {
+ if (allmsgs) {
+ app_msgarg(&msgs, "all");
+ } else {
+ adios (NULL, "must specify messages to sort with -noall");
+ }
+ }