🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by hkongogo Tue, 21 Jun 2005 07:09
How to check the article has attachment
#71926
Author: hkongogo
Date: Tue, 21 Jun 2005 07:09
3 lines
1235 bytes
just check any begin/end pair? what if the message itself contain a
begin/end pair?
Re: How to check the article has attachment
#71934
Author: Bill Cole
Date: Wed, 22 Jun 2005 02:03
21 lines
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...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads