summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-24 13:25:57 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-24 13:25:57 +0800
commit87d13a0cc0492f60eb0536180d21d8583c921075 (patch)
treebad8a5013870ffa4a4a3abe124866d80d2b8c2da
parent5770a8816422169284adde4b0fa40322fb0c106e (diff)
downloadpttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar.gz
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar.bz2
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar.lz
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar.xz
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.tar.zst
pttbbs-87d13a0cc0492f60eb0536180d21d8583c921075.zip
* fix mutt command line. according to mutt's manpage, -a should be last option.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 5ff1f74f..a47778a4 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -2123,9 +2123,10 @@ doforward(const char *direct, const fileheader_t * fh, int mode)
} while (0);
if (mode == 'Z') {
+ assert(is_validuserid(cuser.userid));
snprintf(fname, sizeof(fname),
TAR_PATH " cfz /tmp/home.%s.tgz home/%c/%s; "
- MUTT_PATH " -a /tmp/home.%s.tgz -s 'home.%s.tgz' '%s' </dev/null;"
+ MUTT_PATH " -s 'home.%s.tgz' -a /tmp/home.%s.tgz -- '%s' </dev/null;"
"rm /tmp/home.%s.tgz",
cuser.userid, cuser.userid[0], cuser.userid,
cuser.userid, cuser.userid, address, cuser.userid);