🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #54249

Re: mail-copies-to Issue

#54249
From: greg
Date: Wed, 17 Nov 1999 00:00
58 lines
3507 bytes
In article <m3d7t93jmc.fsf@nova.revier.com>,
Jochem Huhmann <joh@gmx.net> wrote:
>nospam+_no_Zs__9911@hpb13799z.zboi.hpz.com.invalid (Sylvan Butler) wrote:

>> That is trivial, and continual reference to it is incomprehensible.
>> Worst case:
>> 
>> ===================
>> enum{NONE,NOBODY,NEVER,ALWAYS,POSTER};
>> 
>> keyword=NONE;
>> if (!strcmpi(mct,"nobody"))
>>     keyword=NOBODY;
>> else if (!strcmpi(mct,"never"))
>>     keyword=NEVER;
>> else if (!strcmpi(mct,"always"))
>>     keyword=ALWAYS;
>> else if (!strcmpi(mct,"poster"))
>>     keyword=POSTER;
>> 
>> if (keyword==NONE) {
>> // handle as if mail address
>> } else {
>> // handle keywords
>> }
>> ===================
>> 
>> Truly not worth a fuss.

> So I can request a Cc to a local user "joh" (that works), but not to a
> local user "never", say in an intranet, wich uses a news-based system
> for workflow.

Only because Sylvan's code above is buggy in that it didn't at the very
least check for "@" before assuming it is a mail address.  Never rely on
bugs.

Also, doesn't MCT allow for optional CFWS before and after any value (like
how [USEFOR] is riddled with it[1])?   Or do I assume the variable mct has
had all CFWS removed by this point in the code?

There's also no reason why the enum has to have five values since there's
nothing useful in making a distinction between "nobody" and "never" nor
"always" and "poster" at code level.

> OK, why I'm wasting my time here?

Beats me.

[1] To the point that it describes an ambiguous grammar.

-- 
 --     ---                          <greg@apple2.com>
  --   -- -- ------------------------------------------------------------------
   -- --   ---             <http://www.war-of-the-worlds.org/>
    ---

Technical Details
Message-ID: <greg-1711990741130001@oshar.war-of-the-worlds.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.mac.comm.mbox.zip!not-for-mail
References: <w3qn1sjfu9z.fsf@shell.tsoft.com> <greg-1211991435420001@xana.war-of-the-worlds.org> <w3qln8349t2.fsf@shell.tsoft.com> <greg-1211991836240001@xana.war-of-the-worlds.org> <m3so2aky4s.fsf@nova.revier.com> <greg-1411990249380001@oshar.war-of-the-worlds.org> <yl9040han0.fsf@windlord.stanford.edu> <m33du8o3ia.fsf@nova.revier.com> <ylu2mo9vbz.fsf@windlord.stanford.edu> <ylogcw9uq7.fsf@windlord.stanford.edu> <m37ljjmxdw.fsf@nova.revier.com> <yl66z32uyg.fsf@windlord.stanford.edu> <1e1c2oo.6b4b35jc3v9yN%planb@newsreaders.com> <m33du7kkfq.fsf@nova.revier.com> <1e1cyt2.1sh00epg0r4u8N%planb@newsreaders.com> <m3vh722rvl.fsf@nova.revier.com> <slrn833ud4.3vt.nospam+_no_Zs__9911@hpb13799z.zboi.hpz.com.invalid> <m3d7t93jmc.fsf@nova.revier.com>

Show Full Headers
Complete Article Headers
Message-ID: <greg-1711990741130001@oshar.war-of-the-worlds.org>
Subject: Re: mail-copies-to Issue
Date: Wed, 17 Nov 1999 00:00:00 +0000
From: greg@apple2.com
References: <w3qn1sjfu9z.fsf@shell.tsoft.com> <greg-1211991435420001@xana.war-of-the-worlds.org> <w3qln8349t2.fsf@shell.tsoft.com> <greg-1211991836240001@xana.war-of-the-worlds.org> <m3so2aky4s.fsf@nova.revier.com> <greg-1411990249380001@oshar.war-of-the-worlds.org> <yl9040han0.fsf@windlord.stanford.edu> <m33du8o3ia.fsf@nova.revier.com> <ylu2mo9vbz.fsf@windlord.stanford.edu> <ylogcw9uq7.fsf@windlord.stanford.edu> <m37ljjmxdw.fsf@nova.revier.com> <yl66z32uyg.fsf@windlord.stanford.edu> <1e1c2oo.6b4b35jc3v9yN%planb@newsreaders.com> <m33du7kkfq.fsf@nova.revier.com> <1e1cyt2.1sh00epg0r4u8N%planb@newsreaders.com> <m3vh722rvl.fsf@nova.revier.com> <slrn833ud4.3vt.nospam+_no_Zs__9911@hpb13799z.zboi.hpz.com.invalid> <m3d7t93jmc.fsf@nova.revier.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.mac.comm.mbox.zip!not-for-mail
X-Deja-AN: 549694107
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
X-Complaints-To: abuse@GigaNews.Com
X-Face: &@UA7$)=n9C7!qu%-5s},3tR@NEy+B>8PW"^,8?A>%."0{J2c1Yr]NKw';5/( J\r@/{UADjCdE~iRnOEOfbre(/1Y=$TS3Wt7B`a4sz,<EEumhL.DtryQ+!QoI8LE-v.s ;?26oj<q7"[b?Ouo
X-Trace: sv2-GsDMN0ZgWwKvYlppJVm3cBczrPWBiRmnPMJnPz+0MyXL5XFk7dp3KQHYZK+Z60JuBExEFMXoN6yeYCT!pMOPt5+BO9siFzLwhgmCm+zp4Q==
Organization: II Infinitum
NNTP-Posting-Date: Wed, 17 Nov 1999 07:40:53 CST
Newsgroups: news.software.readers,comp.sys.mac.comm