summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-16 15:47:16 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-16 15:47:16 +0800
commit0cd6cfb110f891c13f30ab88db5498d39b0fcd8b (patch)
tree3d062eeaee5910a5479257d30fc0e348dd9cc754
parent031c662b8f4894e01f97b0edaabaa06280c46492 (diff)
downloadpttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar.gz
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar.bz2
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar.lz
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar.xz
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.tar.zst
pttbbs-0cd6cfb110f891c13f30ab88db5498d39b0fcd8b.zip
add posting header:
Mime-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 8bit suggested by viking@ptt git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@661 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/innbbsd/bbslink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pttbbs/innbbsd/bbslink.c b/pttbbs/innbbsd/bbslink.c
index fa5716ac..bd1cf3fe 100644
--- a/pttbbs/innbbsd/bbslink.c
+++ b/pttbbs/innbbsd/bbslink.c
@@ -906,6 +906,9 @@ post_article(node, site, sover, textline)
fprintf(NNTPwfp, "Date: %s\r\n", sover->date);
fprintf(NNTPwfp, "Organization: %s\r\n", MYSITE);
fprintf(NNTPwfp, "Message-ID: <%s>\r\n", sover->msgid);
+ fprintf(NNTPwfp, "Mime-Version: 1.0\r\n");
+ fprintf(NNTPwfp, "Content-Type: text/plain; charset=\"big5\"\r\n");
+ fprintf(NNTPwfp, "Content-Transfer-Encoding: 8bit\r\n");
fprintf(NNTPwfp, "X-Filename: %s/%s\r\n", sover->board, sover->filename);
}
if (NNTPHOST && *NNTPHOST && USEIHAVE)