Article View: news.software.nntp
Article #71934Re: How to check the article has attachment
From: Bill Cole
Date: Wed, 22 Jun 2005 02:03
Date: Wed, 22 Jun 2005 02:03
21 lines
1753 bytes
1753 bytes
In article <1119337775.692553.166250@g14g2000cwa.googlegroups.com>, hkongogo@gmail.com wrote: > just check any begin/end pair? Doing that is the road to deserved ridicule for your software. That mistake has been made by sloppy software authors as large as Microsoft, but that is not the sort of comparison any software author should seek. > what if the message itself contain a > begin/end pair? Then a simplistic check will break. To get a reliable result, you need to check for *valid* uucode, well-formed MIME (easier), and well-formed yEnc (not terribly difficult). You MIGHT want to limit your detection to subsets of valid attachments, such as uuencoded attachments with the usual line length. -- Now where did I hide that website...
Technical Details
Message-ID:
<bill-40ED23.22033521062005@toaster.scconsult.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!news.scconsult.com!billReferences:
<1119337775.692553.166250@g14g2000cwa.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <bill-40ED23.22033521062005@toaster.scconsult.com> Subject: Re: How to check the article has attachment Date: Tue, 21 Jun 2005 22:03:35 -0400 From: Bill Cole <bill@scconsult.com> References: <1119337775.692553.166250@g14g2000cwa.googlegroups.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!news.scconsult.com!bill Newsgroups: news.software.nntp Organization: Solid Clues Lines: 21 NNTP-Posting-Host: toaster.scconsult.com X-Trace: toaster.scconsult.com 1119405815 7566 192.168.254.12 (22 Jun 2005 X-Complaints-To: news@scconsult.com NNTP-Posting-Date: Wed, 22 Jun 2005 02:03:35 +0000 (UTC) User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X)