summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-08 21:05:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-08 21:05:17 +0800
commit17ff995a3907a704417d40f3259624e8cb89ec06 (patch)
treea1b762891e79f9343bfd650a22656681db70559a /mbbsd/mail.c
parent8882d3c8714103adaa80a22c5cc2d9dd931eb62d (diff)
downloadpttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar.gz
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar.bz2
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar.lz
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar.xz
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.tar.zst
pttbbs-17ff995a3907a704417d40f3259624e8cb89ec06.zip
- mail: fix forward error for 'x' address
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3978 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 485bd394..d599afa0 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1947,7 +1947,7 @@ doforward(const char *direct, const fileheader_t * fh, int mode)
char genbuf[PATHLEN];
int return_no;
- if (!address[0])
+ if (!address[0] && strcmp(cuser.email, "x") != 0)
strlcpy(address, cuser.email, sizeof(address));
if( mode == 'U' ){
@@ -1956,7 +1956,7 @@ doforward(const char *direct, const fileheader_t * fh, int mode)
trim(address);
// if user has address and not the default 'x' (no-email)...
- if (address[0] && strcmp(address, "x") != 0) {
+ if (address[0]) {
snprintf(genbuf, sizeof(genbuf),
"½T©wÂà±Hµ¹ [%s] ¶Ü(Y/N/Q)¡H[Y] ", address);
getdata(b_lines, 0, genbuf, fname, 3, LCECHO);