summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);