🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Russell Schulz Tue, 23 Sep 1997 00:00
rnr's Mail-Copies-To: handling code
#36226
Author: 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

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