🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #222425

Remove outgoing headers 40tude dialog freeware nntp newsreader

#222425
From: Tom
Date: Sat, 28 Jun 2008 20:53
112 lines
5319 bytes
I pieced together from the record the following usenet tutorial which might
help others who care about their user agent privacy when posting with the
freeware NNTP newsreader 40tude Dialog ............

Step 0:
Install 40tude Dialog nntp usenet newsreader client on Windows
http://40tude.com/dialog/

Step 1:
Copy the Object Pascal script below to your Windows clipboard:
http://www.40tude.com/dialog/wiki/index.php/RemoveHeaders 

Step 2: 
Paste that script into the scripting OnBeforeSendingMessage window:
Settings-> Scripting-> Scripting -> Event scripts -> OnBeforeSendingMessage

Step 3:
Compile the script, kill & restart the freeware 40tude nntp newsreader:
Script -> Compile, File -> Exit, c:\freewware\nntp\dialog\dialog.exe


APPENDIX:
Here is the Object Pascal script by Thomas Barghahn Th.Barghahn@t-online.de

program OnBeforeSendingMessage;
// Date: 2004/11/16
    const
//  ----------------------------------------------------
//  Configuration settings
//  ----------------------------------------------------
    // Set the header(s) you want to remove here, e.g., 
    // Remove_Headers = 'X-Scoring: ,X-Hamster-Info: ';
    Remove_Headers='User-Agent:';

    // Remove header(s) from emails and/or postings
    // Please set only to 'true' or 'false'
    RemoveFromEmails = true;
    RemoveFromNews   = true;
   
//  ----------------------------------------------------
//  End of configuration settings
//  ---------------------------------------------------- 
// --------------------------------------------------------------- //
// ----  No user maintainable parts below this line -------------- //
// --------------------------------------------------------------- //
procedure RemoveHeaders ( Message : TStringlist; 
                          IsEmail : boolean 
);
var i                : integer;
    k                : integer;
    s                : string;
    CommaPos         : integer;
    DelHeader        : TStringlist;
    RemoveH          : String;
begin
   RemoveH := Remove_Headers;
   i := 0;
   if ((IsEmail=true)  and (RemoveFromEmails=true)) or
      ((IsEmail=false) and (RemoveFromNews=true)) then begin
      If ( RemoveH <> '' ) then begin
      try 
         DelHeader := TStringlist.Create;
         if ansipos ( ',', RemoveH) = 0 then begin
            DelHeader.Add ( LowerCase ( TrimLeft( RemoveH )));
         end // if
         else begin
            CommaPos := 0;   
            for k := 1 to length ( RemoveH ) do begin
               If RemoveH[k] = ',' then begin
                  DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - ( CommaPos + 1 )))));
                  CommaPos := k;
               end; // if
               if k = length ( RemoveH ) then
                  DelHeader.Add ( LowerCase ( TrimLeft (copy ( RemoveH,
CommaPos + 1, k - CommaPos ))));                   
            end; // for  
         end; // else  
         s:=Message.text;
         while (Message.Strings[i]<>'') do begin
            k := 0;
            while k <= ( DelHeader.Count - 1 ) do begin 
               if pos( DelHeader[k], LowerCase ( Message.Strings[i] )) = 1
then begin
                  delete ( s, pos(DelHeader[k], LowerCase (s) ), length (
Message.Strings[i] ) + 2 );
                  i := i - 1;
                  k := DelHeader.Count - 1;
                  message.text := s;
               end; // if 
               k := k + 1;
            end; // while   
            i := i + 1;
         end; //while
         message.text:=s;
      finally
      DelHeader.Free;
      end; // try - finally 
      end; // if  
   end; // if
end; // RemoveHeaders
function OnBeforeSendingMessage(var Message     : TStringlist; 
                                    Servername  : string; 
                                    IsEmail     : boolean
):boolean;
begin
  RemoveHeaders(Message,IsEmail);
  result:=true;
end;
// ----------------------------------------------------------------------
begin
end. 
Technical Details
Message-ID: <pxx9k.29230$ZE5.9768@nlpi061.nbdc.sbc.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi061.nbdc.sbc.com.POSTED!689056ff!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <pxx9k.29230$ZE5.9768@nlpi061.nbdc.sbc.com>
Subject: Remove outgoing headers 40tude dialog freeware nntp newsreader
Date: Sat, 28 Jun 2008 13:53:54 -0700
From: Tom <twilson3@hotmail.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi061.nbdc.sbc.com.POSTED!689056ff!not-for-mail
Newsgroups: alt.comp.freeware,news.software.readers,news.software.nntp
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 112
NNTP-Posting-Host: 69.110.35.116
X-Complaints-To: abuse@prodigy.net
X-Trace: nlpi061.nbdc.sbc.com 1214686421 ST000 69.110.35.116 (Sat,
NNTP-Posting-Date: Sat, 28 Jun 2008 16:53:41 EDT
Organization: at&t http://my.att.net/
X-UserInfo1: Q[R_PJONXJT[SQD[GZOD]_\@VR]^@B@MCPWZKB]MPXHJUZ]CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN