X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d03048946b96d9e255603ea49454f33cb71a420f..2fc70e8bf64ead869fce76abb74f04bf1af94923:/uip/scan.c?ds=sidebyside diff --git a/uip/scan.c b/uip/scan.c index c775db50..d9d8ca9d 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -1,6 +1,4 @@ - -/* - * scan.c -- display a one-line "scan" listing of folder or messages +/* scan.c -- display a one-line "scan" listing of folder or messages * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -13,6 +11,7 @@ #include #include #include +#include "../sbr/m_maildir.h" #define SCAN_SWITCHES \ X("clear", 0, CLRSW) \ @@ -127,10 +126,9 @@ main (int argc, char **argv) if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else - app_msgarg(&msgs, cp); + app_msgarg(&msgs, cp); } if (!context_find ("path")) @@ -222,8 +220,7 @@ main (int argc, char **argv) ivector_push_back (seqnum, seq_getnum (mp, *ap)); num_unseen_seq = i; - if (dp) - free(dp); + mh_xfree(dp); } ontty = isatty (fileno (stdout)); @@ -267,7 +264,7 @@ main (int argc, char **argv) adios (NULL, "scan() botch (%d)", state); case SCNEOF: - advise (NULL, "message %d: empty", msgnum); + inform("message %d: empty", msgnum); break; } charstring_free (scanl);