projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed ``Face'' support in mhl.
[mmh]
/
uip
/
dist.c
diff --git
a/uip/dist.c
b/uip/dist.c
index
131cda9
..
27be4a5
100644
(file)
--- a/
uip/dist.c
+++ b/
uip/dist.c
@@
-108,7
+108,7
@@
main(int argc, char **argv)
adios(NULL, "only one file at a time!");
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s", argp[-2]);
adios(NULL, "only one file at a time!");
if (!(cp = *argp++) || *cp == '-')
adios(NULL, "missing argument to %s", argp[-2]);
- file = path(cp, TFILE);
+ file = getcpy(expanddir(cp));
continue;
case FORMSW:
if (!(form = *argp++) || *form == '-')
continue;
case FORMSW:
if (!(form = *argp++) || *form == '-')
@@
-127,7
+127,7
@@
main(int argc, char **argv)
if (folder)
adios(NULL, "only one folder at a time!");
else
if (folder)
adios(NULL, "only one folder at a time!");
else
- folder = pluspath(cp);
+ folder = getcpy(expandfol(cp));
} else {
if (msg)
adios(NULL, "only one message at a time!");
} else {
if (msg)
adios(NULL, "only one message at a time!");
@@
-138,8
+138,6
@@
main(int argc, char **argv)
cwd = getcpy(pwd());
cwd = getcpy(pwd());
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
if (file && (msg || folder))
adios(NULL, "can't mix files and folders/msgs");
@@
-166,8
+164,8
@@
main(int argc, char **argv)
if (!msg)
msg = "cur";
if (!folder)
if (!msg)
msg = "cur";
if (!folder)
- folder = getfolder(FCUR);
- maildir = m_maildir(folder);
+ folder = getcurfol();
+ maildir = toabsdir(folder);
if (chdir(maildir) == NOTOK)
adios(maildir, "unable to change directory to");
if (chdir(maildir) == NOTOK)
adios(maildir, "unable to change directory to");
@@
-194,7
+192,7
@@
main(int argc, char **argv)
adios(msgnam, "unable to open message");
if (!file) {
adios(msgnam, "unable to open message");
if (!file) {
- context_replace(pfolder, folder); /* update current folder */
+ context_replace(curfolder, folder); /* update current folder */
seq_setcur(mp, mp->lowsel); /* update current message */
seq_save(mp); /* synchronize sequences */
context_save(); /* save the context file */
seq_setcur(mp, mp->lowsel); /* update current message */
seq_save(mp); /* synchronize sequences */
context_save(); /* save the context file */