diff options
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index aab8e145..d23b6348 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1700,52 +1700,3 @@ load_mailalert(const char *userid) } return 0; } - -#ifdef EMAIL_JUSTIFY -static void -mail_justify(userec_t muser) -{ - fileheader_t mhdr; - char title[128], buf1[80]; - FILE *fp; - - sethomepath(buf1, muser.userid); - stampfile(buf1, &mhdr); - unlink(buf1); - strlcpy(mhdr.owner, cuser.userid, sizeof(mhdr.owner)); - strncpy(mhdr.title, "[¼f®Ö³q¹L]", TTLEN); - mhdr.filemode = 0; - - if (valid_ident(muser.email) && !invalidaddr(muser.email)) { - char title[80], *ptr; - unsigned short checksum; /* 16-bit is enough */ - char ch; - - checksum = searchuser(muser.userid); - ptr = muser.email; - while ((ch = *ptr++)) { - if (ch <= ' ') - break; - if (ch >= 'A' && ch <= 'Z') - ch |= 0x20; - checksum = (checksum << 1) ^ ch; - } - - snprintf(title, sizeof(title), "[PTT BBS]To %s(%d:%d) [User Justify]", - muser.userid, getuser(muser.userid) + MAGIC_KEY, checksum); - if ( -#ifndef USE_BSMTP - bbs_sendmail(NULL, title, muser.email) -#else - bsmtp(NULL, title, muser.email, MQ_JUSTIFY) -#endif - <0) - Link(BBSHOME "/etc/bademail", buf1); - else - Link(BBSHOME "/etc/replyemail", buf1); - } else - Link(BBSHOME "/etc/bademail", buf1); - sethomedir(title, muser.userid); - append_record_forward(title, &mhdr, sizeof(mhdr), muser.userid); -} -#endif /* EMAIL_JUSTIFY */ |