projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix to 25581a94c5113eb78b2baf7110408df96efc4418: always set $editalt,
[mmh]
/
uip
/
refile.c
diff --git
a/uip/refile.c
b/uip/refile.c
index
acafbf4
..
2bd12ed
100644
(file)
--- a/
uip/refile.c
+++ b/
uip/refile.c
@@
-3,8
+3,6
@@
* refile.c -- move or link message(s) from a source folder
* -- into one or more destination folders
*
* refile.c -- move or link message(s) from a source folder
* -- into one or more destination folders
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
@@
-102,10
+100,10
@@
main (int argc, char **argv)
snprintf (buf, sizeof(buf), "%s [msgs] [switches] +folder ...",
invo_name);
print_help (buf, switches, 1);
snprintf (buf, sizeof(buf), "%s [msgs] [switches] +folder ...",
invo_name);
print_help (buf, switches, 1);
- done (1);
+ done (0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done (1);
+ done (0);
case LINKSW:
linkf++;
case LINKSW:
linkf++;
@@
-163,7
+161,7
@@
main (int argc, char **argv)
if (foldp > NFOLDERS)
adios (NULL, "only %d folders allowed!", NFOLDERS);
folders[foldp++].f_name =
if (foldp > NFOLDERS)
adios (NULL, "only %d folders allowed!", NFOLDERS);
folders[foldp++].f_name =
- path (cp + 1, *cp == '+' ? TFOLDER : TSUBCWF);
+ pluspath (cp);
} else
app_msgarg(&msgs, cp);
}
} else
app_msgarg(&msgs, cp);
}
@@
-266,7
+264,8
@@
main (int argc, char **argv)
context_replace (pfolder, folder); /* update current folder */
context_save (); /* save the context file */
folder_free (mp); /* free folder structure */
context_replace (pfolder, folder); /* update current folder */
context_save (); /* save the context file */
folder_free (mp); /* free folder structure */
- return done (0);
+ done (0);
+ return 1;
}
}
@@
-278,11
+277,9
@@
main (int argc, char **argv)
static void
opnfolds (struct st_fold *folders, int nfolders)
{
static void
opnfolds (struct st_fold *folders, int nfolders)
{
- register char *cp;
char nmaildir[BUFSIZ];
register struct st_fold *fp, *ep;
register struct msgs *mp;
char nmaildir[BUFSIZ];
register struct st_fold *fp, *ep;
register struct msgs *mp;
- struct stat st;
for (fp = folders, ep = folders + nfolders; fp < ep; fp++) {
chdir (m_maildir (""));
for (fp = folders, ep = folders + nfolders; fp < ep; fp++) {
chdir (m_maildir (""));