🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36226

rnr's Mail-Copies-To: handling code

#36226
From: Russell Schulz
Date: Tue, 23 Sep 1997 00:00
43 lines
2167 bytes
I hope the routine names I use are sufficiently verbose to those
who already know what I'm trying to do.

in the end, the variable `mailcopiesto' ends up either as an empty
string, or as a `CC: ' header added to the posted article.  further
code handles the case of `CC: poster'.

note that I handle poster/sender/always and never/nobody the same.

``
      mailcopiesto := getfromaddr(getheaderline(artfn,'mail-copies-to:'));

{ `CC: poster' is intercepted by the code that deals with CC: in posts }

{
  `Mail-Copies-To: never' isn't relevant here, but would be if there
  was an option in rnr to automatically CC: posts, which I don't think
  is useful for anywhere but the most problematic Usenet feeds.
}

      if (lower(mailcopiesto)='poster') or
       (lower(mailcopiesto)='sender') or
       (lower(mailcopiesto)='always') then
        mailcopiesto := 'CC: poster'
      else if (lower(mailcopiesto)='never') or
       (lower(mailcopiesto)='nobody') then
        mailcopiesto := ''
      else if isreasonableaddress(mailcopiesto,noallowlocal) then
        mailcopiesto := 'CC: '+mailcopiesto
      else
        mailcopiesto := '';

      if mailcopiesto<>'' then
        if onekeydef(
         'a mailed copy has been requested; mail a copy? {y}/{n}',
         'yn','y')='n' then
          mailcopiesto := '';
''
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c

Technical Details
Message-ID: <19970923.155151.1Y0.rnr.w164w@locutus.ofB.ORG>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <19970923.155151.1Y0.rnr.w164w@locutus.ofB.ORG>
Subject: rnr's Mail-Copies-To: handling code
Date: Tue, 23 Sep 1997 00:00:00 +0000
From: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 274952824
X-Mail-Policy: you may reply to this message. you may NOT add me to a list.
X-Spam-Complaint: why does agis.net continue to let Cyberpromo spam me?
Organization: Private System, London SW19, UK
Reply-To: Russell Schulz <Russell_Schulz@locutus.ofB.ORG>
Newsgroups: news.software.readers