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
/
forw.c
diff --git
a/uip/forw.c
b/uip/forw.c
index
9ad2877
..
3ce0b21
100644
(file)
--- a/
uip/forw.c
+++ b/
uip/forw.c
@@
-109,7
+109,7
@@
main(int argc, char **argv)
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* read user profile/context */
context_read();
/* read user profile/context */
context_read();
@@
-168,7
+168,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 FILTSW:
if (!(cp = *argp++) || *cp == '-')
continue;
case FILTSW:
if (!(cp = *argp++) || *cp == '-')
@@
-233,7
+233,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 {
msgs[msgp++] = cp;
}
} else {
msgs[msgp++] = cp;
}
@@
-241,13
+241,11
@@
main(int argc, char **argv)
cwd = getcpy(pwd());
cwd = getcpy(pwd());
- if (!context_find("path"))
- free(path("./", TFOLDER));
if (file && (msgp || folder))
adios(NULL, "can't mix files and folders/msgs");
#ifdef MHE
if (file && (msgp || folder))
adios(NULL, "can't mix files and folders/msgs");
#ifdef MHE
- strncpy(drft, buildsw ? m_maildir("draft")
+ strncpy(drft, buildsw ? toabsdir("draft")
: m_draft("new"), sizeof(drft));
#else
strncpy(drft, m_draft("new"), sizeof(drft));
: m_draft("new"), sizeof(drft));
#else
strncpy(drft, m_draft("new"), sizeof(drft));
@@
-265,8
+263,8
@@
main(int argc, char **argv)
if (!msgp)
msgs[msgp++] = "cur";
if (!folder)
if (!msgp)
msgs[msgp++] = "cur";
if (!folder)
- folder = getfolder(1);
- 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");
@@
-351,7
+349,7
@@
main(int argc, char **argv)
context_replace(buf, getcpy(value));
}
context_replace(buf, getcpy(value));
}
- 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 */
@@
-385,7
+383,7
@@
mhl_draft(int out, char *digest, int volume, int issue,
if (pipe(pd) == NOTOK)
adios("pipe", "unable to create");
if (pipe(pd) == NOTOK)
adios("pipe", "unable to create");
- vec[0] = r1bindex(mhlproc, '/');
+ vec[0] = mhbasename(mhlproc);
for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
sleep(5);
for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
sleep(5);