diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-25 02:25:48 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-03-25 02:25:48 +0800 |
commit | e5feb89dc8942194a0b8736b7d25778f84e5d37d (patch) | |
tree | 811ecda1378ef9b40cd66783d684932ec55a9c99 | |
parent | 5224c5f743a51cdb225020bfb7e44fee63d9d7ad (diff) | |
download | pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar.gz pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar.bz2 pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar.lz pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar.xz pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.tar.zst pttbbs-e5feb89dc8942194a0b8736b7d25778f84e5d37d.zip |
use mutt to (Z)ip UserHome �������p�H�������]�^�h
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@64 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mail.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index e480abb2..4a9395fa 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1,4 +1,4 @@ -/* $Id: mail.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: mail.c,v 1.2 2002/03/24 18:25:48 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1563,6 +1563,13 @@ int doforward(char *direct, fileheader_t *fh, int mode) { } if(mode == 'Z') { + sprintf(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;" + "rm /tmp/home.%s.tgz", + cuser.userid, cuser.userid[0], cuser.userid, + cuser.userid, cuser.userid, address, cuser.userid); + system(fname); + return 0; sprintf(fname, TAR_PATH " cfz - home/%c/%s | " "/usr/bin/uuencode %s.tgz > %s", cuser.userid[0], cuser.userid, cuser.userid, direct); |