Removed references to unused default procs and commented config/config.c
[mmh] / uip / rcvstore.c
index 06b8b69..b934220 100644 (file)
@@ -135,7 +135,7 @@ main(int argc, char **argv)
                        if (folder)
                                adios(NULL, "only one folder at a time!");
                        else
-                               folder = pluspath(cp);
+                               folder = getcpy(expandfol(cp));
                } else {
                        adios(NULL, "usage: %s [+folder] [switches]",
                                        invo_name);
@@ -144,13 +144,10 @@ main(int argc, char **argv)
 
        seqs[seqp] = NULL;  /* NULL terminate list of sequences */
 
-       if (!context_find("path"))
-               free(path("./", TFOLDER));
-
        /* if no folder is given, use default folder */
        if (!folder)
-               folder = getfolder(0);
-       maildir = m_maildir(folder);
+               folder = getdeffol();
+       maildir = toabsdir(folder);
 
        /* check if folder exists */
        if (stat(maildir, &st) == NOTOK) {
@@ -205,8 +202,8 @@ main(int argc, char **argv)
        ** Link message into folder, and possibly add
        ** to the Unseen-Sequence's.
        */
-       if ((msgnum = folder_addmsg(&mp, tmpfilenam, 0, unseensw, 0, 0,
-                       (char *)0)) == -1)
+       if ((msgnum = folder_addmsg(&mp, tmpfilenam, 0, unseensw, 0, 0, NULL))
+                       == -1)
                done(1);
 
        /*