Article View: news.software.nntp
Article #52083Re: Canceling articles from within a newsreader
From: those who know me have no need o...
Date: Sun, 29 Apr 2001 07:19
Date: Sun, 29 Apr 2001 07:19
41 lines
2353 bytes
2353 bytes
<3ae33166$0$1917$b45e6eb0@senator-bedfellow.mit.edu> divulged:
>This is just ugly. I have two words for you, "regular" and
>"expressions".
as an aside: what the hell were you talking about? you look like
you've top posted within the body of the article. _that_ is ugly.
>> if (fgets(nl, sizeof nl, stdin) == NULL) {
all these should probably check for long lines.
>> if (strncmp(msgIDHeader, nl, sizeof msgIDHeader - 1) == 0) {
all these should be case insensitive. if you _know_ that the case will
always be as expected it's not a big deal.
># path to logfile
>my $logfile = "/dev/null";
why didn't you at least give the same functionality as was originally
present, i.e., syslog? it's trivial, even in perl.
> # is this line a message-id header?
> if(m/Message-ID:\ <(\W+?)>/x){
this pattern isn't sufficient. use /message-id:\s+<(.+)>/i instead,
with a leading ^\s* if it's supposed to be the only thing on the line.
also, why extended? you didn't use comments or multi-line, the only
thing it did was force you to quote the space.
> if(! $found_mail_message_id){
> $found_mail_message_id = "1"; # we have now
talk about unclear or ugly programming. mixing strings and boolean
expressions, and content flagging rather than structure recognition.
--
okay, have a sig then
Technical Details
Message-ID:
<teng41e4bd75ce@news.supernews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!news.supernews.com!not-a-real-addressReferences:
<ILAD6.44$8n2.28999@dfiatx1-snr1.gtei.net> <200104191703.MAA01793@www.xganon.com> <tdv6gcjos0g0f8@news.supernews.com> <200104200332.WAA31099@www.xganon.com> <3ae33166$0$1917$b45e6eb0@senator-bedfellow.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <teng41e4bd75ce@news.supernews.com> Subject: Re: Canceling articles from within a newsreader Date: Sun, 29 Apr 2001 07:19:29 -0000 From: not-a-real-address@usa.net (those who know me have no need of my name) References: <ILAD6.44$8n2.28999@dfiatx1-snr1.gtei.net> <200104191703.MAA01793@www.xganon.com> <tdv6gcjos0g0f8@news.supernews.com> <200104200332.WAA31099@www.xganon.com> <3ae33166$0$1917$b45e6eb0@senator-bedfellow.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!news.supernews.com!not-a-real-address Newsgroups: alt.hackers.malicious,news.software.nntp Organization: earthfriends User-Agent: slrn/0.9.6.3 (Linux) X-Complaints-To: newsabuse@supernews.com Lines: 40