<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
#################################################################Modules
use strict;
use warnings;
use threads;
use threads::shared;
use Cwd;
use Fcntl;
use Net::NNTP;
use Date::Parse;
use Date::Format;
use String::CRC32;
use Convert::BulkDecoder;
use MLDBM qw (DB_File Storable);
use Tk::ResizeButton;
use Tk::ProgressBar;
use Tk::ItemStyle;
use Tk::CornerBox;
use Tk::ROText;
use Tk::HList;
use Tk::Tree;
use Tk::Pod;
use Tk;
############################################################Declarations
our $VERSION = 3.10;
my  $DEBUG   = 0; #1 turns on debugging, &gt; 1 turns on verbose debugging
my ($mw, %shash, %threads,);
########################################################Optional Modules
if ($^O eq 'MSWin32') {
  eval    { require Win32::Console; Win32::Console::Free() };
  if ($@) { warn 'Win32::Console is not installed' . "\n"; }
}
####################################################################Main
local $| = 1;
init();                                #Start GUI, logging, and threads
splash();                              #Display the splash screen
news_gui();                            #Build GUI, destroy splash screen
Tk::MainLoop();                        #Process interactions
####################################################################Exit
foreach my $k (sort {$a &lt;=&gt; $b} (keys %threads)) {
  warn 'Destroying Thread [' . $k . "]\n";
  $shash{$k}{'die'} = 1;
  sleep (1);
}
warn "Exiting..\n";
close STDERR || warn "Unable to close STDERR\n$!";
exit;
#############################################################Subroutines
sub init #--------------------------------------------------------------
{
  #start gui
  {
    my $cbox;
    $mw = MainWindow-&gt;new(
      -title    =&gt; 'NewsSurfer',
      -relief   =&gt; 'groove',
      -colormap =&gt; 'new',
      -bd       =&gt; 2,
    );
    $mw-&gt;gridPropagate(0);
    $mw-&gt;withdraw;
    $cbox = $mw-&gt;CornerBox();
    $cbox-&gt;place(
      '-anchor' =&gt; 'se',
      '-width'  =&gt; 20,
      '-height' =&gt; 20,
      '-relx'   =&gt; 1,
      '-rely'   =&gt; 1,
      '-x'      =&gt; -3,
      '-y'      =&gt; -3,
    );
  }
  #start logging
  {
    my $log = 'NewsSurfer.log';
    #start logging
    if (my $fBytes = -s $log) {
      #rename log to backup log
      if (! rename ($log, $log . '.old')) {
        writeLog('e', "Can't rename: " . $log . "]\n[$!]");
      }
    }
    if (! open (STDERR, '&gt;&gt;', $log)) {
      writeLog('f', "Can't create: " . $log . "]\n[$!]");
    }
  }
  #create a blank killfile.txt if one doesn't exist
  if (! -e 'killfile.txt') {
    open ('FH', '&gt;', 'killfile.txt')
      || writeLog('f', "Unable to create killfile.txt\n$!");
    close FH
      || writeLog('e', "Unable to close killfile.txt\n$!");
  }
  
  #launch threads
  writeLog('i', 'Launching thread');
  foreach my $l qw (
    rss xover article decode post list die return progress optionCSV
  ) {
    share ($shash{1}{$l});
    $shash{1}{$l} = 0;
  }
  #share (%sHoA); #&lt;-for implementing threaded xover in scan()
  #$sxover{HoA}{0} = [0,0];
  $threads{1} = threads-&gt;new(\&amp;worker, 1);
  writeLog('i', 'Thread 1 is active');
  
  #initialize settings
  {
    my %OPT;
    dbmopen (%OPT, 'settings', 0640)
      || writeLog('f', "Can't create settings\n$!");
    if (! $OPT{Mail})  { $OPT{Mail}  = 'NewsSurfer@domain.invalid'; }
    if (! $OPT{DDir})  { $OPT{DDir}  = '.';                         }
    if (! (-e $OPT{DDir}) &amp;&amp; ! (-d $OPT{DDir})) { $OPT{DDir} = '.'; }
    dbmclose %OPT || writeLog('f', "Can't close settings\n$!");
  }
  return (1);
}
sub splash #------------------------------------------------------------
{
  my ($image, $splash, $canvas, $windowx, $windowy,);
  $windowx = $mw-&gt;screenwidth;
  $windowy = $mw-&gt;screenheight;
  my $x = ($windowx - 500) / 2;
  my $y = ($windowy - 288) / 2;
  my $geometry = '500x288+' . $x . '+' . $y;
  {
    my $imagedata = load_image(1);
    $image = $mw-&gt;Photo(
      -format =&gt; 'gif',
      -data   =&gt; $imagedata
    );
  }
  $splash = $mw-&gt;Toplevel(-takefocus =&gt; 1,);
  $splash-&gt;overrideredirect(1);
  $splash-&gt;geometry($geometry);
  $splash-&gt;resizable(0, 0);
  $canvas = $splash-&gt;Canvas()-&gt;pack(
    -fill   =&gt; 'both',
    -expand =&gt; 1,
  );
  $canvas-&gt;createImage(0,0,
    -image  =&gt; $image,
    -anchor =&gt; 'nw',
  );
  $splash-&gt;update;
  
  $mw-&gt;after(9000, sub {
    $splash-&gt;destroy;
    $mw-&gt;GeometryRequest($windowx,$windowy);
    $mw-&gt;Post(-5,-5);
    $mw-&gt;update;
  });
  return (1);
}
sub writeLog #----------------------------------------------------------
{
  my $msgType = lc ($_[0]) || return (0);
  my $msgIn   = $_[1]      || return (0);
  my ($msgOut, $time,);
  
  #Prepare time
  {
    #(sec, min, hour, mday, mon, year, wday, yday, isdst)
    my @ary = localtime (time);
    $ary[4]++;
    foreach my $i (0..3) {
      if ($ary[$i] &lt; 10) { $ary[$i] = '0' . $ary[$i]; }
    }
    $time = $ary[4] . '/' . $ary[3] . ' ' .
            $ary[2] . ':' . $ary[1] . ':' . $ary[0];
  }
  
  #Verbose mode
  if ($DEBUG &gt; 1) {
    my ($c1, $c2, $c3,);
    $c1 = (caller (1))[3] || 'main';
    $c2 = (caller (2))[3] || 'main';
    $c3 = (caller (0))[2];
    warn $time . " VRBS [$c1 line $c3 (called by $c2)]:\n";
  }
  
  #Prepare output
  chomp $msgIn;
  if    ($msgType eq 'i') { $msgOut = 'INFO ' . $msgIn; }
  elsif ($msgType eq 'w') { $msgOut = 'WARN ' . $msgIn; }
  elsif ($msgType eq 'e') { $msgOut = 'ERRO ' . $msgIn; }
  elsif ($msgType eq 'f') { $msgOut = 'FATL ' . $msgIn; }
  elsif ($msgType eq 'd') {
    if ($DEBUG &gt; 0) { $msgOut = 'DBUG ' . $msgIn; }
    else            { return (1);                 }
  }
  else {
    $msgOut = 'Invalid msgType: [' . $msgType . "] in writeLog\n";
    return (0);
  }
  
  #Output to log, close log
  warn $time . ' ' . $msgOut . "\n";
  if ($msgType eq 'f') { $mw-&gt;destroy(); }
  return (1);
}
sub news_gui #----------------------------------------------------------
{
  #Widget Initialization
  our $sort_cnt = 3;
  our $msglimitOption;
  my $windowx = $mw-&gt;screenwidth;
  my $windowy = $mw-&gt;screenheight;
  my $sys_bg  = $mw-&gt;cget(-background);
  my $sys_fg  = $mw-&gt;cget(-foreground);
  $mw-&gt;gridRowconfigure(2,    -weight  =&gt; 1,);
  $mw-&gt;gridRowconfigure(4,    -minsize =&gt; 8,);
  $mw-&gt;gridColumnconfigure(1, -weight  =&gt; 1,);
  $mw-&gt;setPalette(
    background       =&gt; '#a1a1a1',
    activebackground =&gt; '#a1a1a1',
    activeforeground =&gt; '#000fff',
  );
  
  #Set resolution based defaults
  our ($sFont, $lFont, $tFont,);
  {
    my ($sfVal, $mfVal, $lfVal,);
    my $baseFont = '{Ariel}';
    if    ($windowx &gt;= 1600) { $sfVal = 8; $mfVal = 10; $lfVal = 12; }
    if    ($windowx &gt;= 1400) { $sfVal = 8; $mfVal = 10; $lfVal = 12; }
    elsif ($windowx &gt;= 801)  { $sfVal = 8; $mfVal = 10; $lfVal = 10; }
    else                     { $sfVal = 8; $mfVal = 8;  $lfVal = 10; }
    $sFont = $baseFont . ' ' . $sfVal;
    $lFont = $baseFont . ' ' . $mfVal;
    $tFont = $baseFont . ' ' . $lfVal;
  }
  
  #Create frames and panedwindow
  my ($pw1, $f1_main, $f2_main, $f3_main,);
  {
    $f1_main = $mw-&gt;Frame(
      -relief =&gt; 'flat',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $mw,    -column =&gt; 1, -padx =&gt; 8,
      -sticky =&gt; 'news', -row    =&gt; 1, -pady =&gt; 0,
    );
    $f1_main-&gt;gridColumnconfigure(2,  -minsize =&gt; 8,);
    $f1_main-&gt;gridColumnconfigure(7,  -minsize =&gt; 8,);
    $f1_main-&gt;gridColumnconfigure(11, -minsize =&gt; 8,);
    $f1_main-&gt;gridColumnconfigure(14, -weight  =&gt; 1,);
    $f2_main = $mw-&gt;Frame(
      -relief =&gt; 'groove',
      -bd     =&gt; 4,
    )-&gt;grid(
      -in     =&gt; $mw,    -column =&gt; 1, -padx =&gt; 8,
      -sticky =&gt; 'news', -row    =&gt; 2, -pady =&gt; 0,
    );
    $f2_main-&gt;gridRowconfigure(1,     -weight  =&gt; 1,);
    $f2_main-&gt;gridColumnconfigure(1,  -weight  =&gt; 1,);
    $f3_main = $mw-&gt;Frame(
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $mw,    -column =&gt; 1, -padx =&gt; 8,
      -sticky =&gt; 'news', -row    =&gt; 3, -pady =&gt; 0,
    );
    $f3_main-&gt;gridRowconfigure(1,     -weight  =&gt; 1,);
    $f3_main-&gt;gridColumnconfigure(1,  -weight  =&gt; 1,);
    $pw1 = $f2_main-&gt;Panedwindow(
      -orient =&gt; 'vertical',
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $f2_main, -row    =&gt; 1,
      -sticky =&gt; 'news',   -column =&gt; 1,
    );
  }
  
  #frame 1 (toolbar frame)
  my $logo;
  our @buttons;
  {
    my $font;
    if ($tFont =~ m/^\{Ariel\}\s+(\d+).*$/) {
      $font = '{Courier New} ' . ($1 + 8);
    }
    if (! $font) { $font = '{Courier New} 16'; }
    $logo = $mw-&gt;Label(
      -text =&gt; 'NewsSurfer',
      -font =&gt; $font,
    )-&gt;grid(
      -in     =&gt; $f1_main, -column =&gt; 14,
      -sticky =&gt; 'news',   -row    =&gt; 1,
    );
    
    my $c = 1;
    foreach my $l qw(
      scan grab read_message post browse group opt show_log help quit
    ) {
      my $sub = \&amp;{ $l; };
      my $w = $f1_main-&gt;Button(
        -activebackground   =&gt; '#a1a1a1',
        -bd                 =&gt; 0,
        -highlightthickness =&gt; 0,
        -command            =&gt; sub { &amp;$sub(); },
      )-&gt;grid(
        -in     =&gt; $f1_main, -column =&gt; $c,
        -sticky =&gt; 'news',   -row    =&gt; 1,
      );
      push (@buttons, $w);
      if ($c =~ m/^(?:1|6|10)$/) { $c++; }
      $c++;
    }
  }
  
  #frame 2 (main display frame)
  #upper HList
  our ($lb1_grp, $lb1_k1, $lb1_k2,);
  {
    my $c = 0;
    my $height = 4;
    if ($windowx &gt;= 1600) { $height = 9; }
    $lb1_grp = $pw1-&gt;Scrolled(
      'HList',
      -highlightthickness =&gt; 1,
      -columns            =&gt; 3,
      -header             =&gt; 1,
      -height             =&gt; $height,
      -indicator          =&gt; 1, #for spacing
      -indicatorcmd       =&gt; sub {},
      -highlightcolor     =&gt; '#000000',
      -background         =&gt; '#ffffff',
      -foreground         =&gt; '#000000',
      -selectbackground   =&gt; '#000000',
      -selectforeground   =&gt; '#fff000',
      -selectmode         =&gt; 'single',
      -scrollbars         =&gt; 'ose',
    );
    #upper HList header columns
    foreach my $label ('Group', 'Last Scanned', '',) {
      my $w = $lb1_grp-&gt;ResizeButton(
        -widget           =&gt; \$lb1_grp,
        -column           =&gt; $c,
        -text             =&gt; $label,
        -font             =&gt; $sFont,
        -activebackground =&gt; '#a1a1a1',
        -activeforeground =&gt; '#000000',
        -relief           =&gt; 'flat',
        -anchor           =&gt; 'w',
        -borderwidth      =&gt; 0,
        -takefocus        =&gt; 0,
        -command          =&gt; sub {},
      );
      $lb1_grp-&gt;columnWidth($c, -char =&gt; 1);
      $lb1_grp-&gt;header(
        'create', $c,
        -itemtype         =&gt; 'window',
        -headerbackground =&gt; '#a1a1a1',
        -widget           =&gt; $w,
        -borderwidth      =&gt; 1,
      );
      $c++;
    }
    #upper HList item styles
    $lb1_k1 = $lb1_grp-&gt;ItemStyle('text',
      -anchor           =&gt; 'w',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -font             =&gt; $lFont,
    );
    $lb1_k2 = $lb1_grp-&gt;ItemStyle('text',
      -anchor           =&gt; 'e',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -font             =&gt; $sFont,
    );
    #resize upper HList according to screen resolution
    {
      my ($cntr, @colWidth,);
      if    ($windowx &gt;= 1600) { @colWidth = (237, 25, ''); }
      elsif ($windowx &gt;= 1400) { @colWidth = (180, 25, ''); }
      elsif ($windowx &gt;= 1200) { @colWidth = (160, 25, ''); }
      elsif ($windowx &gt;= 801)  { @colWidth = (127, 25, ''); }
      else                     { @colWidth = (95, 25, '');  }
      $cntr = 0;
      foreach my $width (@colWidth) {
        $lb1_grp-&gt;columnWidth ($cntr, -char =&gt; $width);
        $cntr++;
      }
    }
  }
  
  #lower HList
  our ($lb2_msg, $lb2_k1, $lb2_k2, $lb2_b1, $lb2_b2,);
  {
    $lb2_msg = $pw1-&gt;Scrolled(
      'Tree',
      -highlightthickness =&gt; 1,
      -columns            =&gt; 6,
      -header             =&gt; 1,
      -separator          =&gt; '.', #&lt;-important setting (entry paths)
      -scrollbars         =&gt; 'ose',
      -highlightcolor     =&gt; '#000000',
      -background         =&gt; '#ffffff',
      -foreground         =&gt; '#000000',
      -selectbackground   =&gt; '#000000',
      -selectforeground   =&gt; '#fff000',
      -selectmode         =&gt; 'extended',
    );
    $lb2_msg-&gt;autosetmode();
    #lower HList column headers
    my $c = 0;
    foreach my $label (
      'Headers', 'From', 'Parts', 'Bytes', 'Date', ' ',
    ) {
      my $w = $lb2_msg-&gt;ResizeButton(
        -widget           =&gt; \$lb2_msg,
        -column           =&gt; $c,
        -text             =&gt; $label,
        -font             =&gt; $sFont,
        -activebackground =&gt; '#a1a1a1',
        -activeforeground =&gt; '#000fff',
        -relief           =&gt; 'flat',
        -anchor           =&gt; 'w',
        -borderwidth      =&gt; 0,
        -takefocus        =&gt; 0,
        -command          =&gt; sub {
          lb2_msg_sort($label)
      },);
      $lb2_msg-&gt;columnWidth($c, -char =&gt; '1');
      $lb2_msg-&gt;header(
        'create', $c,
        -itemtype         =&gt; 'window',
        -headerbackground =&gt; '#a1a1a1',
        -widget           =&gt; $w,
        -borderwidth      =&gt; 1,
      );
      $c++;
    }
    #lower HList item styles
    $lb2_b1 = $lb2_msg-&gt;ItemStyle('text',
      -anchor           =&gt; 'e',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#0000ff',
      -font             =&gt; $sFont,
    );
    $lb2_b2 = $lb2_msg-&gt;ItemStyle('text',
      -anchor           =&gt; 'w',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#0000ff',
      -font             =&gt; $lFont,
    );
    $lb2_k1 = $lb2_msg-&gt;ItemStyle('text',
      -anchor           =&gt; 'e',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -font             =&gt; $sFont,
    );
    $lb2_k2 = $lb2_msg-&gt;ItemStyle('text',
      -anchor           =&gt; 'w',
      -selectforeground =&gt; '#fff000',
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -font             =&gt; $lFont,
    );
    #resize lower HList according to screen resolution
    if    ($windowx &gt;= 1600) {$lb2_msg-&gt;columnWidth (0, -char =&gt; 210);}
    elsif ($windowx &gt;= 1400) {$lb2_msg-&gt;columnWidth (0, -char =&gt; 152);}
    elsif ($windowx &gt;= 1200) {$lb2_msg-&gt;columnWidth (0, -char =&gt; 132);}
    elsif ($windowx &gt;= 801)  {$lb2_msg-&gt;columnWidth (0, -char =&gt; 100);}
    else                     {$lb2_msg-&gt;columnWidth (0, -char =&gt; 68); }
    $lb2_msg-&gt;columnWidth (1, -char =&gt; 10);
    $lb2_msg-&gt;columnWidth (2, -char =&gt; 7);
    $lb2_msg-&gt;columnWidth (3, -char =&gt; 10);
    $lb2_msg-&gt;columnWidth (4, -char =&gt; 25);
    $lb2_msg-&gt;columnWidth (5, -char =&gt; '');
  }
  
  #frame 3 ('Statusbar frame')
  our ($sb_lab,);
  our $sblabel = ' ';
  our $pb      = 0;
  {
    my $font;
    if ($lFont =~ m/^\{Ariel\}\s+(\d+).*$/) {
      $font = '{Courier New} ' . $1;
    }
    if (! $font) { $font = '{Courier New} 10'; }
    $sb_lab = $mw-&gt;Label(
      -text   =&gt; '  ' . $sblabel,
      -font   =&gt; $font,
      -relief =&gt; 'sunken',
      -anchor =&gt; 'w',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $f3_main, -column =&gt; 1,
      -sticky =&gt; 'ew',     -row    =&gt; 1,
    );
    $mw-&gt;ProgressBar(
      -variable    =&gt; \$pb,
      -bd          =&gt; 2,
      -length      =&gt; 270,
      -from        =&gt; 0,
      -to          =&gt; 100,
      -blocks      =&gt; 50,
      -colors      =&gt; [0, '#00ff00',],
      #-showvalue   =&gt; '1',
      #-valuecolor  =&gt; 'black',
      #-relief      =&gt; 'sunken',
      #-font        =&gt; '9x15',
      #-valueformat =&gt; '&lt;%.2f %%&gt;',
    )-&gt;grid(
      -in     =&gt; $f3_main, -column =&gt; 2,
      -sticky =&gt; 'news',   -row    =&gt; 1,
    );
  }
  
  #log window
  our ($tl1, $txt_log,);
  {
    $tl1 = $mw-&gt;Toplevel(
      -title  =&gt; 'View Log',
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    );
    $tl1-&gt;gridRowconfigure(1,    -weight =&gt; 1,);
    $tl1-&gt;gridColumnconfigure(4, -weight =&gt; 1,);
    $tl1-&gt;transient($mw);
    $tl1-&gt;withdraw;
    
    my $f = $tl1-&gt;Frame(
      -relief =&gt; 'sunken',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $tl1, -columnspan =&gt; 4,
      -column =&gt; 1,    -rowspan    =&gt; 1,
      -row    =&gt; 1,    -sticky     =&gt; 'news'
    );
    $f-&gt;gridRowconfigure(1,    -weight =&gt; 1,);
    $f-&gt;gridColumnconfigure(1, -weight =&gt; 1,);
    
    $txt_log = $f-&gt;Scrolled(
      'ROText',
      -scrollbars       =&gt; 'se',
      -foreground       =&gt; '#ffffff',
      -background       =&gt; '#000000',
      -selectforeground =&gt; '#fff000',
      -selectbackground =&gt; '#000000',
      -wrap             =&gt; 'none',
      -relief           =&gt; 'flat',
      -bd               =&gt; 0,
      -width            =&gt; 80,
      -height           =&gt; 30,
    )-&gt;grid(
      -in     =&gt; $f, -columnspan =&gt; 1,
      -column =&gt; 1,  -rowspan    =&gt; 1,
      -row    =&gt; 1,  -sticky     =&gt; 'news'
    );
    foreach my $csv (
      'Red,#ff0000',   'Blue,#80c0ff', 'Green,#00ff00',
      'White,#ffffff', 'Yellow,#fff000'
    ) {
      my ($color,$value) = split (/,/, $csv);
      $txt_log-&gt;tagConfigure($color, -foreground =&gt; $value);
    }
    $txt_log-&gt;tagConfigure('Debug',
      -background =&gt; '#fff000',
      -foreground =&gt; '#000000',
    );
    $txt_log-&gt;tagConfigure('Verbose',
      -background =&gt; '#ffffaa',
      -foreground =&gt; '#000000',
    );
    {
      my $menu = $txt_log-&gt;menu;
      $menu-&gt;configure(
        -bg               =&gt; $sys_bg,
        -fg               =&gt; $sys_fg,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
      );
      $menu-&gt;delete('File');
      $menu-&gt;delete('Search');
      $menu-&gt;delete('View');
    }
    my $c = 1;
    foreach my $label ('C l o s e', 'R e f r e s h', 'S a v e') {
      my ($w, $s, $sublabel, $sub,);
      $s = 'w';
      $sublabel = $label;
      $sublabel =~ s/\s//g;
      $sub = \&amp;{ 'log_' . lc ($sublabel); };
      if ($c &gt; 1)  { $s = 'e'; }
      if ($c == 3) { $c++;     }
      $w = $tl1-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub {
          &amp;$sub();
        },
      )-&gt;grid(
        -in     =&gt; $tl1, -column =&gt; $c,
        -sticky =&gt; $s,   -row    =&gt; 4,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c++;
    }
  }
  
  #post message window
  our ($tl2, $txt_post, @post_entries,);
  {
    $tl2 = $mw-&gt;Toplevel(
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    );
    $tl2-&gt;title('Post Message');
    #$tl2-&gt;resizable(0, 0);
    $tl2-&gt;transient($mw);
    $tl2-&gt;withdraw;
    $tl2-&gt;gridColumnconfigure(4, -weight =&gt; 1,);
    $tl2-&gt;gridRowconfigure(3,    -weight  =&gt; 1,);
    
    my $c = 1;
    foreach my $label ('From:  ', 'Subject:  ',) {
      $tl2-&gt;Label(
        -text =&gt; $label,
      )-&gt;grid(
        -in     =&gt; $tl2, -column =&gt; 1,
        -sticky =&gt; 'e',  -row    =&gt; $c,
      );
      my $w = $tl2-&gt;Entry(
        -width        =&gt; 60,
        -background   =&gt; '#ffffff',
        -foreground   =&gt; '#000000',
      )-&gt;grid(
        -in     =&gt; $tl2, -columnspan =&gt; 2,
        -column =&gt; 2,    -rowspan    =&gt; 1,
        -row    =&gt; $c,   -sticky     =&gt; 'w'
      );
      $c++;
      push (@post_entries, $w);
    }
    
    my $f = $tl2-&gt;Frame(
      -relief =&gt; 'sunken',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $tl2, -columnspan =&gt; 4,
      -column =&gt; 1,    -rowspan    =&gt; 1,
      -row    =&gt; 3,    -sticky     =&gt; 'news'
    );
    $f-&gt;gridRowconfigure(1,    -weight =&gt; 1,);
    $f-&gt;gridColumnconfigure(1, -weight =&gt; 1,);
    $txt_post = $f-&gt;Scrolled(
      'Text',
      -scrollbars       =&gt; 'se',
      -font             =&gt; $tFont,
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -selectforeground =&gt; '#fff000',
      -selectbackground =&gt; '#000000',
      -relief           =&gt; 'flat',
      -wrap             =&gt; 'none',
      -height           =&gt; 30,
      -width            =&gt; 80,
    )-&gt;grid(
      -in     =&gt; $f,     -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 1,
    );
    {
      my $post_menu = $txt_post-&gt;menu;
      $post_menu-&gt;delete('File');
      $post_menu-&gt;delete('Search');
      $post_menu-&gt;delete('View');
    }
    $c = 1;
    foreach my $label (
      'C a n c e l    ', 'P o s t    ', 'A t t a c h  a n d  P o s t',
    ) {
      my $sublabel = $label;
      $sublabel =~ s/\s//g;
      my $sub = \&amp;{ 'post_' . lc ($sublabel); };
      my $w = $tl2-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub { &amp;$sub(); },
      )-&gt;grid(
        -in     =&gt; $tl2, -column =&gt; $c,
        -sticky =&gt; 'w',  -row    =&gt; 4,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c++;
    }
  }
  
  #groups subscription window
  our ($tl3, $lb_grp, $grpSubSearch,);
  {
    $tl3 = $mw-&gt;Toplevel(
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    );
    $tl3-&gt;title('Groups');
    $tl3-&gt;geometry("+90+35");
    $tl3-&gt;resizable(0, 0);
    $tl3-&gt;transient($mw);
    $tl3-&gt;withdraw;
    $tl3-&gt;gridColumnconfigure(5, -weight =&gt; 1,);
    
    my $f = $tl3-&gt;Frame(
      -relief =&gt; 'sunken',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $tl3, -columnspan =&gt; 5,
      -column =&gt; 1,    -rowspan    =&gt; 1,
      -row    =&gt; 2,    -sticky     =&gt; 'news'
    );
    $lb_grp = $f-&gt;Scrolled(
      'HList',
      -scrollbars         =&gt; 'ose',
      -background         =&gt; '#000000',
      -foreground         =&gt; '#ffffff',
      -selectbackground   =&gt; '#fff000',
      -selectforeground   =&gt; '#000000',
      -selectmode         =&gt; 'extended',
      -relief             =&gt; 'flat',
      -highlightthickness =&gt; 0,
      -takefocus          =&gt; 0,
      -header             =&gt; 1,
      -columns            =&gt; 2,
      -indicator          =&gt; 1,
      -height             =&gt; 30,
      -width              =&gt; 96,
      -indicatorcmd       =&gt; sub {}, #do nothing
    )-&gt;grid(
      -in     =&gt; $f,     -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 1,
    );
    $lb_grp -&gt;columnWidth (0, -char =&gt; 70);
    $lb_grp -&gt;columnWidth (1, -char =&gt; 20);
    $lb_grp -&gt;headerCreate(0, -text =&gt; 'Newsgroups',);
    $lb_grp -&gt;headerCreate(1, -text =&gt; 'Message Count',);
    
    $f = $tl3-&gt;Frame(
      -relief =&gt; 'flat',
    )-&gt;grid(
        -in     =&gt; $tl3, -column =&gt; 1, -columnspan =&gt; 5,
        -sticky =&gt; 'ew', -row    =&gt; 1, -rowspan    =&gt; 1,
    );
    $f-&gt;gridColumnconfigure(3, -weight =&gt; 1,);
    my $e = $tl3-&gt;Entry(
      -background   =&gt; '#ffffff',
      -foreground   =&gt; '#000000',
      -textvariable =&gt; \$grpSubSearch,
      -width        =&gt; 40,
    )-&gt;grid(
      -in     =&gt; $f,   -column =&gt; 1,
      -sticky =&gt; 'ew', -row    =&gt; 1,
    );
    $e-&gt;bind('&lt;Return&gt;' =&gt; sub {
      search($lb_grp, 'GROUP', 0);
    });
    
    my $c = 2;
    foreach my $label (
      'S e a r c h', 'S h o w   A l l   N e w s g r o u p s'
    ) {
      my ($w, $showAll,);
      if ($c &gt; 2) {
        $showAll = 1;
      }
      else {
        $showAll = 0;
      }
      $w = $f-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub {
          search($lb_grp, 'GROUP', $showAll);
        }
      )-&gt;grid(
        -in     =&gt; $f,   -column =&gt; $c,
        -sticky =&gt; 'ew', -row    =&gt; 1,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c += 2;
    }
    
    $c = 1;
    foreach my $label (
      'C l o s e    ', 'U p d a t e    ', 'S u b s c r i b e    ',
      'U n S u b s c r i b e',
    ) {
      my $sublabel = $label;
      $sublabel =~ s/\s//g;
      my $sub = \&amp;{ 'grp_' . lc ($sublabel); };
      my $w = $tl3-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub {
          &amp;$sub();
        },
      )-&gt;grid(
        -in     =&gt; $tl3, -column =&gt; $c,
        -sticky =&gt; 'n',  -row    =&gt; 3,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c++;
    }
  }
  
  #read message window
  our ($tl4, $txt_read,);
  {
    $tl4 = $mw-&gt;Toplevel(
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    );
    $tl4-&gt;gridRowconfigure(1,    -weight  =&gt; 1,);
    $tl4-&gt;gridColumnconfigure(1, -weight  =&gt; 1,);
    $tl4-&gt;title('Read Message');
    $tl4-&gt;transient($mw);
    $tl4-&gt;withdraw;
    my $f = $tl4-&gt;Frame(
      -relief =&gt; 'sunken',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $tl4, -columnspan =&gt; 2,
      -column =&gt; 1,    -rowspan    =&gt; 1,
      -row    =&gt; 1,    -sticky     =&gt; 'news'
    );
    $f-&gt;gridRowconfigure(1,    -weight  =&gt; 1,);
    $f-&gt;gridColumnconfigure(1, -weight  =&gt; 1,);
    $txt_read = $f-&gt;Scrolled(
      'ROText',
      -scrollbars       =&gt; 'se',
      -font             =&gt; $tFont,
      -background       =&gt; '#ffffff',
      -foreground       =&gt; '#000000',
      -selectforeground =&gt; '#fff000',
      -selectbackground =&gt; '#000000',
      -wrap             =&gt; 'none',
      -relief           =&gt; 'flat',
      -width            =&gt; 80,
      -height           =&gt; 30,
    )-&gt;grid(
      -in     =&gt; $f, -columnspan =&gt; 1,
      -column =&gt; 1,  -rowspan    =&gt; 1,
      -row    =&gt; 1,  -sticky     =&gt; 'news'
    );
    {
      my $read_menu = $txt_read-&gt;menu;
      $read_menu-&gt;configure(
        -bg               =&gt; $sys_bg,
        -fg               =&gt; $sys_fg,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
      );
      $read_menu-&gt;delete('File');
      $read_menu-&gt;delete('Search');
      $read_menu-&gt;delete('View');
    }
    my $c = 1;
    foreach my $label ('C l o s e', 'R e p l y',) {
      my $s = 'w';
      if ($c &gt; 1) { $s = 'e' };
      my $sublabel = $label;
      $sublabel =~ s/\s+//g;
      my $sub = \&amp;{ 'read_' . lc ($sublabel); };
      my $w = $tl4-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub {
          &amp;$sub();
        },
      )-&gt;grid(
        -in     =&gt; $tl4, -column =&gt; $c,
        -sticky =&gt; $s,   -row    =&gt; 2,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c++;
    }
  }
  
  #options window
  our ($tl5, $quoteSig, $killFile, @OPT_widgets,);
  {
    $tl5 = $mw-&gt;Toplevel(
      -relief    =&gt; 'groove',
      -bd        =&gt; 2,
      -takefocus =&gt; 1,
    );
    $tl5-&gt;title('Options');
    $tl5-&gt;geometry("+105+70");
    $tl5-&gt;resizable(0, 0);
    $tl5-&gt;transient($mw);
    $tl5-&gt;withdraw;
    
    my $f = $tl5-&gt;Frame(
      -bd     =&gt; 3,
      -relief =&gt; 'sunken',
      -bg     =&gt; '#000000',
    )-&gt;grid(
      -in     =&gt; $tl5, -column =&gt; 1,
      -sticky =&gt; 'e',  -row    =&gt; 1,
    );
    $f-&gt;gridRowconfigure(5,    -minsize =&gt; 8,);
    $f-&gt;gridRowconfigure(10,   -minsize =&gt; 96, -weight =&gt; 1,);
    $f-&gt;gridColumnconfigure(3, -minsize =&gt; 96,);
    
    #options window / labels
    {
      my $c = 1;
      foreach my $label (
        'NNTP Server:  ', 'Username:  ', 'Password:  ', 'Email:  ',
      ) {
        $f-&gt;Label(
          -text       =&gt; $label,
          -background =&gt; '#000000',
          -foreground =&gt; '#ffffff',
          -anchor     =&gt; 'e',
          -width      =&gt; 15,
        )-&gt;grid(
          -in     =&gt; $f,   -column =&gt; 1,
          -sticky =&gt; 'e',  -row    =&gt; $c,
        );
        $c++;
      }
      $c = 6;
      foreach my $label ('Download Dir:  ', 'Signature File:  ',) {
        if ($label =~ m/\b(\w+)\b/) {
          my $sub = \&amp;{ 'opt_' . lc ($1); };
          my $w = $f-&gt;Button(
            -text             =&gt; $label,
            -anchor           =&gt; 'e',
            -relief           =&gt; 'flat',
            -bg               =&gt; '#000000',
            -fg               =&gt; '#ffffff',
            -activeforeground =&gt; '#fff000',
            -activebackground =&gt; '#000000',
            -width            =&gt; 15,
            -command          =&gt; sub { &amp;$sub(); },
          )-&gt;grid(
            -in     =&gt; $f,  -column =&gt; 1,
            -sticky =&gt; 'e', -row    =&gt; $c,
          );
          FlashButton($w, '#181830', '#ffffff');
          $c++;
        }
      }
    }
    #options window / entry boxes
    {
      foreach my $row (1, 2, 3, 4, 6, 7,) {
        my $w = $f-&gt;Entry(
          -width        =&gt; 32,
          -background   =&gt; '#ffffff',
          -foreground   =&gt; '#000000',
        )-&gt;grid(
          -in     =&gt; $f,  -column =&gt; 2,
          -sticky =&gt; 'w', -row    =&gt; $row,
        );
        if ($row &gt;= 3) {
          if    ($row == 3) { $w-&gt;configure(-show =&gt; '*',); }
          elsif ($row &gt;= 6) { $w-&gt;configure(-width =&gt; 64,); }
        }
        push (@OPT_widgets, $w);
      }
    }
    #options window / checkbuttons
    {
      my $w = $f-&gt;Checkbutton(
        -foreground       =&gt; '#ffffff',
        -background       =&gt; '#000000',
        -activeforeground =&gt; '#ffffff',
        -activebackground =&gt; '#000000',
        -selectcolor      =&gt; '#000000',
        -variable         =&gt; \$killFile,
      )-&gt;grid(
        -in     =&gt; $f,   -column =&gt; 1,
        -sticky =&gt; 'e',  -row    =&gt; 8,
      );
      push (@OPT_widgets, $w);
      $w = $f-&gt;Label(
        -text =&gt; 'Enable kill file post filtering.',
        -background =&gt; '#000000',
        -foreground =&gt; '#ffffff',
      )-&gt;grid(
        -in     =&gt; $f,   -column =&gt; 2,
        -sticky =&gt; 'w',  -row    =&gt; 8,
      );
      $w = $f-&gt;Checkbutton(
        -foreground       =&gt; '#ffffff',
        -background       =&gt; '#000000',
        -activeforeground =&gt; '#ffffff',
        -activebackground =&gt; '#000000',
        -selectcolor      =&gt; '#000000',
        -variable         =&gt; \$quoteSig,
      )-&gt;grid(
        -in     =&gt; $f,   -column =&gt; 1,
        -sticky =&gt; 'e',  -row    =&gt; 9,
      );
      push (@OPT_widgets, $w);
      $w = $f-&gt;Label(
        -text =&gt; 'Quote signatures in reply message.',
        -background =&gt; '#000000',
        -foreground =&gt; '#ffffff',
      )-&gt;grid(
        -in     =&gt; $f,   -column =&gt; 2,
        -sticky =&gt; 'w',  -row    =&gt; 9,
      );
    }
    #options window / main buttons
    {
      my $w = $tl5-&gt;Button(
        -text             =&gt; 'C l o s e  &amp;  S a v e',
        -relief           =&gt; 'flat',
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -command          =&gt; sub { opt_close(); }
      )-&gt;grid(
        -in     =&gt; $tl5, -column =&gt; 1,
        -sticky =&gt; 'w',  -row    =&gt; 2,
      );
      FlashButton($w, '#181830', $sys_fg);
    }
  }
  
  #group right click menu
  our ($tl7,);
  {
    $tl7 = $mw-&gt;Toplevel(
      -title       =&gt; 'group_rc_menu',
      -relief      =&gt; 'raised',
      -borderwidth =&gt; 2.5,
    );
    $tl7-&gt;overrideredirect(1);
    $tl7-&gt;resizable(0, 0);
    $tl7-&gt;transient($mw);
    $tl7-&gt;withdraw;
    
    my $f = $tl7-&gt;Frame(
      -relief    =&gt; 'sunken',
      -bd        =&gt; 1.5,
      -takefocus =&gt; 1,
    )-&gt;grid(
      -in     =&gt; $tl7,   -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 1,
    );
    $f-&gt;gridRowconfigure(3, -minsize =&gt; 2,);
    $f-&gt;gridRowconfigure(5, -minsize =&gt; 2,);
    $f-&gt;bind('&lt;Leave&gt;' =&gt; sub {
      $tl7-&gt;withdraw;
    });
    $f-&gt;Frame(
      -relief =&gt; 'groove',
      -bd     =&gt; 8,
    )-&gt;grid(
      -in     =&gt; $f,     -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 3,
    );
    $f-&gt;Frame(
      -relief =&gt; 'groove',
      -bd     =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $f,     -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 5,
    );
    $f-&gt;Button(
      -text             =&gt; 'Scan',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        scan();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 1,
    );
    $f-&gt;Button(
      -text             =&gt; 'Load',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        message_load();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 2,
    );
    $f-&gt;Button(
      -text             =&gt; 'Search',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt;  sub {
        search_popup();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 4,
    );
    $f-&gt;Button(
      -text             =&gt; 'Clear',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        message_clear();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 6,
    );
    $f-&gt;Button(
      -text             =&gt; 'Reset',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        $lb1_grp-&gt;focus;
        rset_cmd();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 7,
    );
    $f-&gt;Button(
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -text             =&gt; 'Remove',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
      $lb1_grp-&gt;focus;
      grp_unsubscribe('X');
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 8,
    );
  }
  
  #message right click menu
  our ($tl8,);
  {
    $tl8 = $mw-&gt;Toplevel(
      -title       =&gt; 'message_rc_menu',
      -relief      =&gt; 'raised',
      -borderwidth =&gt; 2.5,
    );
    $tl8-&gt;overrideredirect(1);
    $tl8-&gt;resizable(0, 0);
    $tl8-&gt;transient($mw);
    $tl8-&gt;withdraw;
    
    my $f = $tl8-&gt;Frame(
      -relief    =&gt; 'sunken',
      -bd        =&gt; 1.5,
      -takefocus =&gt; 1,
    )-&gt;grid(
      -in     =&gt; $tl8,   -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 1,
    );
    $f-&gt;bind('&lt;Leave&gt;' =&gt; sub {
      $tl8-&gt;withdraw;
    });
    $f-&gt;Button(
      -text             =&gt; 'Read',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        read_message();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 1,
    );
    $f-&gt;Button(
      -text             =&gt; 'Grab',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        grab();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 2,
    );
    $f-&gt;Button(
      -text             =&gt; 'Grab&amp;Open',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        grab(1);
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 3,
    );
    $f-&gt;Button(
      -text             =&gt; 'SelectAll',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        lb2_msg_select_all();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 4,
    );
    $f-&gt;Button(
      -text             =&gt; 'Delete',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -anchor           =&gt; 'w',
      -width            =&gt; 10,
      -command          =&gt; sub {
        $lb2_msg-&gt;focus;
        message_delete();
    })-&gt;grid(
      -in     =&gt; $f,  -column =&gt; 1,
      -sticky =&gt; 'n', -row    =&gt; 5,
    );
  }
  
  #message download window
  our ($tl9, $l1_msgs, $e1_msgs, $dlnew,);
  {
    $tl9 = $mw-&gt;Toplevel(
      -relief    =&gt; 'groove',
      -bd        =&gt; 2,
    );
    $tl9-&gt;title('Download Messages');
    $tl9-&gt;geometry("+220+160");
    $tl9-&gt;resizable(0, 0);
    $tl9-&gt;transient($mw);
    $tl9-&gt;withdraw;
    $tl9-&gt;gridColumnconfigure(4, -weight =&gt; 1,);
    
    my $f = $tl9-&gt;Frame(
      -bg     =&gt; '#000000',
      -relief =&gt; 'sunken',
      -bd     =&gt; 3,
    )-&gt;grid(
      -in     =&gt; $tl9, -columnspan =&gt; 4,
      -column =&gt; 1,    -rowspan    =&gt; 1,
      -row    =&gt; 1,    -sticky     =&gt; 'news',
    );
    $f-&gt;gridRowconfigure(4,    -minsize =&gt; 100,);
    $f-&gt;gridColumnconfigure(4, -weight  =&gt; 1,);
    $l1_msgs = $f-&gt;Label(
      -text   =&gt; '',
      -bg     =&gt; '#000000',
      -fg     =&gt; '#ffffff',
    )-&gt;grid(
      -in     =&gt; $f,  -columnspan =&gt; 3,
      -column =&gt; 1,   -rowspan    =&gt; 1,
      -row    =&gt; 1,   -sticky     =&gt; 'w',
    );
    $f-&gt;Label(
      -text =&gt; 'Enter the number of messages to be downloaded:  ',
      -bg   =&gt; '#000000',
      -fg   =&gt; '#ffffff',
    )-&gt;grid(
      -in     =&gt; $f, -padx   =&gt; 0, -columnspan =&gt; 2,
      -column =&gt; 1,  -pady   =&gt; 8,
      -row    =&gt; 2,  -sticky =&gt; 'w',
    );
    $f-&gt;Label(
      -text =&gt; 'Newest messages only (mark the rest read).',
      -bg   =&gt; '#000000',
      -fg   =&gt; '#ffffff',
    )-&gt;grid(
      -in     =&gt; $f, -padx   =&gt; 0,
      -column =&gt; 2,  -pady   =&gt; 0,
      -row    =&gt; 4,  -sticky =&gt; 'nw',
    );
    $e1_msgs = $f-&gt;Entry(
      -bg               =&gt; '#ffffff',
      -fg               =&gt; '#000000',
      -selectbackground =&gt; '#000000',
      -selectforeground =&gt; '#fff000',
      -width            =&gt; 6,
    )-&gt;grid(
      -in     =&gt; $f,  -padx   =&gt; 0,
      -column =&gt; 3,   -pady   =&gt; 8,
      -row    =&gt; 2,   -sticky =&gt; 'w',
    );
    $f-&gt;Checkbutton(
      -variable         =&gt; \$dlnew,
      -activeforeground =&gt; '#000000',
      -activebackground =&gt; '#000000',
      -foreground       =&gt; '#000000',
      -background       =&gt; '#000000',
      -selectcolor      =&gt; '#ffffff',
    )-&gt;grid(
      -in     =&gt; $f, -padx   =&gt; 0,
      -column =&gt; 1,  -padx   =&gt; 0,
      -row    =&gt; 4,  -sticky =&gt; 'ne',
    );
    my $c = 1;
    foreach my $label ('O k', 'C a n c e l',) {
      my $sublabel = $label;
      $sublabel =~ s/\s//g;
      my $w = $tl9-&gt;Button(
        -text             =&gt; $label,
        -activeforeground =&gt; '#000fff',
        -activebackground =&gt; '#a1a1a1',
        -relief           =&gt; 'flat',
        -command          =&gt; sub {
          $msglimitOption = uc ($sublabel);
        },
      )-&gt;grid(
        -in     =&gt; $tl9, -column =&gt; $c,
        -sticky =&gt; 'e',  -row    =&gt; 2,
      );
      FlashButton($w, '#181830', $sys_fg);
      $c += 3;
    }
  }
  
  #Search group popup
  our ($tla,);
  {
    $tla = $mw-&gt;Toplevel();
    $tla-&gt;title('Search Group');
    $tla-&gt;geometry("+250+200");
    $tla-&gt;resizable(0, 0);
    $tla-&gt;transient($mw);
    $tla-&gt;withdraw;
    $tla-&gt;gridColumnconfigure(1, -weight  =&gt; 1,);
    
    my $f = $tla-&gt;Frame(
      -bd     =&gt; 3,
      -relief =&gt; 'sunken',
      -bg     =&gt; '#000000',
    )-&gt;grid(
      -in     =&gt; $tla,   -column =&gt; 1, -columnspan =&gt; 2,
      -sticky =&gt; 'news', -row    =&gt; 1, -rowspan    =&gt; 1,
    );
    $tla-&gt;Label(
      -text   =&gt; 'To clear previous search results, ' .
                 'perform an empty search.' . "\n\n\n\n",
      -bg     =&gt; '#000000',
      -fg     =&gt; '#ffffff',
    )-&gt;grid(
      -in     =&gt; $f,     -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 1,
    );
    my $e = $tla-&gt;Entry(
      #$grpSubSearch is shared with the groups window
      -textvariable =&gt; \$grpSubSearch,
      -bg           =&gt; '#ffffff',
      -fg           =&gt; '#000000',
      -relief       =&gt; 'sunken',
      -bd           =&gt; 2,
    )-&gt;grid(
      -in     =&gt; $tla,   -column =&gt; 1,
      -sticky =&gt; 'news', -row    =&gt; 2,
    );
    $e-&gt;bind('&lt;Return&gt;' =&gt; sub {
      search($lb2_msg);
    });
    my $w = $tla-&gt;Button(
      -text             =&gt; 'S e a r c h',
      -activeforeground =&gt; '#000fff',
      -activebackground =&gt; '#a1a1a1',
      -relief           =&gt; 'flat',
      -command =&gt; sub {
        search($lb2_msg);
      }
    )-&gt;grid(
      -in     =&gt; $tla, -column =&gt; 2,
      -sticky =&gt; '',   -row    =&gt; 2,
    );
    FlashButton($w, '#181830', $sys_fg);
  }
  $pw1-&gt;add($lb1_grp, $lb2_msg,);
  
  #Bindings
  $tl2-&gt;protocol(WM_DELETE_WINDOW =&gt; \&amp;post_cancel);
  $tl3-&gt;protocol(WM_DELETE_WINDOW =&gt; \&amp;grp_close);
  $tl4-&gt;protocol(WM_DELETE_WINDOW =&gt; \&amp;read_close);
  $tl9-&gt;protocol(WM_DELETE_WINDOW =&gt; \&amp;dlmsgs_cancel);
  $tl1-&gt;protocol(WM_DELETE_WINDOW =&gt; sub {$tl1-&gt;withdraw;});
  $tl5-&gt;protocol(WM_DELETE_WINDOW =&gt; sub {$tl5-&gt;withdraw;});
  $tla-&gt;protocol(WM_DELETE_WINDOW =&gt; sub {$tla-&gt;withdraw;});
  $logo-&gt;bind('&lt;ButtonPress-1&gt;'   =&gt; sub {
    $logo-&gt;configure(-text=&gt;'');$mw-&gt;update;$mw-&gt;after(200);
    $logo-&gt;configure(-text=&gt;'N');$mw-&gt;update;$mw-&gt;after(180);
    $logo-&gt;configure(-text=&gt;'Ne');$mw-&gt;update;$mw-&gt;after(130);
    $logo-&gt;configure(-text=&gt;'New');$mw-&gt;update;$mw-&gt;after(120);
    $logo-&gt;configure(-text=&gt;'News');$mw-&gt;update;$mw-&gt;after(160);
    $logo-&gt;configure(-text=&gt;'NewsS');$mw-&gt;update;$mw-&gt;after(130);
    $logo-&gt;configure(-text=&gt;'NewsSu');$mw-&gt;update;$mw-&gt;after(100);
    $logo-&gt;configure(-text=&gt;'NewsSur');$mw-&gt;update;$mw-&gt;after(120);
    $logo-&gt;configure(-text=&gt;'NewsSurf');$mw-&gt;update;$mw-&gt;after(130);
    $logo-&gt;configure(-text=&gt;'NewsSurfe');$mw-&gt;update;$mw-&gt;after(110);
    $logo-&gt;configure(-text=&gt;'NewsSurfer');$mw-&gt;update;$mw-&gt;after(100);
  });
  $lb1_grp -&gt;bind('&lt;ButtonPress-3&gt;' =&gt; sub {
    raise_rc_menu($tl7);
  });
  $lb1_grp-&gt;bind('&lt;Delete&gt;'=&gt; sub {
    b4_grp_unsubscribe('X');
  });
  $lb2_msg -&gt;bind('&lt;ButtonPress-3&gt;' =&gt; sub {
    my @sel = $lb2_msg-&gt;selectionGet;
    if ($sel[1]) {
      raise_rc_menu($tl8);
    }
    else {
      $lb2_msg-&gt;Tk::HList::ButtonRelease_1;
      raise_rc_menu($tl8, $lb2_msg);
    }
  });
  $lb2_msg -&gt;bind('&lt;Control-Return&gt;' =&gt; sub {
    b2_grab_cmd(1);
  });
  $lb2_msg-&gt;bind('&lt;Double-ButtonPress-1&gt;' =&gt; \&amp;read_message);
  $lb1_grp-&gt;bind('&lt;Double-ButtonPress-1&gt;' =&gt; \&amp;message_load);
  $lb1_grp-&gt;bind('&lt;Return&gt;'               =&gt; \&amp;scan);
  $lb1_grp-&gt;bind('&lt;Control-c&gt;'            =&gt; \&amp;message_clear);
  $lb1_grp-&gt;bind('&lt;Control-C&gt;'            =&gt; \&amp;message_clear);
  $lb1_grp-&gt;bind('&lt;Control-x&gt;'            =&gt; \&amp;rset_cmd);
  $lb1_grp-&gt;bind('&lt;Control-X&gt;'            =&gt; \&amp;rset_cmd);
  $lb2_msg-&gt;bind('&lt;Delete&gt;'               =&gt; \&amp;message_delete);
  $lb2_msg-&gt;bind('&lt;Return&gt;'               =&gt; \&amp;read_message);
  $lb2_msg-&gt;bind('&lt;Control-a&gt;'            =&gt; \&amp;lb2_msg_select_all);
  $lb2_msg-&gt;bind('&lt;Control-A&gt;'            =&gt; \&amp;lb2_msg_select_all);
  $lb2_msg-&gt;bind('&lt;Shift-End&gt;'            =&gt; \&amp;lb2_msg_select_end);
  $lb2_msg-&gt;bind('&lt;Shift-Home&gt;'           =&gt; \&amp;lb2_msg_select_hom);
  $lb2_msg-&gt;bind('&lt;Control-d&gt;'            =&gt; \&amp;message_delete);
  $lb2_msg-&gt;bind('&lt;Control-D&gt;'            =&gt; \&amp;message_delete);
  {
    #bind images onto buttons
    my $c = 10;
    foreach my $b (@buttons) {
      MainButtons($b, $c);
      $c++
    }
  }
  
  #Defaults
  warn 'Started at:  (' . localtime(time) . ")\n";
  foreach my $p (glob 'part*.pt') {                                     #todo - recovery
    if (! unlink $p) {
      writeLog('e', "Can't delete part:  [" . $p . "]\n$!");
    }
  }
  $sblabel = 'Ready';
  $msglimitOption = 0;
  display_groups();
  $lb1_grp-&gt;focus();
  ready();
  
  #Callbacks
  sub nntpconnect #-----------------------------------------------------
  {
    #Called whenever a connection to the server needs to be established
    #This sub is also used by the worker thread
    my ($nntp, $serv, $user, $pass,);
    eval {
      my %OPT;
      dbmopen (%OPT, 'settings', 0640)
        || writeLog('f', "Can't create settings\n$!");
      $serv = $OPT{Serv};
      $user = $OPT{User};
      $pass = $OPT{Pass};
      dbmclose %OPT
        || writeLog('e', "Can't close settings\n$!");
    };
    if (! $@) {
      #db access ok, try to connect, will retry once if needed
      foreach my $c (1..2) {
        writeLog('i', 'Connection attempt: [' . $c . ' of 2]');
        eval { $nntp-&gt;quit };
        $nntp = Net::NNTP-&gt;new(
          $serv,
          Debug   =&gt; 1,
          Timeout =&gt; 5,
          Reader  =&gt; 1,
        );
        if (! $nntp) {
          if ($c &gt; 1) {
            #could not connect
            writeLog('e', "Can't connect to server: [" . $serv . "]");
            return (0);
          }
          else {
            #wait 1 second and then try one more time
            my $a = $c + 1;
            writeLog('w', "Couldn't connect to server: [" . $serv . "]");
            update_status('Retrying connection...');
            next;
          }
        }
        else {
          #connected
          last;
        }
      }
    }
    else {
      #error accessing db, not connected
      writeLog('e', "Can't connect to server, DB error: [$@]");
      return (0);
    }
    
    #Connection ok, authenticate user if credentials are defined
    if (defined $user) {
      my $ok;
      if (! defined $pass) {
        writeLog('w', "Null password supplied");
        $pass = "\n";
      }
      eval { $ok = $nntp-&gt;authinfo($user, $pass) };
      if (! $ok || $@) {
        #possible errors - timeout or access denied
        #authinfo will only return true or false so no easy way to tell
        #the reason a false return value was produced
        writeLog('w', 'Problem connecting, retrying authinfo');
        update_status('Retrying connection...');
        #retry connecting with authentication once more
        $nntp-&gt;quit;
        $nntp = Net::NNTP-&gt;new(
          $serv,
          Debug   =&gt; 1,
          Timeout =&gt; 5,
          Reader  =&gt; 1,
        );
        if ($nntp) {
          $ok = $nntp-&gt;authinfo($user, $pass);
          if (! $ok || $@) {
            writeLog('e', 'Unable to authenticate with server');
            writeLog('d',
              'Serv: ' . $serv . 'User: ' . $user . 'Pass: ' . $pass
            );
            return (0);
          }
        }
      }
    }
    else {
      writeLog('w', 'Logon ID not supplied, bypassing authentication');
    }
    #return a reference to the nntp object
    if (! $nntp) {
      writeLog('e', 'Unable to connect to server');
      return (0);
    }
    return (\$nntp);
  }
  sub scan #------------------------------------------------------------
  {
    #called from a button pressed in the main window or rc menu
    my (@sel,);
    
    #clear old newsgroup's display
    $lb2_msg-&gt;focus;
    $lb2_msg-&gt;delete('all');
    $mw-&gt;update;
    
    #determine which newsgroup to scan
    @sel = $lb1_grp-&gt;selectionGet;
    if (defined $sel[0]) {
      $mw-&gt;Busy(-recurse =&gt; 1);
      my ($group, $nntpRef,);
      $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text);
      
      #connect to nntp server
      update_status('Connecting to NNTP server...');
      update_status('4', 'PROGRESSBAR');
      $nntpRef = nntpconnect();
      
      if($nntpRef) {
        #determine article number range available on the server
        my ($dlmsg, $totmsgs, $rng, @nfo,);
        update_status('Scanning newsgroup...');
        update_status('4', 'PROGRESSBAR');
        
        @nfo = $$nntpRef-&gt;group($group);                                #&lt;-blocks
        if ($nfo[1]) {
          shift @nfo;
          pop   @nfo;
          $totmsgs = $nfo[1] - $nfo[0]; $totmsgs++;
          $dlmsg   = $nfo[1] - $nfo[0]; $dlmsg++;
          
          #load group db and determine which headers to download next.
          if (-e $group . '.grp') {
            update_status('Removing expired articles...');
            update_status('4', 'PROGRESSBAR');
            tie my %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
              || writeLog('f', 'Cant open MLDBM');
            
            #remove expired articles
            my $tmp = $file{HEADERDB};
            while (my $k = each %$tmp) {
              #k is a message number of a previously downloaded message
              #remove messages that are no longer on the server
              if ($k &lt; $nfo[0]) {
                delete $tmp-&gt;{$k};
              }
            }
            
            #determine the new article range
            my (@keys, $lastArticle,);
            update_status('4', 'PROGRESSBAR');
            @keys = sort {$b &lt;=&gt; $a} (keys %$tmp);
            $lastArticle = $keys[0] || 0;
            writeLog(
              'd',
              'Last msgID downloaded:  [' . $lastArticle . "]"
            );
            writeLog(
              'd',
              'First new msgID:        [' . $nfo[1] . "]"
            );
            $lastArticle++;
            
            #save to db
            $file{HEADERDB} = $tmp;
            undef $tmp;
            untie %file;
            
            #check for new messages
            if ($lastArticle &lt;= $nfo[1]) {
              #there are new messages in the newsgroup
              undef $rng;
              if ($lastArticle != 1) {
                shift @nfo;
                unshift (@nfo, $lastArticle);
              }
              $totmsgs = $nfo[1] - $nfo[0]; $totmsgs++;
              $dlmsg   = $nfo[1] - $nfo[0]; $dlmsg++;
              writeLog('i', '[' . $totmsgs . " new message(s)");
              
              #enforce maximum message download limit
              if ($totmsgs &gt; 4999) {
                my $r = msglimit($totmsgs);
                if ($r == 0) {
                  $$nntpRef-&gt;quit();
                  $dlmsg  = 0;
                }
                elsif ($dlnew == 1) {
                  $nfo[0] = $nfo[1] - $r;
                  $dlmsg  = $nfo[1] - $nfo[0];
                }
                else {
                  $nfo[1] = $nfo[0] + $r;
                  $dlmsg  = $nfo[1] - $nfo[0];
                }
              }
            }
            else {
              #there are no new messages on the newsgroup
              writeLog('i', "No new messages..\n");
              update_status('No new messages..');
              undef $dlmsg;
              #load old messages
              displayheaders('OLD');
            }
          }
          else {
            #Newly subscribed or reset group; create a new db.
            writeLog('i', 'Creating a new db for ' . $group);
            update_status('Initializing newsgroup...');
            update_status('4', 'PROGRESSBAR');
            if ($totmsgs &gt;= 5000) {
              #popup d/l messages
              my $mLim = msglimit($totmsgs);
              writeLog('i', "Message download limit:  [" . $mLim . "]");
              if    ($mLim == 0)  { $dlmsg = 0;                }
              elsif ($dlnew == 1) { $nfo[0] = $nfo[1] - $mLim; }
              else                { $nfo[1] = $nfo[0] + $mLim; }
              $dlmsg = $nfo[1] - $nfo[0];
            }
          }
          if ($dlmsg) {
            my ($href, %xover);
            $rng = \@nfo;
            #download this groups' xover information, then disconnect
            update_status(
              'Downloading ' . $dlmsg .
              ' of '         . $totmsgs . ' new headers'
            );
            update_status('16', 'PROGRESSBAR');
            
            #Due to a limitation of threads::shared
            #It is difficult but possible to not block here
            #Error: Invalid value for shared scalar
            $href = $$nntpRef-&gt;xover($rng);                             #&lt;-blocks
            if ($href) {
              %xover = %$href;
              writeLog('i', "Header download completed");
              #(%xover is a HoA) $_ is msgnum
              #$xover{$_}[0] #subject #$xover{$_}[4] #references
              #$xover{$_}[1] #from    #$xover{$_}[5] #bytes
              #$xover{$_}[2] #date    #$xover{$_}[6] #lines *parts*
              #$xover{$_}[3] #msg-id  #$xover{$_}[7] #xref:full *read*
              undef $href;
            }
            if (keys %xover) {
              #xover ok
              update_status('Preparing messages...');
              my (%file, $tmp,);
              my $subj_sav = ' ';
              my $cnt = 0;
              tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
                || writeLog('f', "Can't open MLDBM");
              $tmp = $file{MULTIPARTDB};
              
              while (my $k = each %xover) {
                #handle multipart messages
                if ($pb &gt;= 100) {
                  $pb = 0;
                }
                if ($cnt &gt; 500) {
                  for (1..1) { $pb++; $cnt = 0; $mw-&gt;update; }
                }
                else {
                  $cnt++;
                }
                if ($xover{$k}[0] =~ m/
                  (\p{Any}+) #the main subject $1
                  [\(\[\{]+? #followed by a ( or [ or {
                  (\d+)      #followed by a digit $2
                  [\/\-]+?   #followed by a foward slash or dash
                  (\d+)      #followed by a digit $3
                  [\)\]\}]+? #followed by a ) or ] or }
                  (\p{Any}*) #additional subject text $4
                  /gx
                ) {
                  #it is a multipart message
                  #$1 = sub, $2 = pt, $3 = tot, $4 = more sub
                  my $newsubj;
                  $newsubj = $1 . $4;
                  
                  #record multipart message ids
                  $tmp-&gt;{$newsubj}{$2} = $xover{$k}[3];
                  
                  #combine parts for display, update subject
                  if ($1 ne $subj_sav) {
                    $subj_sav     = $1;       #it is a new subject
                    $xover{$k}[6] = $3;       #parts total
                    $xover{$k}[0] = $newsubj; #edited subject
                  }
                  else {
                    #seen this subject already
                    delete $xover{$k};
                  }
                }
                else {
                  #not a multipart message
                  $xover{$k}[6] = 1;
                }
              }
              $file{MULTIPARTDB} = $tmp;
              undef $tmp;
              
              #remove multipart duplicates and log new message id's
              update_status('Combining parts...');
              update_status('16', 'PROGRESSBAR');
              my %seen;
              while (my $k = each %xover) {
                if ($xover{$k}) {
                  if ($xover{$k}[6] != 1) {
                    my $l;
                    $l = $xover{$k}[0] . $xover{$k}[1] . $xover{$k}[6];
                    #    subject         from            parts
                    if (defined $seen{$l}) {
                      delete $xover{$k};
                    }
                    $seen{$l} = 1;
                  }
                }
              }
              undef %seen;
              
              #count headers, format the time/date, remove old headers
              update_status('Formatting Time/Date...');
              update_status('16', 'PROGRESSBAR');
              my @mNums  = sort {$a &lt;=&gt; $b} (keys (%xover));
              my $keyTot = $#mNums;
              foreach my $mNum (@mNums) {
                my $now   = time;
                my $epoch = str2time ($xover{$mNum}[2]);
                my $age   = $now - $epoch;
                if ($age &lt; 2592000 || $mNum == $nfo [1]) {
                  chomp ($xover{$mNum}[2] = ctime ($epoch));
                }
                else {
                  if ($keyTot &gt; 1) {                                    #&lt;-bug when all msgs &gt; 30 days
                    delete $xover{$mNum};
                    $keyTot--;
                  }
                }
              }
              
              #save new headers to group header db
              my $newheadercount = 0;
              update_status('Saving Group...');
              update_status('16', 'PROGRESSBAR');
              $tmp = $file{HEADERDB};
              while (my $messagenumber = each %xover) {
                for my $c (0..7) {
                  $tmp-&gt;{$messagenumber}[$c] = $xover{$messagenumber}[$c];
                }
                $newheadercount++;
              }
              $file{HEADERDB} = $tmp;
              undef $tmp;
              untie %file;
              
              #display messages
              writeLog('i', "Displaying [$newheadercount] new messages\n");
              update_status('Displaying messages...');
              update_status('4', 'PROGRESSBAR');
              displayheaders('NEW', $newheadercount);
              
              #update last scanned time
              {
                dbmopen (my %SBSCRIBE, 'sbscribe', 0640)
                  || writeLog('f', "Can't create sbscribe\n$!");
                my $stime;
                chomp ($stime = ctime(time));
                $SBSCRIBE{$group} = $stime;
                dbmclose %SBSCRIBE;
              }
            }
            else {
              #xover error
              writeLog('e', "Trouble reading xover header information");
            }
          }
        }
        else {
          #unable to get group information from server
          writeLog('e', "Unable to get group information from server");
        }
        $$nntpRef-&gt;quit();
      }
      else {
        #could not connect to server
        writeLog('e', "Couldn't connect to the server");
        update_status('Could not connect to the server');
        $mw-&gt;after(1000);
      }
    }
    else {
      #no group selected to scan
      return (0);
    }
    
    #cleanup gui
    display_groups();
    $lb2_msg-&gt;focus;
    if ($sel[0]) { $lb1_grp-&gt;selectionSet($sel[0]) };
    ready();
    return (1);
  }
  sub msglimit #--------------------------------------------------------
  {
    #called from sub scan
    my $totmsgs = $_[0] || 'NULL';
    $dlnew = 0;
    
    my $ret;
    $ret = dlmsgs('PROMPT', $totmsgs);
    $ret = dlmsgs($ret, $totmsgs);
    #return number of messages to be downloaded to the scan subroutine
    return ($ret);
  }
  sub dlmsgs #----------------------------------------------------------
  {
    #called from sub msglimit
    my $opt     = uc ($_[0])    || 'NULL';
    my $totmsgs = $_[1]         || 'NULL';
    my $maxdl   = $e1_msgs-&gt;get || '5000';
    $e1_msgs-&gt;delete(0, 'end');
    $e1_msgs-&gt;insert(0, $maxdl);
    
    if ($opt eq 'PROMPT') {
      $l1_msgs-&gt;configure(
        -text =&gt; "There are more than " . $totmsgs . ' ' .
                 'unread messages in this group.'
      );
      $tl9-&gt;Popup;
      $e1_msgs-&gt;focus;
      $mw-&gt;update;
      $mw-&gt;Unbusy;
      $mw-&gt;waitVariable(\$msglimitOption); #wait for user click
      $mw-&gt;Busy(-recurse =&gt; 1);
      return ($msglimitOption);
    }
    elsif ($opt eq 'OK') {
      if ($maxdl =~ m/^\D/)     { $maxdl = 0;        }
      elsif ($maxdl &gt; $totmsgs) { $maxdl = $totmsgs; }
    }
    elsif ($opt eq 'ALL') {
      $maxdl = $totmsgs;
    }
    elsif ($opt eq 'CANCEL') {
      $maxdl = 0;
    }
    else {
      writeLog('e', 'Invalid dlmsgs option:  [' . $opt . "]");
      $maxdl = 0;
    }
    $tl9-&gt;withdraw;
    return ($maxdl);
  }
  sub displayheaders #--------------------------------------------------
  {
    #called from: scan, lower hlist header buttons, and message_load
    #when opt1 is set to 'NEW' then opt2 should specify # of new msgs
    #if sort is requested, column to sort and the sort type are needed
    my $opt1 = uc ($_[0]) || 'OLD';
    my $opt2 = $_[1]      || 0;
    my $sort = $_[2]      || 0;
    my (%file, $group, $msgHeaderDB, %tmpMsgDB, @msgNums,);
    my (@parentsWithNewReplies,);
    my $c = 0;
    
    writeLog('i', "Preparing headers");
    #Determine which newsgroup is selected
    {
      my @sel = $lb1_grp-&gt;selectionGet;
      if (defined $sel[0]) {
        $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text);
      }
      else {
        writeLog('w', "No valid group selected for header display");
        return (0);
      }
    }
    #Load group db
    for (1..10) { $pb++; $mw-&gt;update; }
    if (! tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640) {
      writeLog('f', "Can't open group DB");
    }
    $msgHeaderDB = $file{HEADERDB};
    
    #Re-format DB to alot for discussion thread grouping                #&lt;-Test
    #Leave message db intact, create tmpMsgDB
    #$mldbm{HEADERDB}{MESSAGENUMBER}[0,1,3,4] #subj,from,msgId,refs
    #$mldbm{HEADERDB}{MESSAGENUMBER}[msgitem1, etc..]
    #tmpMsg{firstRef}{parentMsgNum}{refMsgNums}[msgitem1, etc..]
    update_status ('Processing group DB...');
    dbmopen (my %OPT, 'settings', 0640)
      || writeLog('f', "Can't read settings\n$!");
    foreach my $msgNum (sort { $b &lt;=&gt; $a } (keys (%$msgHeaderDB))) {
      my ($firstRef, $parentMsgNum,);
      writeLog('d', 'MsgNum: [' . $msgNum . "]");
      
      #Refresh display
      {
        if ($pb &gt;= 100) { $pb = 0;                                    }
        if ($c  &gt; 100)  { for (1..10) { $pb++; $mw-&gt;update; $c = 0; } }
        else            { $c++;                                       }
      }
      #Killfile filtering
      {
        if ($OPT{Kfile}) {
          #determine if this message should be filtered
          my $name = $msgHeaderDB-&gt;{$msgNum}-&gt;[1];
          if (killfile($group, $name) == 1) {
            #do not load this header
            writeLog('w',
              'Poster: ' . $name . " was filtered by killfile"
            );
            next;
          }
        }
      }
      #Check if this message has references to other messages
      {
        my $refs = $msgHeaderDB-&gt;{$msgNum}-&gt;[4];
        if ($refs &amp;&amp; $refs =~ m/^(&lt;[^&gt;]+&gt;).*$/) {
          #message references other messages
          #categorize this message under the first message reference
          $firstRef = $1;
          #check group db, determine parent message message number
          my $found;
          foreach my $pMsgNum (sort {$b &lt;=&gt; $a} (keys %$msgHeaderDB)) {
            my ($mId,);
            $mId = $msgHeaderDB-&gt;{$pMsgNum}-&gt;[3] || $pMsgNum;
            $mId = quotemeta $mId;
            if ($firstRef =~ m/$mId/) {
              #found a msgID that matches the firstRef
              $parentMsgNum = $pMsgNum;
              $found++;
              last;
            }
          }
          if (! $found) {
            #did not find a msgID that matches firstRef
            #use this msgNum for parentMsgNum
            writeLog('d', "Unable to determine the parent MsgNum");
            $parentMsgNum = $msgNum;
          }
        }
        else {                                                          #&lt;-test
          #no refs found, use msgNum for firstRef and parentMsgNum
          $parentMsgNum = $msgNum;
          $firstRef     = $msgNum;
        }
      }
      #Save to tmpDB
      writeLog('d',
        'Saving msgNum: ['        . $msgNum . "] to tmpDB\n" .
        '       firstRef:      [' . $firstRef . "]\n" .
        '       parentMsgNum:  [' . $parentMsgNum . "]"
      );
      push (
        @{$tmpMsgDB{$parentMsgNum}{$msgNum}}, $msgHeaderDB-&gt;{$msgNum}
      );
      #Process next message number
    }
    dbmclose %OPT || writeLog('e', "Can't close OPT db\n$!");
    
    #Sort
    if ($sort) {                                                        #&lt;-test
      #Sort requested
      my ($col,$opt) = split (/,/, $sort);
      writeLog('d', 'Sorting options: [' . $sort . "]");
      if ($sort_cnt % 2) {
        if ($opt == 1) {
          @msgNums = sort {
            lc ($tmpMsgDB{$b}{$b}[$col]) cmp
            lc ($tmpMsgDB{$a}{$a}[$col])
          } keys %tmpMsgDB;
        }
        elsif ($opt == 2) {
          @msgNums = sort {
            $tmpMsgDB{$b}{$b}[$col] &lt;=&gt;
            $tmpMsgDB{$b}{$b}[$col]
          } keys %tmpMsgDB;
        }
        else {
          @msgNums = sort {
            str2time ($tmpMsgDB{$b}{$b}[$col]) &lt;=&gt;
            str2time ($tmpMsgDB{$b}{$b}[$col])
          } keys %tmpMsgDB;
        }
      }
      else {
        if ($opt == 1) {
          @msgNums = sort {
            lc ($tmpMsgDB{$b}{$b}[$col]) cmp
            lc ($tmpMsgDB{$b}{$b}[$col])
          } keys %tmpMsgDB;
        }
        elsif ($opt == 2) {
          @msgNums = sort {
            $tmpMsgDB{$b}{$b}[$col] &lt;=&gt;
            $tmpMsgDB{$b}{$b}[$col]
          } keys %tmpMsgDB;
        }
        else {
          @msgNums = sort {
            str2time ($tmpMsgDB{$b}{$b}[$col]) &lt;=&gt;
            str2time ($tmpMsgDB{$b}{$b}[$col])
          } keys %tmpMsgDB;
        }
      }
    }
    else {
      @msgNums = sort {$b &lt;=&gt; $a} (keys %tmpMsgDB);
    }
    
    #Insert and display the headers in the lower HList
    $mw-&gt;update;
    my $counter = 0;
    update_status ('Displaying headers...');
    writeLog('i', "Displaying headers");
    foreach my $pMsgNum (@msgNums) {
      my @cMsgNums = keys (%{$tmpMsgDB{$pMsgNum}});
      my $refCount = keys (%{$tmpMsgDB{$pMsgNum}});
      my $cMsgNum = $cMsgNums[0];
      writeLog('d', 'Message has refCount: [' . $refCount . "]");
      if ($refCount &amp;&amp; $refCount &gt; 1) {
        #message has other messages referencing it
        #create parent Hlist entry
        {
          my $msgAref = \@{$tmpMsgDB{$pMsgNum}{$pMsgNum}};
          if ($opt1 eq 'NEW' &amp;&amp; $counter &lt;= $opt2) {
            loadHlist('BLUE', 'PARENT', $pMsgNum, $pMsgNum, $msgAref);
          }
          else {
            loadHlist('BLACK', 'PARENT', $pMsgNum, $pMsgNum, $msgAref);
            $msgHeaderDB-&gt;{$pMsgNum}[8] = 1;
          }
          $counter++;
        }
        #add child Hlist entries to this parent entry
        foreach my $cMsgNum(
          sort {$b &lt;=&gt; $a} (keys %{$tmpMsgDB{$pMsgNum}})
        ) {
          if ($cMsgNum eq $pMsgNum) {
            next; #dont load the original post twice
          }
          $counter++;
          my $msgAref = \@{$tmpMsgDB{$pMsgNum}{$cMsgNum}};
          if ($opt1 eq 'NEW' &amp;&amp; $counter &lt;= $opt2) {
            loadHlist('BLUE', 'CHILD', $pMsgNum, $cMsgNum, $msgAref);
            #added a new reply to the parent entry
            #save the pMsgNum so later we can indicate the new reply
            push (@parentsWithNewReplies, $pMsgNum);
          }
          else {
            loadHlist('BLACK', 'CHILD', $pMsgNum, $cMsgNum, $msgAref);
            $msgHeaderDB-&gt;{$pMsgNum}[8] = 1;
          }
          #remove added message from tmpMsgDB
          delete $tmpMsgDB{$pMsgNum}{$cMsgNum};
        }
      }
      else {
        #create only a parent Hlist entry
        my $msgAref  = \@{$tmpMsgDB{$pMsgNum}{$cMsgNum}};
        $counter++;
        if ($opt1 eq 'NEW' &amp;&amp; $counter &lt;= $opt2) {
          loadHlist('BLUE', 'PARENT', $pMsgNum, $pMsgNum, $msgAref);
        }
        else {
          loadHlist('BLACK', 'PARENT', $pMsgNum, $pMsgNum, $msgAref);
          $msgHeaderDB-&gt;{$pMsgNum}[8] = 1;
        }
      }
      #next parent message
    }
    undef %tmpMsgDB;
    
    #Apply additional formatting
    {
      update_status ('Formatting headers...');
      my $style1 = $lb2_msg-&gt;ItemStyle('text',
        -anchor           =&gt; 'w',
        -selectforeground =&gt; '#fff000',
        -background       =&gt; '#ffffff',
        -foreground       =&gt; '#2040A0',
        -font             =&gt; '{Arial} 10 italic',
      );
      my $style2 = $lb2_msg-&gt;ItemStyle('text',
        -anchor           =&gt; 'w',
        -selectforeground =&gt; '#fff000',
        -background       =&gt; '#ffffff',
        -foreground       =&gt; '#2040ff',
        -font             =&gt; '{Arial} 10 bold italic',
      );
      foreach my $pPath ($lb2_msg-&gt;infoChildren()) {
        #format parent messages marked as 'read'
        if ($msgHeaderDB-&gt;{$pPath}-&gt;[7] eq 'read') {
          $lb2_msg-&gt;itemConfigure($pPath, 0, -style =&gt; $style1,);
        }
        #format child messages marked as 'read'
        foreach my $cPath ($lb2_msg-&gt;infoChildren($pPath)) {
          if ($cPath =~ m/^.+\.([^\.\s]+)$/) {
            my $cPathClean = $1;
            if (! exists $msgHeaderDB-&gt;{$cPathClean}) {
              writeLog('e', 'Path: [' . $cPathClean . "] not defined");
              next;
            }
            if ($msgHeaderDB-&gt;{$cPathClean}-&gt;[7] eq 'read') {
              $lb2_msg-&gt;itemConfigure($cPath, 0, -style =&gt; $style1,);
            }
          }
        }
        #format message thread indicator
        if ($lb2_msg-&gt;infoChildren($pPath)) {
          eval {
            $lb2_msg-&gt;indicator('create', $pPath,
              -itemtype =&gt; 'image', 
              -image    =&gt; $mw-&gt;Getimage('plus'),
            )
          };
          eval { $lb2_msg-&gt;open($pPath)  };
          eval { $lb2_msg-&gt;close($pPath) };
        }
      }
      #indicate if parent message has a new reply
      foreach my $pmn (@parentsWithNewReplies) {
        eval { $lb2_msg-&gt;itemConfigure($pmn, 0, -style =&gt; $style2,) };
      }
      $mw-&gt;update;
    }
    #Save db
    update_status ('Saving group DB...');
    $file{HEADERDB} = $msgHeaderDB;
    undef $msgHeaderDB;
    untie %file;
    $mw-&gt;update;
    return (1);
  }
  sub loadHlist #-------------------------------------------------------
  {
    #requires the following startup parameters:
    #color, parent or child, parent id, id, message aref, read
    my $color = uc  $_[0] || return (0);
    my $mode  = uc  $_[1] || return (0);
    my $pid   = $_[2]     || return (0);
    my $cid   = $_[3]     || return (0);
    my $aref  = $_[4]     || return (0);
    my $entryPath;
    my @paths;
    my $c = 0;
    
    writeLog('d',
      'loadHlist aref: [' . $aref . '] ' .
      'mode: [' . $mode . "]")
    ;
    writeLog('d',
      'loadHlist pid:  [' . $pid . '] ' .
      'cid:  [' . $cid . "]"
    );
    #Determine mode
    if ($mode eq 'PARENT')   { $entryPath = $pid;              }
    elsif ($mode eq 'CHILD') { $entryPath = $pid . '.' . $cid; }
    else {
      writeLog('e', 'Invalid mode in loadHlist: [' . $mode . "]");
      return (0);
    }
    #Create entry path
    {
      my $path;
      writeLog('d', 'Attempting to create path: [' . $entryPath . "]");
      eval { $path = $lb2_msg-&gt;add($entryPath) };
      if (! $@) {
        writeLog('d', 'Created path: [' . $path . "]");
      }
      else {
        writeLog('e', 'Unable to create path: [' . $entryPath . "]");
        return (0);
      }
    }
    
    #Create entry
    foreach my $headerCol (0, 1, 6, 5, 2,) {
      #(0, 1, 6, 5, 2) = (subject, from, parts, bytes, date)
      my $style;
      my $text = $aref-&gt;[0]-&gt;[$headerCol];
      if (! defined $text) {
        writeLog('e', "Header column: [$headerCol] is undefined");
        writeLog('w', "Not displaying invalid message");
        return (0);
      }
      if ($c &lt; 2) { $style = 2; }
      else        { $style = 1; }
      #check color and style
      if ($color eq 'BLUE') {
        if ($style == 1) {
          $lb2_msg-&gt;itemCreate($entryPath, $c,
            -itemtype =&gt; 'text',
            -style    =&gt; $lb2_b1,
            -text     =&gt; $text,
          );
        }
        elsif ($style == 2) {
          $lb2_msg-&gt;itemCreate($entryPath, $c,
            -itemtype =&gt; 'text',
            -style    =&gt; $lb2_b2,
            -text     =&gt; $text,
          );
        }
      }
      elsif ($color eq 'BLACK') {
        if ($style == 1) {
          $lb2_msg-&gt;itemCreate($entryPath, $c,
            -itemtype =&gt; 'text',
            -style    =&gt; $lb2_k1,
            -text     =&gt; $text,
          );
        }
        elsif ($style == 2) {
          $lb2_msg-&gt;itemCreate($entryPath, $c,
            -itemtype =&gt; 'text',
            -style    =&gt; $lb2_k2,
            -text     =&gt; $text,
          );
        }
      }
      $c++;
    }
    return (1);
  }
  sub killfile #--------------------------------------------------------
  {
    #requires from, returns -1 on error, 1 if filtered, 0 if not
    my $group = quotemeta (uc ($_[0])) || 'ALL';
    my $from  = quotemeta (uc ($_[1])) || return (-1);
    #$from =~ s/\/\s+/ /;
    
    #load up killfile rules
    if (open ('KF', '&lt;', 'killfile.txt')) {
      my $lNum;
      while (my $line = (&lt;KF&gt;)) {
        $lNum++;
        chomp $line;
        if ($line =~ m/^$/) { next; }
        my ($grp,$rul) = split (/,/, $line);
        
        #warn "In killfile rule: $rul group: $grp from: $from\n";
        
        if (defined $grp &amp;&amp; defined $rul) {
          if ($grp eq 'ALL' || $grp =~ m/$group/i) {
            my $rClean = quotemeta (uc $rul);
         #   warn "in killfile ruleclean: $rClean\n";
            if ($from =~ m/^$rClean\s*.*$/) {
              #killfile entry found somewhere in from field
              return (1);
            }
          }
        }
        else {
          #error parsing killfile
          writeLog('w', "Unexpected data in killfile, line: [$lNum]");
        }
      }
      close KF || writeLog('e', "Unable to close killfile.txt\n$!");
    }
    else {
      writeLog('e', "Unable to open killfile.txt\n$!");
      return (-1);
    }
    #entry ok
    return (0);
  }
  sub message_load #----------------------------------------------------
  {
    #called from the main window, rc menu, or message_clear()
    my ($group, $return,);
    update_status('Loading newsgroup...');
    $mw-&gt;Busy(-recurse =&gt; 1);
    $lb2_msg-&gt;focus;
    $mw-&gt;update;
    
    #load messages
    $lb2_msg-&gt;delete('all');
    for (1..10) { $pb++; $mw-&gt;update; }
    my $ret = displayheaders('OLD');
    if ($ret) { $return = 1; }
    else      { $return = 0; }
    
    ready();
    $lb2_msg-&gt;focus;
    $mw-&gt;update;
    return ($return);
  }
  sub message_clear #---------------------------------------------------
  {
    #called from the rc menu
    my ($group, @sel, @paths, %file,);
    update_status('Clearing previously scanned messages from group...');
    $mw-&gt;Busy(-recurse =&gt; 1);
    $mw-&gt;update;
    
    #get a list of paths for the message hlist
    lb2_msg_select_all();
    @paths = $lb2_msg-&gt;infoSelection;
    if (! $paths[0]) {
      my $ret = displayheaders('OLD');
      if ($ret) {
        lb2_msg_select_all();
        @paths = $lb2_msg-&gt;infoSelection;
      }
      else {
        writeLog('e', 'Unable to clear group');
        ready();
        $mw-&gt;Unbusy;
        return (0);
      }
    }
    
    #determine group
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('e', "No valid group selected to clear");
      ready();
      return (0);
    }
    
    #open the selected groups' DB file
    if (-e $group . '.grp') {
      tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
        || writeLog('f', "Can't open group DB");
      
      #select this groups HEADERDB table
      my $tmp = $file{HEADERDB};
      
      #clear the selected group, and update it's HEADERDB
      my $c = 1;
      foreach my $path (@paths) {
        if ($path != $paths[0]) {
          #my @subPaths;                                                #&lt;-todo, remove re's too
          #eval { $lb2_msg-&gt;infoChildren($path) };
          #if ($subPaths[0]) {
          #  eval { $lb2_msg-&gt;delete('siblings', $path) };
          #  foreach my $cPath (@subPaths) {
          #    delete $tmp-&gt;{$cPath};
          #  }
          #  redo;
          #}
          eval { $lb2_msg-&gt;delete('entry', $path) };
          delete $tmp-&gt;{$path};
          if ($c == 100) {
            $mw-&gt;update;
            undef $c;
          }
          $c++;
        }
      }
      $file{HEADERDB} = $tmp;
      
      #delete this groups' MULTIPARTDB
      delete $file{MULTIPARTDB};
    }
    else {
      writeLog('e', 'Unable to locate group file: ' . $group . '.grp');
    }
    
    #close the DB file and finish up
    untie %file;
    writeLog('w', 'Cleared group: ' . $group);
    ready();
    return (1);
  }
  sub lb2_msg_sort #----------------------------------------------------
  {
    #called from a button pressed in the main window
    my $caller = uc ($_[0]) || ' ';
    my ($col, $opt,);
    
    if ($caller eq ' ')          { return (1);         }
    elsif ($caller eq 'HEADERS') { $col = 0; $opt = 1; }
    elsif ($caller eq 'FROM')    { $col = 1; $opt = 1; }
    elsif ($caller eq 'PARTS')   { $col = 6; $opt = 2; }
    elsif ($caller eq 'BYTES')   { $col = 5; $opt = 2; }
    elsif ($caller eq 'DATE')    { $col = 2; $opt = 3; }
    else {
      writeLog('e', 'Invalid sort option:  [' . $caller . "]");
      return (0);
    }
    $sort_cnt++;
    $mw-&gt;Busy(-recurse =&gt; 1,);
    $lb2_msg-&gt;delete('all');
    update_status ('Sorting...');
    displayheaders('OLD', 0, $col . ',' . $opt);
    ready();
    return (1);
  }
  sub grab #------------------------------------------------------------
  {
    #called from a button in the main window or the rc menu
    my $open = $_[0] || 0;
    my (%file, @sel, @grabs, $group,);
    $pb = 0;
    
    #grab what?
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('w', 'No valid group selected for grab');
      ready();
      return (0);
    }
    $mw-&gt;update;
    $lb2_msg-&gt;focus;
    $mw-&gt;Busy(-recurse =&gt; 1);
    @grabs = $lb2_msg-&gt;selectionGet;
    if (! $group || ! @grabs) {
      writeLog('e', 'Selection error');
      $mw-&gt;Unbusy;
      ready();
      return (0);
    }
    
    #load group multipart db (%multi is a HoHoA) subj-&gt;part = msg id
    tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
      || writeLog('f', "Can't open group DB",);
    #following commented code used for testing purposes
    #foreach my $subj (keys %{$file{MULTIPARTDB}}) {
    #  warn "\nsubj is: $subj\n";
    #  foreach my $partnum (keys %{$file{MULTIPARTDB}{$subj}}) {
    #    warn "partnum is: $partnum\n";
    #    warn "msgid is:   $file{MULTIPARTDB}{$subj}{$partnum}\n";
    #  }
    #}
    
    #get selection(s)
    foreach my $path (@grabs) {
      my ($subje, $parts, @art, $aref, $treturn, $mNumber,);
      $mw-&gt;after(500);
      
      #check if this is a child entry
      if ($path =~ m/^.+\.([^\.\s]+)$/) { $mNumber = $1;    }
      else                              { $mNumber = $path; }
      
      #read subject
      $subje = $lb2_msg-&gt;itemCget($path, 0, -text);
      $parts = $lb2_msg-&gt;itemCget($path, 2, -text);
      
      writeLog('d', "$subje, $parts, $mNumber, $path\n");
      
      #lookup subject
      if (defined $subje &amp;&amp; defined $parts &amp;&amp; $parts &gt; 1) {
        #Multipart message
        my ($msgIDs, $ptNum, $ptTot,);
        
        #prepare options to provide to the thread
        {
          my $tmp = $file{MULTIPARTDB}{$subje};
          if ($tmp) {
            foreach my $ptNum (sort {$a &lt;=&gt; $b} (keys %$tmp)) {
              $msgIDs .= $tmp-&gt;{$ptNum} . ',';
              writeLog('d', 'Appending msgID: [' . $tmp-&gt;{$ptNum} . ']');
            }
            chop $msgIDs;
            #account for part 0 nfo files in messages
            $ptTot = keys %$tmp;
            if ($ptTot == $parts + 1) { $ptNum = 0; $ptTot--; }
            else                      { $ptNum = 1;           }
          }
          else {
            writeLog('e', "Message data not found in group DB");
            next;
          }
        }
        
        #launch thread, download parts
        $shash{1}{optionCSV} = $group . ',' . $ptNum . ',' . $msgIDs;
        $shash{1}{progress}  = 1;
        $shash{1}{article}   = 1;
        $mw-&gt;after(500);
        while ($shash{1}{article} == 1) {
          #wait for the thread, update gui
          $pb += .001;
          if ($pb &gt;= 100) {
            $pb = 0;
          }
          elsif ($pb % 2) {
            update_status(
              'Downloading... (' .
              $shash{1}{progress} . ' of ' . $ptTot . ')'
            );
          }
        }
        $treturn = $shash{1}{return};
      }
      else {
        #singlepart message
        my @a = ($path);
        update_status('Downloading message...');
        
        #Launch thread
        $shash{1}{optionCSV} = $group . ',1,' . $mNumber;
        $shash{1}{article}   = 1;
        while ($shash{1}{article} == 1) {
          $pb += .001;
          if ($pb &gt;= 100) { $pb = 0;                      }
          else            { if ($pb % 2) { $mw-&gt;update; } }
        }
        $treturn = $shash{1}{return};
      }
      
      #Decode attachment
      if ($treturn) {
        my ($ret,);
        $pb++;
        
        #launch thread
        update_status('Decoding attachment...');
        $shash{1}{decode} = 1;
        $mw-&gt;after(500);
        while ($shash{1}{decode} == 1) {
          $pb += .001;
          if ($pb &gt;= 100) { $pb = 0;                      }
          else            { if ($pb % 2) { $mw-&gt;update; } }
        }
        $ret = $shash{1}{return};
        
        if ($ret) {
          #load and update group header db
          my $tmp = $file{HEADERDB};
          $tmp-&gt;{$mNumber}[7] = 'read';
          $file{HEADERDB} = $tmp;
          #update display
          my $style = $lb2_msg-&gt;ItemStyle('text',
            -anchor           =&gt; 'w',
            -selectforeground =&gt; '#fff000',
            -background       =&gt; '#ffffff',
            -foreground       =&gt; '#2040A0',
            -font             =&gt; '{Arial} 10 italic',
          );
          $lb2_msg-&gt;itemConfigure($path, 0, -style =&gt; $style,);
          $lb2_msg-&gt;selectionClear($path);
          $mw-&gt;update;
          
          #open it?
          if ($open == 1) {
            my $cwd = cwd;
            my ($dir, $file) = split (/\*/, $ret);
            if ($^O eq 'MSWin32') {
              chdir  ($dir);
              system ('start', '/B', $file);
              chdir  ($cwd);
            }
            else {
              chdir  ($dir);
              system ($file);
              chdir  ($cwd);
            }
          }
        }
        else {
          #Could not decode attachment, try the next message
          my $m1 = "Couldn't decode attachment";
          writeLog('e', $m1 . "\n[$!]");
          update_status($m1 . '.');
          $mw-&gt;after(3000);
        }
      }
      else {
        #Missing some or all parts, try the next message
        my $m1 = "Couldn't download attachment";
        my $m2 = 'Article: [' . $mNumber . '] is incomplete';
        writeLog('e', $m1);
        writeLog('w', $m2);
        update_status($m1 . '.  ' . $m2 . '.');
        $mw-&gt;after(3000);
      }
    }
    untie %file;
    ready();
    return (1);
  }
  sub cleanFileNames #--------------------------------------------------
  {
    my $fName = $_[0] || return (0);
    chomp $fName;
    #Remove leading and trailing spaces
    $fName =~ s/^\s+//;
    $fName =~ s/\s+$//;
    #Change spaces to _'s on non MSWin32 OS's
    if ($^O ne 'MSWin32') { $fName =~ s/\s+/_/g; }
    #Replace single and multiple \'s or /'s with a single /
    $fName =~ s/[\\\/]+/\//g;
    #Remove leading .'s and replace multiple .'s with a single .
    $fName =~ s/^\.+//;
    $fName =~ s/\.\.+/./g;
    #Substitute an opening drive letter sequence with: /
    $fName =~ s/^(?:[a-z]:[^\/]*\/*\s*)*(.*)$/\/$1/i;
    #Change unprintables to _'s
    $fName =~ s/[\000-\040'`"\177-\240]/_/g;
    return ($fName);
  }
  sub message_delete #--------------------------------------------------
  {
    #called from the rc menu
    my ($group, @sel, %file,);
    $mw-&gt;Busy(-recurse =&gt; 1,);
    update_status('Deleting selected messages...');
    
    #determine group
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('e', "No valid group selected for message delete");
      ready();
      $mw-&gt;Unbusy;
      return (0);
    }
    
    #get a list of messages to delete
    $lb2_msg-&gt;focus;
    @sel = $lb2_msg-&gt;selectionGet;
    if (! $sel[0]) {
      ready();
      $mw-&gt;Unbusy;
      return (0);
    }
    
    #load group header db
    if (-e $group . '.grp') {
      tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
        || writeLog('f', "Can't open group DB");
    }
    else {
      ready();
      $mw-&gt;Unbusy;
      return (0);
    }
    
    #delete selected messages from screen and group header db
    my $tmp = $file{HEADERDB};
    foreach my $path (@sel) {
      $lb2_msg-&gt;hide('entry', $path);
      my $msgNum;
      if ($path =~ m/^.+\.([^\.\s]+)$/) { $msgNum = $1;    }            #&lt;-test
      else                              { $msgNum = $path; }
      delete $tmp-&gt;{$msgNum};
    }
    $file{HEADERDB} = $tmp;
    $lb2_msg-&gt;selectionClear;
    $mw-&gt;update;
    
    untie %file;
    ready();
    return (1);
  }
  sub read_message #----------------------------------------------------
  {
    #Called from a button pressed in the main window or the rc menu
    my (@sel, $group, $msgNumber,);
    $mw-&gt;Busy(-recurse =&gt; 1,);
    update_status('Connecting to server...');
    
    #Determine which group
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('e', "No valid group selected for message read");
      ready();
      return (0);
    }
    
    #Determine which article
    @sel = $lb2_msg-&gt;selectionGet;
    $lb2_msg-&gt;focus;
    if (! $group || ! $sel[0]) {
      ready();
      return (0);
    }
    else {
      #cleanup selection path, determine real msg number
      {
        writeLog('d', 'Selected path is:  [' . $sel[0] . "]");
        if ($sel[0] =~ m/^.+\.([^\.\s]+)$/) { $msgNumber = $1;      }
        else                                { $msgNumber = $sel[0]; }
        writeLog('d', 'Real msgNumber is: [' . $msgNumber . "]");
      }
      #connect to server
      my ($nntpRef,);
      $nntpRef = nntpconnect();
      if (! $nntpRef) {
        writeLog('w', "Retrying connection..");
        $nntpRef = nntpconnect();
        if (! $nntpRef) {
          writeLog('e', 'Unable to connect to server, try again');
          ready();
          return (0);
        }
      }
      #launch thread, download article
      {
        update_status('Downloading message...');
        $shash{1}{optionCSV} = $group . ',1,' . $msgNumber;
        $shash{1}{article}   = 1;
        update_status('Downloading message');
        while ($shash{1}{article} == 1) {
          #wait for the thread, update gui
          if ($pb &gt;= 100) { $pb  = 0;   }
          else            { $pb += .01; }
          $mw-&gt;update;
        }
      }
      
      #check return, read, format, and display downloaded message
      my $treturn = $shash{1}{return};
      if ($treturn) {
        #read message header and determine encoding (max 128 lines)
        my ($headerLineCount, $blankLineAt, $encoding, $qp,);
        if (! open ('FH', '&lt;', 'part1.pt')) {
          writeLog('e', "Can't open part1.pt\n$!");
          return (0);
        }
        while (my $l = (&lt;FH&gt;)) {
          #determine if we are still in the header
          $headerLineCount++;
          if ($l =~ m/^$/) {
            #this line is blank
            $blankLineAt = $headerLineCount;
            if ($blankLineAt = $headerLineCount - 1) {
              #the last line was blank also (indicates end of header)
              last;
            }
          }
          #determine encoding used for this message
          if ($l =~ m/Content-Transfer-Encoding:\s+(.+)/) {
            #record specified encoding
            $encoding = $1;
            if ($encoding eq 'quoted-printable') { $qp = 1; }
            last;
          }
          if ($headerLineCount &gt; 128) {
            #extra long header? (sanity check)
            writeLog('e', 'Extra long header detected (&gt; 128 lines)');
            writeLog('w', 'Processing rest of message as body');
            last;
          }
        }
        if (! close FH) {
          writeLog('e', "Can't close part1.pt\n$!");
        }
        if (! defined $encoding) { $encoding = 'UNKNOWN'; }
        writeLog('i', '[' . $encoding . '] encoding detected');
        
        #format message for display
        if (! open ('FH', '&lt;', 'part1.pt')) {
          writeLog('e', "Can't open part1.pt\n$!");
          return (0);
        }
        while (my $l = (&lt;FH&gt;)) {
          #check if quoted printable encoding was detected
          if ($qp) {
            #decode quoted printable
            #The following is borrowed from the module
            #MIME::QuotedPrint::Perl created by: Gisle Aas
            $l =~ s/\r\n/\n/g;        # normalize newlines
            $l =~ s/[ \t]+\n/\n/g;    # rule #3 (trailing space deleted)
            $l =~ s/=\n//g;           # rule #5 (soft line breaks)
            if (ord('A') == 193) {    # EBCDIC style machine
              if (ord('[') == 173) {
                $l =~ s/=([\da-fA-F]{2})/Encode::encode('cp1047',
                Encode::decode('iso-8859-1',pack("C", hex($1))))/gex;
              }
              elsif (ord('[') == 187) {
                $l =~ s/=([\da-fA-F]{2})/Encode::encode('posix-bc',
                Encode::decode('iso-8859-1',pack("C", hex($1))))/gex;
              }
              elsif (ord('[') == 186) {
                $l =~ s/=([\da-fA-F]{2})/Encode::encode('cp37',
                Encode::decode('iso-8859-1',pack("C", hex($1))))/gex;
              }
            }
            else {                     # ASCII style machine
              $l =~ s/=([\da-fA-F]{2})/pack("C", hex($1))/ge;
            }
            #End MIME::QuotedPrint::Perl code
          }
          #check for formatting tags
          if ($l =~ s/[A-F]\&lt;(.*)\&gt;/$1/) {
            #handle (remove for now) 'tin-like' formatting tags         &lt;-todo - use these for formatting
          }
          #display message
          $txt_read-&gt;insert('end', $l);
          $mw-&gt;update;
        }
        if (! close FH) {
          writeLog('e', "Unable to close part1.pt");
        }
        if (! unlink 'part1.pt') {
          writeLog('w', "Couldn't remove part1.pt");
        }
      }
      else {
        #error downloading message
        update_status('Could not download article from server');
        writeLog('e', "Couldn't download the article");
        $mw-&gt;update;
        $mw-&gt;after(1000);
        ready();
        return (0);
      }
    }
    writeLog('i', "The message was displayed for reading");
    
    #Mark message as read in group header db
    {
      my ($tmp, %file,);
      tie %file, 'MLDBM', $group . '.grp', O_CREAT|O_RDWR, 0640
        || writeLog('f', "Can't group DB");
      $tmp = $file{HEADERDB};
      $tmp-&gt;{$msgNumber}[7] = 'read';
      $file{HEADERDB} = $tmp;
      untie %file;
    }
    #Update gui
    {
      my $style = $lb2_msg-&gt;ItemStyle('text',
        -anchor           =&gt; 'w',
        -selectforeground =&gt; '#fff000',
        -background       =&gt; '#ffffff',
        -foreground       =&gt; '#2040A0',
        -font             =&gt; '{Arial} 10 italic',
      );
      $lb2_msg-&gt;itemConfigure($sel[0], 0, -style =&gt; $style,);
      $txt_read-&gt;focus;
      $tl4-&gt;update;
      $tl4-&gt;deiconify();
      $tl4-&gt;raise();
    }
    ready();
    return (1);
  }
  sub read_close #------------------------------------------------------
  {
    #called from a button pressed in the read window
    $txt_read-&gt;delete('1.0', 'end');
    $tl4-&gt;withdraw;
    $tl4-&gt;configure(-title =&gt; 'Read Message');
    $mw-&gt;update;
    return (1);
  }
  sub read_reply #------------------------------------------------------
  {
    #called from a button pressed in the read window
    my ($c, $txt, @tmp, $refs, $mid, $subj);
    $mw-&gt;Busy(-recurse =&gt; 1);
    
    #read message
    $txt = $txt_read-&gt;get('1.0', 'end');
    @tmp = split(/\n/, $txt);
    undef $txt;
    $txt_read-&gt;delete('1.0', 'end');
    $tl4-&gt;withdraw;
    
    dbmopen (my %OPT, 'settings', 0640)
      || writeLog('f', "Can't create settings\n$!");
    my $QSig = $OPT{QSig};
    dbmclose %OPT;
    
    #process header, and quote message
    $c = 0;
    foreach my $line (@tmp) {
      #look for blank lines (delimits header)
      if (! $line =~ m/(.+)/) {
        $c++;
      }
      if ($c &gt;= 1) {
        #found blank lines, start quoting everything from here
        if ($line =~ m/^-- $/) {
          #found signature
          if ($QSig) { $txt .= '&gt; '.$line."\n"; }
          else       { last;                    }
        }
        else {
          #quote message line
          $txt .= '&gt; '.$line."\n";
        }
      }
      else {
        #process header
        if ($line =~ m/^References:\s+(.+)/)    { $refs = $1; }
        elsif ($line =~ m/^Message-ID:\s+(.+)/) { $mid  = $1; }
        elsif ($line =~ m/^Subject:\s+(.+)/) {
          my $a = $1;
          if ($a =~ m/[Rr][Ee]:.*/) { $subj = $a;             }
          else                      { $subj = 'Re: ' . $a;    }
        }
      }
    }
    if ($mid) { $refs .= $mid; }
    
    #save references, so the send function can craft the header
    dbmopen (%OPT, 'settings', 0640) ||
      writeLog('f', "Can't create settings\n$!");
    $OPT{Refs} = $refs;
    $post_entries[0]-&gt;delete('0', 'end');
    $post_entries[1]-&gt;delete('0', 'end');
    $post_entries[0]-&gt;insert('end', $OPT{Mail});
    $post_entries[1]-&gt;insert('end', $subj);
    dbmclose %OPT;
    
    #populate then display the reply window
    my $typed;
    my @sel = $lb2_msg-&gt;selectionGet;
    $typed  = $lb2_msg-&gt;itemCget($sel[0], 1, -text);
    $typed .= " wrote in message-id:  " . $mid . "\n";
    $txt_post-&gt;insert('end', $typed . "\n");
    $txt_post-&gt;insert('end', $txt);
    $mw-&gt;Unbusy;
    post();
    return (1);
  }
  sub post #------------------------------------------------------------
  {
    #called from a main button, rc menu, or read_reply
    my ($from,);
    my @sel = $lb1_grp-&gt;selectionGet;
    my $group;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('e', "No valid group selected for message post");
      return (0);
    }
    {
      dbmopen (my %OPT, 'settings', 0640)
        || writeLog('f', "Can't read settings\n$!");
      $from = $OPT{Mail};
      dbmclose %OPT
    }
    $post_entries[0]-&gt;delete('0', 'end');
    $post_entries[0]-&gt;insert('end', $from);
    
    $tl2-&gt;deiconify();
    $tl2-&gt;raise();
    $txt_post-&gt;focus;
    $mw-&gt;update;
    return (1);
  }
  sub post_post #-------------------------------------------------------
  {
    #called from a button pressed in the post window or sub post_attach
    my $atch = $_[0] || 0;
    my $curr = $_[1] || 1;
    my $totl = $_[2] || 1;
    my $file = $_[3] || ' ';
    my (@sel, $msg, $hdr, $bdy, $subj, $from, $refs, $sign, $group,);
    
    #determine group
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('e', 'No valid group selected for posting to');
      return (0);
    }
    $mw-&gt;update;
    $mw-&gt;Busy(-recurse =&gt; 1,);
    update_status('Formatting message...');
    for (1..4) { $pb++; $mw-&gt;update; }
    
    #gather message information, update subject header
    #subject should not contain (#/#), it should look like below
    #[Comment1] "filename" yEnc (partnum/numparts) [size] [Comment2]
    $subj = $post_entries[1]-&gt;get();
    $from = $post_entries[0]-&gt;get();
    $subj =~ s/\(\d+\/\d+\)//g;
    {
      dbmopen (my %OPT, 'settings', 0640)
        || writeLog('f', "Can't read settings\n$!");
      if (! $sign)      { $sign = 0;                   }
      if (! $subj)      { $subj = 'No Subject';        }
      if (! $OPT{Refs}) { $OPT{Refs} = 0;              }
      if ($atch) {
        $subj .= ' "' . $file . '" yEnc (' . $curr . '/' . $totl . ')';
      }
      $refs = $OPT{Refs};
      $sign = $OPT{Sig};
      $OPT{Refs} = 0;                                                   #&lt;-test
      dbmclose %OPT
        || writeLog('w', "Can't close settings\n$!");
    }
    
    #create header
    if ($refs) {
      $hdr =
        'From: '         . $from  . "\n" .
        'Newsgroups: '   . $group . "\n" .
        'References: '   . $refs  . "\n" .
        'X-NNTPclient: ' . "NewsSurfer v3.10\n".
        'X-CreatedBy: '  . "Just another Perl hacker, \n".
        'Subject: '      . $subj . "\n\n";
    }
    else {
      $hdr =
        'From: '         . $from  . "\n".
        'Newsgroups: '   . $group . "\n" .
        'X-NNTPclient: ' . "NewsSurfer v3.10\n" .
        'X-CreatedBy: '  . "Just another Perl hacker, \n" .
        'Subject: '      . $subj . "\n\n";
    }
    $msg = $hdr . "\n";
    
    #attach body and signature to first article only
    if ($curr == 1) {
      $bdy  = $txt_post-&gt;get('1.0', 'end');
      if ($sign) {
        #attach signature to body
        if (open ('FH', '&lt;', $sign)) {
          #'four lines after the double dash space'
          my $c = 1;
          $bdy .= "\n-- \n";
          while (my $line = (&lt;FH&gt;)) {
            chomp $line;
            $bdy .= $line . "\n";
            if ($c == 4) { last; }
            $c++;
          }
          if (! close FH) {
            writeLog('w', "Can't close signature file\n$!\n");
          }
        }
        else {
          writeLog('e', "Can't open signature file\n$!\n");
        }
      }
      $msg .= $bdy . "\n";
    }
    if ($atch) {
      #attach file part to article
      $msg .= $atch . "\n";
    }
    
    #connect, post message, and disconnect
    update_status('Posting message...');
    for (1..4) { $pb += 4; $mw-&gt;update; }
    my $nntpRef = nntpconnect();
    if($nntpRef) {
      my $bool = $$nntpRef-&gt;post([$msg]);                               #&lt;-blocks
      if (! $bool) {
        writeLog('e', 'Unable to post message, could not post');
      }
    }
    else {
      writeLog('e', 'Unable to post message, could not connect');
    }
    $$nntpRef-&gt;quit;
    
    #finish up
    ready();
    if ($curr == $totl) {
      post_cancel();
    }
    return (1);
  }
  sub post_attachandpost #----------------------------------------------
  {
    #called from a button pressed in the post window
    my $file = $mw-&gt;getOpenFile();
    $mw-&gt;Busy(-recurse =&gt; 1);
    
    if (defined $file) {
      #Open the file, or return early
      if (! open ('ATCH', '&lt; :raw', $file)) {
        writeLog('e', "Couldn't open attachment for input");
        return (0);
      }
      
      #deterimine filename and remove leading and trailing whitespace
      update_status('Creating attachment...');
      for (1..4) { $pb += 4; $mw-&gt;update; }
      my $file_name = $file;
      $file_name =~ s/
        .*\/                   #0 or more of anything until foward slash
        (.+)                   #capture 1 or more of anything
        /$1                    #replace those with capture variable 1
      /x;
      #remove leading and trailing space
      $file_name =~ s/(?:^\s+|\s+$)//g;
      
      #truncate filenames longer than 254 characters
      if (length $file_name &gt;= 255) {
        $file_name = substr ($file_name, 0, 254);
      }
      #how large is the file in bytes
      my ($file_bytes,);
      $file_bytes = -s $file;
      
      #send attachment, split large files ( &gt; 400KB)
      if ($file_bytes &gt; 409600) {                                       #&lt;-Research
        #create a multipart attachment
        my ($totalparts, $currentpart,);
        #how many 400k parts will this be?
        $totalparts  = 1 + (int ($file_bytes / 409600));
        $currentpart = 1;
        #read 400k chunks of the file into a string
        while (my $size = read (ATCH, my $buf, 409600)) {
          #yEncode data                                                 #&lt;-Test
          my $begin = 1 + (($currentpart * 409600) - 409600);
          my @data  = map { ord $_ } split (//, $buf);
          my $ydata = post_yenc(\@data);
          my $psize = length $ydata;
          my $pcrc  = crc32($ydata);
          my $end;
          if ($size == 409600) {
            $end = $currentpart * $size;
          }
          else {
            $end = (($currentpart - 1) * 409600) + $size;
          }
          #Encapsulate data in yENC headers                             #&lt;-Test
          my $crlf  = "\015\012";
          my $yhead = '=ybegin'                . ' ' .
                      'part='   . $currentpart . ' ' . #enable multipart
                      'total='  . $totalparts  . ' ' . #number of parts
                      'line='   . '128'        . ' ' . #~ line length
                      'size='   . $file_bytes  . ' ' . #unencoded size
                      'name='   . $file_name;          #file name
          my $ypart = '=ypart'                 . ' ' .
                      'begin='  . $begin       . ' ' . #start byte
                      'end='    . $end;                #end byte
          my $ytail = '=yend'                  . ' ' .
                      'size='   . $size        . ' ' . #part bytes
                      'part='   . $currentpart . ' ' . #part number
                      'pcrc32=' . $pcrc;               #part crc32
          my $atch  = $crlf . $yhead . $crlf . $ypart .
                      $crlf . $ydata . $crlf . $ytail . $crlf;
          
          #Send the message
          my $ret = post_post(
            $atch, $currentpart, $totalparts, $file_name
          );
          if (! $ret) {
            writeLog('e', 'Unable to attach: [' . $file_name . ']');
            last;
          }
          $currentpart++;
          $mw-&gt;update;
        }
        close ATCH || warn "Can't close attachment file\n$!\n";
      }
      else {                                                            #&lt;-Test
        #Create single part message attachement
        my $line;
        while (&lt;ATCH&gt;) { $line .= $_; }
        close ATCH || warn "Can't close attachment file\n$!\n";
        
        #yEncode data
        my @data  = map { ord $_ } split (//, $line);
        my $ydata = post_yenc(\@data);
        
        #Encapsulate data in yENC headers
        my $crlf  = "\015\012";
        my $yhead = '=ybegin'             . ' ' .
                    'line=' . '128'       . ' ' .
                    'size=' . $file_bytes . ' ' .
                    'name=' . $file_name;
        my $ytail = '=yend'               . ' ' .
                    'size=' . $file_bytes;
        my $atch  = $crlf . $yhead . $crlf . $ydata .
                    $crlf . $ytail . $crlf;
        
        #send the message
        my $ret = post_post($atch, 1, 1, $file_name);
        if (! $ret) {
          writeLog('e', 'Unable to attach file: [' . $file_name . ']');
        }
      }
    }
    else {
      writeLog('w', 'No file selected for attachment');
    }
    $mw-&gt;Unbusy;
    return (1);
  }
  sub post_yenc #-------------------------------------------------------
  {                                                                     #&lt;-Test, research
    my $aref = $_[0] || return (0);
    my (@in, @out, $linesize,);
    update_status('Encoding attachment...');
    for (1..4) { $pb++; $mw-&gt;update; }
    @in = @$aref;
    undef $aref;
    
    $linesize = 0;
    while (defined (my $byte = shift @in)) {
      my $yenc = ($byte + 42) % 256;
      if ($linesize &gt;= 128) {
        #enforce line size, insert a CRLF pair
        push @out, 0x0D;
        push @out, 0x0A;
        $linesize = 0;
      }
      if ($linesize == 0 || $linesize == 127) {                         #&lt;-test, line may go over 128
        #escape a tab or space in the first or last column of a line
        if ($yenc == 0x09 || $yenc == 0x20) {
          $yenc = ( $byte + 64 ) % 256;
          push @out, 0x3D;
          push @out, $yenc;
          $linesize += 2;
          next;
        }
      }
      if ($yenc==0x00 || $yenc==0x0A || $yenc==0x0D || $yenc==0x3D ){
        #found a critical character, escape it with 0x3D (=)
        push @out, 0x3D;
        $yenc = ( $byte + 64 ) % 256;
        $linesize++;
      }
      push @out, $yenc;
      $linesize++;
    }
    my $ydata = join '', map { chr $_ } @out;
    return ($ydata);
  }
  sub post_cancel #-----------------------------------------------------
  {
    #called from a button pressed in the post window
    $txt_post-&gt;delete('1.0', 'end');
    $tl2-&gt;Unbusy;
    $tl2-&gt;withdraw();
    $mw-&gt;update;
    return (1);
  }
  sub browse #----------------------------------------------------------
  {
    #called from a button pressed in the main window
    $mw-&gt;Busy(-recurse =&gt; 1);
    dbmopen (my %OPT, 'settings', 0640)
      || writeLog('f', "Can't read settings\n$!");
    
    if ($^O eq 'MSWin32') {
      my ($dir,);
      $dir = $OPT{DDir};
      $dir =~ s/\//\\/g;
      system ('explorer.exe', $dir);
    }
    else {
      system ('ls', $OPT{DDir});
    }
    dbmclose %OPT;
    $mw-&gt;Unbusy;
    $mw-&gt;update;
    return (1);
  }
  sub rset_cmd #--------------------------------------------------------
  {
    #called from the rc menu
    my ($sel, $rem,);
    $mw-&gt;Busy(-recurse =&gt; 1);
    $sel = $lb1_grp-&gt;selectionGet;
    $rem = $lb1_grp-&gt;itemCget($sel, 0, -text);
    if (! $sel &amp;&amp; ! $rem) {
      writeLog('w', 'No valid groups selected for reset');
      return (0);
    }
    $lb2_msg-&gt;delete('all');
    
    if (-e $rem . '.grp') {
      if (! unlink  $rem . '.grp') {
        writeLog('e', "Couldn't delete the group DB");
        return (0);
      }
    }
    dbmopen (my %SBSCRIBE, 'sbscribe', 0640)
      || writeLog('f', "Can't create sbscribe\n$!");
    $SBSCRIBE{$rem} = 'Never';
    dbmclose %SBSCRIBE;
    $mw-&gt;after(500);
    display_groups();
    $mw-&gt;Unbusy;
    return (1);
  }
  sub group #-----------------------------------------------------------
  {
    #called from a button pressed in the main window
    my ($lb_grp_s1, $imagedata, $chek,);
    $mw-&gt;Busy(-recurse =&gt; 1);
    $tl3-&gt;Popup;
    $lb_grp-&gt;focus;
    foreach my $b (@buttons) {
      $b-&gt;configure(-state =&gt; 'disabled');
    }
    $mw-&gt;Unbusy;
    $mw-&gt;update;
    return (1);
  }
  sub grp_search #------------------------------------------------------
  {
    search($lb_grp, 'GROUP');
    return (1);
  }
  sub grp_shownewsgroups #----------------------------------------------
  {
    my $opt1 = uc ($_[0]) || 'ALL';
    my ($chek, $lb_grp_s1,);
    
    $mw-&gt;Busy(-recurse =&gt; 1,);
    update_status('Loading groups...');
    {
      my $imagedata = load_image(3);
      $chek = $mw-&gt;Photo(-format =&gt; 'bmp', -data =&gt; $imagedata);
      for (1..4) { $pb++; $mw-&gt;update; }
      undef $imagedata;
    }
    $lb_grp_s1 = $lb_grp-&gt;ItemStyle(
      'text',
      -selectforeground =&gt; '#000000',
      -selectbackground =&gt; '#fff000',
      -bg               =&gt; '#000000',
      -fg               =&gt; '#ffffff',
      -font             =&gt; '{Arial} 8',
      -anchor           =&gt; 'w',
    );
    $lb_grp-&gt;delete('all');
    $mw-&gt;update;
    
    if (-e 'groups') {
      my (%groups, $counter, $c,);
      tie %groups, 'MLDBM', 'groups', O_CREAT|O_RDWR, 0640
        || writeLog('f', $!);
      dbmopen (my %SBSCRIBE, 'sbscribe', 0640)
        || writeLog('f', "Can't create sbscribe\n$!");
      
      $counter = $c = 0;
      foreach my $k (sort {$a cmp $b} (keys (%groups))) {
        my $found;
        if ($opt1 eq 'SEARCH') {
          #search action specified
          if ($k =~ m/$grpSubSearch/) {
            $found++;
          }
        }
        if ($opt1 eq 'SEARCH' &amp;&amp; !defined $found) {
          #item does not match search
          next;
        }
        else {
          #display the item
          my $v = $groups{$k};
          $lb_grp-&gt;add($counter);
          $lb_grp-&gt;itemCreate($counter, 0,
            -text  =&gt; $k,
            -style =&gt; $lb_grp_s1
          );
          $lb_grp-&gt;itemCreate($counter, 1,
            -text  =&gt; $v,
            -style =&gt; $lb_grp_s1
          );
          if ($SBSCRIBE{$k}) {
            $lb_grp-&gt;indicator('create', $counter,
              -itemtype =&gt; 'image',
              -image    =&gt; $chek
            );
          }
        }
        if ($pb &gt;= 100) { $pb  = 0; $mw-&gt;update;                     }
        if ($c  &gt; 1000) { for (1..5) { $pb++; $mw-&gt;update; } $c = 0; }
        else            { $c++;                                      }
        $counter++;
      }
      untie %groups;
      dbmclose %SBSCRIBE;
    }
    else {
      $lb_grp-&gt;add(0);
      $lb_grp-&gt;itemCreate(0,0,
        -text =&gt; 'Press the Update button to retrieve groups '.
                 'from server.'
      );
    }
    ready();
    return (1);
  }
  sub grp_update #------------------------------------------------------
  {
    #called from a button pressed in the group window
    $tl3-&gt;Busy(-recurse =&gt; 1,);
    update_status('Downloading groups...');
    $lb_grp-&gt;delete('all');
    $pb++;
    $mw-&gt;update;
    #remove old groups database
    if (! unlink 'groups') {
      writeLog('e', "Can't delete groups db\n$!");
      if (! rename ('groups', 'groups.old')) {
        writeLog('e', "Can't rename groups db\n$!");
        writeLog('w', "Merging new groups into old db\n$!");
      }
    }
    #create groups database
    $shash{1}{list} = 1;
    while ($shash{1}{list} == 1) {
      if ($pb &gt;= 100) { $pb = 0; }
      else            { $pb++;   }
      $mw-&gt;after(100);
      $mw-&gt;update;
    }
    #show newsgroup list
    $tl3-&gt;Unbusy;
    grp_close();
    group();
    grp_shownewsgroups();
    ready();
    return (1);
  }
  sub grp_subscribe #---------------------------------------------------
  {
    #called from a button pressed in the group window
    my ($imagedata, $chek, @sel,);
    $imagedata = load_image(3);
    $chek = $mw-&gt;Photo(
      -format =&gt; 'bmp',
      -data   =&gt; $imagedata
    );
    undef $imagedata;
    dbmopen (my %SBSCRIBE, 'sbscribe', 0640)
      || writeLog('f'. "Can't create sbscribe\n$!");
    
    @sel = $lb_grp-&gt;selectionGet;
    foreach my $i (@sel) {
      my $a = $lb_grp-&gt;itemCget($i, 0, -text);
      $lb_grp-&gt;indicator('create', $i,
        -itemtype =&gt; 'image',
        -image    =&gt; $chek
      );
      $SBSCRIBE{$a} = 'Never';
    }
    dbmclose %SBSCRIBE;
    display_groups();
    return (1);
  }
  sub grp_unsubscribe #-------------------------------------------------
  {
    #called from a button pressed in the group or main window
    my $opt = $_[0];
    dbmopen (my %SBSCRIBE, 'sbscribe', 0640)
      || writeLog('f', "Can't create sbscribe\n$!");
    if ($opt) {
      #unsubscribe from main screen
      my ($sel, $gName,);
      $sel = $lb1_grp-&gt;selectionGet;
      if (! $sel) {
        writeLog('w', 'No valid group selected to remove');
        return (0);
      }
      $gName = $lb1_grp-&gt;itemCget($sel, 0, -text);
      writeLog('w', "Removing newsgroup:  [$gName.grp]");
      delete $SBSCRIBE{$gName};
      if  (-e $gName . '.grp') {
        unlink $gName . '.grp'
          || writeLog('e', "Couldn't delete the group file\n[$!]");
      }
      $lb2_msg-&gt;delete('all');
    }
    else {
      #unsubscribe from groups screen
      my (@sel,);
      @sel = $lb_grp-&gt;selectionGet;
      if (! @sel) {
        writeLog('w', 'No valid group selected to remove');
        return (0);
      }
      foreach my $i (@sel) {
        my $gName = $lb_grp-&gt;itemCget($i, 0, -text);
        $lb_grp-&gt;indicator('delete', $i,);
        writeLog('w', 'Removing newsgroup:  [' . $gName . ".grp]");
        delete $SBSCRIBE{$gName};
        if (-e $gName . '.grp') {
          unlink $gName . '.grp'
            || writeLog('e', "Couldn't delete the group file\n[$!]");
        }
      }
    }
    dbmclose %SBSCRIBE;
    display_groups();
    return (1);
  }
  sub grp_close #-------------------------------------------------------
  {
    #called from a button pressed in the group window
    $mw-&gt;Busy(-recurse =&gt; 1);
    $mw-&gt;update;
    $lb_grp-&gt;delete('all');
    $tl3-&gt;withdraw;
    foreach my $b (@buttons) {
      $b-&gt;configure(-state =&gt; 'normal',);
    }
    $mw-&gt;update;
    $mw-&gt;Unbusy;
    return (1);
  }
  sub display_groups #--------------------------------------------------
  {
    #called from subs: group_subscribe, group_unsubscribe
    $lb1_grp-&gt;delete('all');
    my $counter = 1;
    my %SBSCRIBE;
    if (! dbmopen (%SBSCRIBE, 'sbscribe', 0640)) {
      writeLog('f', "Can't read sbscribe\n$!");
    }
    foreach my $k (sort {$a cmp $b} keys %SBSCRIBE) {
      $lb1_grp-&gt;add($counter);
      $lb1_grp-&gt;itemCreate($counter, 0,
        -text  =&gt; $k,
        -style =&gt; $lb1_k1,
      );
      $lb1_grp-&gt;itemCreate($counter, 1,
        -text  =&gt; $SBSCRIBE{$k},
        -style =&gt; $lb1_k2,
      );
      $counter++;
    }
    dbmclose %SBSCRIBE || writeLog('e', "Can't close SBSCRIBE DB");
    $mw-&gt;update;
    return (1);
  }
  sub search_popup #----------------------------------------------------
  {
    #called from rc menu
    my ($group, @sel,);
    #make sure the group clicked has been loaded or scanned.
    @sel = $lb1_grp-&gt;selectionGet;
    eval { $group = $lb1_grp-&gt;itemCget($sel[0], 0, -text) };
    if ($@) {
      writeLog('w', 'No valid group selected to search');
    }
    #raise popup
    $tla-&gt;Popup;
    $tla-&gt;focus;
    my @kids = $tla-&gt;children;
    foreach my $widget (@kids) {
      if ($widget-&gt;class eq 'Entry') {
        $widget-&gt;focus;
        last;
      }
    }
    $mw-&gt;update;
    return (1);
  }
  sub search #----------------------------------------------------------
  {
    #works for HLists only
    #called from button pressed in group window or search_popup window
    #Todo - add search within results option                            #&lt;--Todo
    my $w    = $_[0]      || return (0);
    my $opt1 = uc ($_[1]) || 0;
    my $opt2 = $_[2]      || 0;
    my (@paths, $c,);
    
    #show all requested
    if ($opt1 eq 'GROUP' &amp;&amp; $opt2 == 1) {
      #show all available newsgroups
      grp_shownewsgroups('ALL');
      return (1);
    }
    
    #start searching
    $w-&gt;focus;
    $mw-&gt;Busy(-recurse =&gt; 1,);
    update_status('Searching groups...');
    $mw-&gt;update;
    
    if (defined $grpSubSearch) {
      #escape any regex metachars found within search string
      $grpSubSearch = quotemeta $grpSubSearch;
    }
    else {
      #Default search regex (all but newline regex metachar)
      $grpSubSearch = '.';
    }
    foreach my $i (1,3,4,2) { $pb += $i; $mw-&gt;update; }
    $tla-&gt;withdraw;
    $c = 0;
    
    @paths = $w-&gt;infoChildren;
    if ($paths[0]) {
      #Widget is populated, show only entries which match search term
      #my $regex = qr/$grpSubSearch/;
      foreach my $path (@paths) {
        my $item  = $w-&gt;itemCget($path, 0, -text);
        if ($item =~ m/$grpSubSearch/i) { $w-&gt;show('entry', $path); }
        else                            { $w-&gt;hide('entry', $path); }
        if ($c &gt;= 1000) {
          if ($pb &gt;= 100) { $pb = 0; }
          else            { $pb++;   }
          $c = 0;
          $mw-&gt;update;
          next;
        }
        $c++;
      }
    }
    else {
      #searching an empty widget, see if it is the groups window
      if ($opt1 eq 'GROUP') {
        #call a more specific search subroutine
        grp_shownewsgroups('SEARCH');
      }
    }
    ready();
    return (1);
  }
  sub opt #-------------------------------------------------------------
  {
    #called from button pressed in the main window
    dbmopen (my %OPT, 'settings', 0640)
      || writeLog('f', "Can't create settings\n$!");
    {
      my $c = 0;
      foreach my $k qw(Serv User Pass Mail DDir Sig) {
        $OPT_widgets[$c]-&gt;delete(0, 'end');
        $OPT_widgets[$c]-&gt;insert('end', $OPT{$k});
        $mw-&gt;update;
        $c++
      }
      foreach my $k qw(Kilf QSig) {
        if ($OPT{$k}) { $OPT_widgets[$c]-&gt;select; }
        $c++;
      }
    }
    dbmclose %OPT;
    $tl5-&gt;Popup;
    $tl5-&gt;focus;
    $mw-&gt;update;
    return (1);
  }
  sub opt_close #-------------------------------------------------------
  {
    #called from button pressed in the option window
    my ($serv, $user, $pass, $email, $ddir, $sig,);
    
    dbmopen (my %OPT, 'settings', 0640)
      || writeLog('f', "Can't create settings\n$!");
    $serv  = $OPT_widgets[0]-&gt;get();
    $user  = $OPT_widgets[1]-&gt;get();
    $pass  = $OPT_widgets[2]-&gt;get();
    $email = $OPT_widgets[3]-&gt;get();
    $ddir  = $OPT_widgets[4]-&gt;get();
    $sig   = $OPT_widgets[5]-&gt;get();
    $OPT{Serv} = $serv;
    $OPT{User} = $user;
    $OPT{Pass} = $pass;
    $OPT{Mail} = $email;
    $OPT{DDir} = $ddir;
    $OPT{Sig}  = $sig;
    $OPT{QSig} = $quoteSig;
    $OPT{Kfile} = $killFile;
    dbmclose %OPT;
    
    $tl5-&gt;withdraw;
    $mw-&gt;update;
    return (1);
  }
  sub opt_download #----------------------------------------------------
  {
    #called from button pressed in the option window
    my ($dir,);
    $OPT_widgets[4]-&gt;delete(0, 'end');
    
    eval {
      $dir = $tl5-&gt;chooseDirectory(
        -title      =&gt; 'Choose a download directory',
        -initialdir =&gt; '.',
        -mustexist  =&gt; 1,
      )
    };
    if ($@) {
      #error
      writeLog('e', 'Unable to choose a download directory');
    }
    else {
      if ($dir) {
        #user defined directory
        $OPT_widgets[4]-&gt;insert('end', $dir);
      }
      else {
        #default directory
        $OPT_widgets[4]-&gt;insert('end', '.');
      }
    }
    $mw-&gt;update;
    return (1);
  }
  sub opt_signature #---------------------------------------------------
  {
    #called from button pressed in the option window
    my ($sig, $ofile,);
    $OPT_widgets[5]-&gt;delete(0, 'end');
    
    $ofile = $tl5-&gt;getOpenFile(
      -title      =&gt; 'Choose Signature File',
      -initialdir =&gt; '.',
    );
    if ($ofile) {
      $OPT_widgets[5]-&gt;insert('end', $ofile);
      $mw-&gt;update;
      return (1);
    }
    return (0);
  }
  sub show_log #--------------------------------------------------------
  {
    #called from button pressed in the main window
    my (@log,);
    
    $mw-&gt;Busy(-recurse =&gt; 1);
    warn "Displaying log\n";
    close STDERR || warn "Can't close STDERR\n$!\n";
    $mw-&gt;after(500);
    $tl1-&gt;deiconify();
    $tl1-&gt;raise();
    $txt_log-&gt;focus;
    $txt_log-&gt;delete('1.0', 'end');
    $mw-&gt;update;
    
    if (open ('FH', '&lt;', 'NewsSurfer.log')) {
      my $c = 1;
      while (my $line = (&lt;FH&gt;)) {
        chomp $line;
        if (! defined $line) { $line = '#'; }
        $line =~ s/^Net.*\)(&lt;|&gt;.*)/$1/;
        if ($line =~ m/^(?:Net::NNTP)*&gt;&gt;&gt;.*$/) {
          $txt_log-&gt;insert('end', $line . "\n", 'Blue');
        }
        elsif ($line =~ m/^&lt;&lt;&lt;.*$/) {
          $txt_log-&gt;insert('end', $line . "\n", 'Green');
        }
        elsif ($line =~ m/\bINFO.+$/) {
          $txt_log-&gt;insert('end', $line . "\n", 'White');
        }
        elsif ($line =~ m/\bERRO.+$/) {
          $txt_log-&gt;insert('end', $line . "\n", 'Red');
        }
        elsif ($line =~ m/\bWARN.+$/) {
          $txt_log-&gt;insert('end', $line . "\n", 'Yellow');
        }
        elsif ($line =~ m/\bDBUG.+$/) {
          if ($DEBUG &gt; 0) {
            $txt_log-&gt;insert('end', $line . "\n", 'Debug');
          }
        }
        elsif ($line =~ m/\bVRBS.+$/) {
          if ($DEBUG &gt; 1) {
            $txt_log-&gt;insert('end', $line . "\n", 'Verbose');
          }
        }
        elsif ($line =~ m/^\s+.+$/) {
          if ($DEBUG &gt; 1) {
            $txt_log-&gt;insert('end', $line . "\n", 'Verbose');
          }
        }
        else {
          $txt_log-&gt;insert('end', $line . "\n");
        }
        if ($c == 512) { $c = 0; $txt_log-&gt;see('end'); $mw-&gt;update; }
        $c++;
      }
      close FH || warn "Can't close log\n$!\n";
    }
    else {
      warn "Can't open log\n$!\n";
    }
    open (STDERR, '&gt;&gt;', 'NewsSurfer.log')
      || warn "Can't open log\n$!\n";
    $txt_log-&gt;see('end');
    $mw-&gt;Unbusy;
    $mw-&gt;update;
    return (1);
  }
  sub log_refresh #-----------------------------------------------------
  {
    show_log();
    return (1);
  }
  sub log_close #-------------------------------------------------------
  {
    #called from button pressed in the log window
    $tl1-&gt;withdraw;
    $mw-&gt;update;
    return (1);
  }
  sub log_save #--------------------------------------------------------
  {
    #called from button pressed in the log window
    my (@log, $sf,);
    writeLog('i', 'Saving log');
    $sf  = $tl1-&gt;getSaveFile(-title =&gt; 'Save Log',);
    
    if ($sf) {
      writeLog('w', 'The logfile has been saved');
      $mw-&gt;Busy(-recurse =&gt; 1);
      if (open ('FH', '&lt;', 'NewsSurfer.log')) {
        if (open ('LOG', '&gt;', $sf)) {
          while (my $line = (&lt;FH&gt;)) {
            chomp $line;
            print LOG $line . "\n";
          }
          close LOG || writeLog('e', "Can't close log\n$!");
        }
        else {
          writeLog('e', "Can't save log\n$!");
        }
        close FH || writeLog('e', "Can't close log\n$!");
      }
      else {
        writeLog('e', "Can't open log\n$!");
      }
      $mw-&gt;Unbusy;
      return (1);
    }
  }
  sub help #------------------------------------------------------------
  {
    #called from button pressed in the main window
    my $pod = $mw-&gt;Pod(
      -tree  =&gt; 0,
      -file  =&gt; $0,
      -title =&gt; 'NewsSurfer documentation',
    );
    #$pod-&gt;configure(-file =&gt; $0);
    return (1);
  }
  sub quit #------------------------------------------------------------
  {
    #called from button pressed in the main window
    $mw-&gt;Busy(-recurse =&gt; 1,);
    $mw-&gt;update;
    warn 'NewsSurfer has closed.  (' . localtime(time) . ")\n";
    $mw-&gt;destroy;
    return (1);
  }
  sub raise_rc_menu #---------------------------------------------------
  {
    #called from right-clicking in the main window
    my $toplevelwidget = $_[0] || 'NULL'; #required
    my $listbox        = $_[1];           #optional
    my ($x, $y) = $mw-&gt;pointerxy;
    my $height;
    
    $mw-&gt;Busy(-recurse =&gt; 1,);
    if ($listbox &amp;&amp; Exists($listbox) &amp;&amp; Exists($toplevelwidget)) {
      #a listbox was supplied
      my ($selected,);
      
      #verify widget is a listbox
      eval { $selected = $listbox-&gt;nearest($y - $listbox-&gt;rooty) };
      if (! $@) {
        #it's a listbox, make selection at xy if there is a entry
        if ($selected) {
          $listbox-&gt;selectionClear();
          $listbox-&gt;selectionSet($selected);
        }
      }
      $height = $toplevelwidget-&gt;height;
      $y -= $height;
    }
    if (Exists($toplevelwidget)) {
      $toplevelwidget-&gt;geometry('+' . $x . '+' . $y);
      $toplevelwidget-&gt;deiconify();
      $toplevelwidget-&gt;raise();
      $toplevelwidget-&gt;focus();
      $mw-&gt;update;
    }
    $mw-&gt;Unbusy;
    return (1);
  }
  sub lb2_msg_select_all #----------------------------------------------
  {
    #called from the rc menu or key binding
    my (@paths, $count, $home, $end,);
    $mw-&gt;Busy(-recurse =&gt; 1);
    
    @paths = $lb2_msg-&gt;infoChildren;
    if (@paths) {
      $count = $#paths;
      $home  = $paths[0];
      $end   = $paths[$count];
      $lb2_msg-&gt;focus;
      $lb2_msg-&gt;selectionSet($home, $end);
    }
    $mw-&gt;update;
    $mw-&gt;Unbusy;
    return (1);
  }
  sub lb2_msg_select_end #----------------------------------------------
  {
    #called from the rc menu or key binding
    my ($sel, @paths, $count, $end,);
    $sel   = $lb2_msg-&gt;selectionGet;
    @paths = $lb2_msg-&gt;infoChildren;
    $count = $#paths;
    $end   = $paths[$count];
    $lb2_msg-&gt;selectionSet($sel, $end);
    $mw-&gt;update;
    return (1);
  }
  sub lb2_msg_select_hom #----------------------------------------------
  {
    #called from the rc menu or key binding
    my ($sel, @paths, $home,);
    $sel   = $lb2_msg-&gt;selectionGet;
    @paths = $lb2_msg-&gt;infoChildren;
    $home  = $paths[0];
    $lb2_msg-&gt;selectionSet($sel, $home);
    $mw-&gt;update;
    return (1);
  }
  sub FlashButton #-----------------------------------------------------
  {
    #called during widget creation
    my $w = $_[0]; my $c1 = $_[1]; my $c2 = $_[2];
    if (! $w || ! $c1 || ! $c2) {
      return (0);
    }
    $w-&gt;bind('&lt;ButtonPress-1&gt;' =&gt; sub {
      $w-&gt;configure(-relief  =&gt; 'flat',);
      $w-&gt;configure(-fg      =&gt; $c1); $w-&gt;flash; $w-&gt;flash;
      $w-&gt;configure(-fg      =&gt; $c2);
    });
    return (1);
  }
  sub MainButtons #-----------------------------------------------------
  {
    #called during widget creation
    my $w  = $_[0] || return (0);
    my $o1 = $_[1] || return (0);
    my $width = $mw-&gt;screenwidth;
    my ($id1, $id2, $i1, $i2, $i3,);
    
    $id1 = load_image($o1);
    $id2 = load_image($o1 . '1');
    
    #warn 'id1: ' . $id1 . "\n";
    #warn 'id2: ' . $id2 . "\n";
    #if ($width &gt; 799) {                                                #&lt;-todo, resize buttons
    #  my ($scaled1, $scaled2, $imager1, $imager2,);
    #  $imager1 = Imager-&gt;new;
    #  $imager2 = Imager-&gt;new;
    #  $imager1-&gt;read(data =&gt; $id1);
    #  $imager2-&gt;read (data =&gt; $id2,);
    #  $scaled1 = $imager1-&gt;scale(scalefactor =&gt; 1.25);
    #  $scaled2 = $imager2-&gt;scale(scalefactor =&gt; 1.25);
    #  $scaled1-&gt;write(data =&gt; \$id1,);
    #  $scaled2-&gt;write(data =&gt; \$id2,);
    #}
    
    $i1 = $mw-&gt;Photo(
      -data    =&gt; $id1,
      -format  =&gt; 'bmp',
      -palette =&gt; '256',
    );
    $i2 = $mw-&gt;Photo(
      -data    =&gt; $id1,
      -format  =&gt; 'bmp',
      -palette =&gt; '64/64/64',
    );
    $i3 = $mw-&gt;Photo(
      -data   =&gt; $id2,
      -format =&gt; 'bmp',
    );
    $w-&gt;configure(-relief =&gt; 'flat', -image =&gt; $i1);
    $w-&gt;bind('&lt;Leave&gt;' =&gt; sub { $w-&gt;configure(-image =&gt; $i1); });
    $w-&gt;bind('&lt;Enter&gt;' =&gt; sub { $w-&gt;configure(-image =&gt; $i2); });
    $w-&gt;bind('&lt;ButtonPress-1&gt;' =&gt; sub {
      $w-&gt;configure(-relief =&gt; 'flat', -image =&gt; $i3);
    });
    $w-&gt;bind('&lt;ButtonRelease-1&gt;' =&gt; sub {
      $w-&gt;configure(-relief =&gt; 'flat', -image =&gt; $i1);
    });
    $mw-&gt;update;
    return (1);
  }
  sub ready #-----------------------------------------------------------
  {
    if (! defined $pb) { $pb = 0; }
    while ($pb &lt; 100) {
      $pb++;
      if ($pb % 2) { $mw-&gt;update };
    }
    $pb = 0;
    update_status('Ready');
    $mw-&gt;Unbusy;
    $mw-&gt;update;
    return (1);
  }
  sub update_status #---------------------------------------------------&lt;-redo interface
  {
    #called from various subroutines
    #called with either a status message in $txt
    #or a number followed by PROGRESSBAR (triggers progressbar update)
    #or a word followed by PROGRESSBAR (triggers progress complete)
    my $txt = $_[0] || 'NULL';
    my $opt = $_[1] || 'NULL';
    
    if ($opt eq 'PROGRESSBAR') {
      if ($txt =~ m/(^\d+)/) {
        #update status of progressbar
        for (1..$1) { $pb++; $mw-&gt;update; $mw-&gt;after(64); }
      }
      else {
        #complete and reset the progress bar
        while ($pb &lt; 100) { $pb++; $mw-&gt;update; }
        $pb = 0;
      }
    }
    elsif ($txt ne 'NULL' &amp;&amp; $opt ne 'PROGRESSBAR') {
      $sb_lab-&gt;configure(-text =&gt; '  ' . $txt);
      $mw-&gt;update;
    }
    else {
      writeLog('e',
        'Sub - update_status: ' .
        'txt [' . $txt . "]\n" .
        'opt [' . $opt . "]\n$!"
      );
      $mw-&gt;destroy;
    }
    return (1);
  }
  return (1);
}
#***********************************************************************END news_gui
sub worker #------------------------------------------------------------
{
  #called from main
  my $TID = $_[0] || 0;
  local $| = 1;
  
  while(1) {
    if ($shash{$TID}{die} == 1) {                                   #DIE
      last;
    }
    elsif ($shash{$TID}{rss} == 1) {                                #RSS
      my $xml;
      my @URLs = split (/,/, $shash{$TID}{optionCSV});
      foreach my $url (@URLs) {
        #Download XML from RSS feed
        print '='x79 . "\nFetching URL: [$url]\n" . '='x79 . "\n";
        eval { $xml = XML::FeedPP-&gt;new($url) };
        if (! $@) {
          #Parse RSS XML
          if (! parseRSS(\$xml)) {
            writeLog('e', "Problem processing URL: [$url]\n$!");
          }
        }
        else {
          writeLog('e', "Problem downloading URL: [$url]\n$!");
        }
      }
    }
    elsif ($shash{$TID}{post} == 1) {                              #POST
      #collect stringRef from sub post_post
      my $message = $shash{$TID}{optionCSV} || 'NULL';
      undef $shash{$TID}{optionCSV};
      
      #connect, post message, and disconnect
      my $nntpRef = nntpconnect();
      if ($nntpRef) {
        writeLog('i', "Posting message");
        my $ret = $$nntpRef-&gt;post([$message]);
        $$nntpRef-&gt;quit;
        #check return
        if ($ret) {
          writeLog('i', "Message posted");
        }
        else {
          writeLog('e', "Unable to post message, couldn't send");
        }
      }
      else {
        writeLog('e', "Unable to post message, couldn't connect");
      }
      #go back to sleep
      $shash{$TID}{optionCSV} = 0;
      $shash{$TID}{post}      = 0;
    }
    elsif ($shash{$TID}{decode} == 1) {                          #DECODE
      #gather files into an array ref for the decoder
      #look for any part 0 nfo files
      my (@art, @pt_files, $cvt, $nfochk, $result, $ddir,);
      dbmopen (my %OPT, 'settings', 0640)
        || writeLog('f', "Can't create settings\n$!");
      $ddir = $OPT{DDir} || './';
      dbmclose %OPT;
      
      @pt_files = glob "part*.pt";
      if (! $pt_files[0]) {
        writeLog('e', "Error while gathering part file list\n$!");
        $shash{$TID}{return}    = 0;
        $shash{$TID}{optionCSV} = 0;
        $shash{$TID}{decode}    = 0;
      }
      else {
        #load part file contents into an array for the decoder
        foreach my $partfile (@pt_files) {
          open ('PTFH', '&lt; :raw', $partfile)
            || writeLog('f', "Decoder: [$!]");
          if (! defined $nfochk &amp;&amp; $partfile eq 'part0.pt') {
            #part 0 nfo fix
            $nfochk = 1;
          }
          else {
            while (my $line = (&lt;PTFH&gt;)) { push (@art, $line); }
          }
        }
        #initialize decoder
        #neat will call the sub with the name of the file
        writeLog('i', "Decoding attachment(s)");
        $cvt = Convert::BulkDecoder-&gt;new(
          destdir =&gt; $ddir,
          tmpdir  =&gt; '.',
          force   =&gt; 1,                                                 #todo - add option
          verbose =&gt; 1,
          debug   =&gt; 1,
          crc     =&gt; 0,
          neat    =&gt; \&amp;cleanFileNames,                                  #&lt;-Test
        );
        #decode partfiles
        eval { $result = $cvt-&gt;decode(\@art) };
        if (! defined $result) { $result = 'DECODER ERROR'; }
        if ($@ || $result eq 'FAIL') {
          #decode failed
          writeLog('e', "Couldn't decode the file, [" . $result . ']');
          $shash{$TID}{return} = 0;
        }
        else {
          #decode succeded
          my ($dirname, $filename,) = 0;
          my $size = $cvt-&gt;{size} || 0;
          my $file = $cvt-&gt;{file} || 'NULL';
          writeLog('i', "Extracted [$size] bytes to file: [$file]");
          
          if ($size &amp;&amp; $file ne 'NULL') {
            #determine filename and path
            if ($file =~ m/(\b.+)\/(.+\..{3,4})/ ||
                $file =~ m/(.+)\/(.+\..{3,4})/
            ) {
              $dirname  = $1;
              $filename = $2;
              #copy any part0 nfo files found
              if (defined $nfochk &amp;&amp; $nfochk == 1) {
                #found part 0 nfo file
                if ($^O eq 'MSWin32') {
                  $file =~ s#\/#\\#g;
                  system ("copy part0.pt $file.nfo");
                  writeLog('d', "copy part0.pt $file.nfo");
                }
                else {
                  system ("cp part0.pt $file.nfo");
                  writeLog('d', "cp part0.pt $file.nfo");
                }
              }
              $shash{$TID}{return} = $dirname . '*' . $filename;
            }
            else {
              writeLog('e', 'Error while parsing filename and path');
              $shash{$TID}{return} = 0;
            }
          }
          else {
            $shash{$TID}{return} = 0;
          }
        }
      }
      #remove temporary part files
      foreach my $f (@pt_files) {
        unlink $f || writeLog('e', "Can't delete part\n$!");
      }
      #go back to sleep
      $shash{$TID}{decode} = 0;
    }
    elsif ($shash{$TID}{article} == 1) {                        #ARTICLE
      #gather and verify startup parameters
      #expects: group name, 0 or 1 (1st pt num), message id(s)*
      # * when multiple message ids are found, multipart is on
      writeLog('d', "optionCSV: [$shash{1}{optionCSV}");
      my (@options, $groupName, $firstPart, $nntpRef,);
      @options   = split (/,/, $shash{$TID}{optionCSV});
      $groupName = shift (@options);
      $firstPart = shift (@options);
      
      #connect to NNTP server
      eval { $nntpRef = nntpconnect() };
      if (! $nntpRef || ! defined $groupName || ! defined $firstPart) {
        if (! $nntpRef) {
          writeLog('e', "Couldn't connect to server");
        }
        else {
          writeLog('e', 'Invalid option in ARTICLE worker thread');
        }
        $shash{$TID}{return} = 0;
      }
      else {
        #connected, download article
        my $ok;
        if (! $options[1]) {
          #for singlepart messages
          eval { $$nntpRef-&gt;group($groupName) };
          if (defined $options[0]) {
            #create a temporary file and download the part
            my $partNumber = $firstPart;
            open ('FH', '&gt; :raw', 'part' . $partNumber . '.pt')
              || writeLog('f', $!);
            eval {
              $ok = $$nntpRef-&gt;article($options[0], *FH)
            };
            if (! $ok) {
              writeLog('i', "Retrying article download");               #&lt;-test
              eval {
                $ok = $$nntpRef-&gt;article($options[0], *FH)
              };
              if (! $ok) {
                writeLog('w', "Download failed, reconnecting");
                #download failed, re-connect and retry
                eval { $$nntpRef-&gt;quit };
                eval { $nntpRef = nntpconnect() };
                if ($nntpRef) {
                  #re-connected, retry download
                  writeLog('i', "Retrying article download");
                  eval {
                    $ok = $$nntpRef-&gt;article($options[0], *FH)
                  };
                }
                else {
                  #could not connect
                  writeLog('e', "Couldn't connect to server");
                  $shash{$TID}{return} = 0;
                  #cant download part, delete temporary part files
                  close FH || writeLog('e', "Can't close part file\n$!");
                  foreach my $p (glob "part*.pt") {
                    unlink $p || writeLog('e', "Can't delete part\n$!");
                  }
                  writeLog('e', "Unable to download article");
                  last;
                }
              }
            }
            close FH || writeLog('e', "Unable to close part file\n$!");
          }
          else {
            writeLog('e', "Article number not supplied");
          }
        }
        else {
          #for multipart messages
          my $partNumber = $firstPart;
          eval { $$nntpRef-&gt;group($groupName) };
          foreach my $i (@options) {
            #create a temporary file and download the part
            open ('FH', '&gt; :raw', 'part' . $partNumber . '.pt')
              || writeLog('f', $!);
            
            #download each part of the multipart message
            eval { $ok = $$nntpRef-&gt;article($i, *FH) };
            if (! $ok) {
              #download failed, re-connect and retry
              eval { $$nntpRef-&gt;quit };
              eval { $nntpRef = nntpconnect() };
              if ($nntpRef) {
                #re-connected
                eval { $ok = $$nntpRef-&gt;article($i, *FH) };
              }
              else {
                #could not connect
                writeLog('e', "Couldn't connect to server");
                $shash{$TID}{return} = 0;
                #cant download part, delete temporary part files
                foreach my $p (glob "part*.pt") {
                  unlink $p || writeLog('e', "Can't delete part\n$!");
                }
                writeLog('e', "Unable to download article");
                last;
              }
            }
            $partNumber++;
            if ($ok) {
              #part downloaded, try next part
              $shash{$TID}{progress} = $partNumber;
            }
            close FH || writeLog('e', "Unable to close part file\n$!");
          }
        }
        #close nntp connection and set return
        eval     { $$nntpRef-&gt;quit           };
        if ($ok) { $shash{$TID}{return} = 1; }
        else     { $shash{$TID}{return} = 0; }
      }
      #go back to sleep
      $shash{$TID}{optionCSV} = 0;
      $shash{$TID}{article}   = 0;
    }
    #elsif ($shash{$TID}{xover} == 1) {                            #XOVER
    #  my ($fMsg,$lMsg,$grp) = split (/,/, $shash{$TID}{optionCSV});
    #  my ($href, $return,);
    #  
    #  if ($fMsg &amp;&amp; $lMsg) {
    #    my @range = ($fMsg, $lMsg);
    #    my $nntpRef;
    #    eval { $nntpRef = nntpconnect() };
    #    if (! $nntpRef) {
    #      writeLog('e', "Couldn't connect to server");
    #    }
    #    else {
    #      #connected, get xover information
    #      $$nntpRef-&gt;group($grp);
    #      $href = $$nntpRef-&gt;xover(\@range);
    #    }
    #    eval { $$nntpRef-&gt;quit };
    #  }
    #  else {
    #    writeLog('e', 'Invalid range in xover worker');
    #  }
    #  
    #  #go back to sleep
    #  if ($href)  { %sHoA   = %$href; $return = 1;      }
    #  else        { $return = 0;                        }
    #  $shash{$TID}{return}  = $return;
    #  $shash{$TID}{xover}   = 0;
    #}
    elsif ($shash{$TID}{list} == 1) {                              #LIST
      my ($nntpRef, $connected,);
      
      #connect
      eval { $nntpRef = nntpconnect() };
      if (! $nntpRef) {
        #retry once
        eval { $nntpRef = nntpconnect() };
        if (! $nntpRef) { $connected = 0; }
        else            { $connected = 1; }
      }
      else { 
        $connected = 1;
      }
      
      if ($connected) {
        my (%HoA, $HoA_ref,);
        #get list of newsgroups
        eval { $HoA_ref = $$nntpRef-&gt;list() };
        if ($HoA_ref) {
          #(HoA_ref) groupname = last, first, moderated
          #pl.misc.telefonia.gsm: 0000339959 0000307277 y
          #mvis.lists.apache.talk: 0000003574 0000003322 m
          %HoA = %$HoA_ref;
          undef $HoA_ref;
        }
        eval { $$nntpRef-&gt;quit() };
        
        #create groups database
        {
          my (%groups,);
          tie %groups, 'MLDBM', 'groups', O_CREAT|O_RDWR, 0640
            || writeLog('f', $!);
          for my $groupname (keys %HoA) {
            my $articleTot = $HoA{$groupname}[0] - $HoA{$groupname}[1];
            $groups{$groupname} = $articleTot;
          }
          untie %groups;
        }
      }
      else {
        writeLog('e', "Unable to connect to server, try again");
      }
      $shash{$TID}{list} = 0;
    }
    sleep (1);
  }
  writeLog('w', 'Thread: [' . $TID . '] is closing');
  return (0);
}
sub load_image #--------------------------------------------------------
{
  #called from various subroutines, returns imagedata
  my $opt = int $_[0] || return (0);
  my $imagedata;
  if ($opt == 2) {
    $imagedata =
    'Qk1YAgAAAAAAADYAAAAoAAAACgAAABEAAAABABgAAAAAAAAAAAASCwAAEgsAAA'.
    'AAAAAAAAAA////////////////////////////////////////AAD4+Pj/////'.
    '//////////////////////////////8AAP////////////////////////////'.
    '39/f39/fj4+AAA////////////////////////////////////////AAD/////'.
    '///+/v7+/v79/f39/f3+/v7///////////8AAGZHumlKvUYvi4p0xotyzVhEkm'.
    'BFp1w8sP38/v///wAAdlfK////////9fL79fP8+vj//fz/i3LN+vn9////AABm'.
    'R7r49//4+/9JTFsXGCGvr7b///9sU7X////9/f8AAGZHuvHu/sPG1RYZKBobKx'.
    'AQFGFedGFHrPz8/f79/wAAa0+6/Pv/Xl5mAAAIq6yyJygrAAASZE6i+/v9/v7/'.
    'AAByWLv49f/R0NfLy9Dw8PStrrUHBhBRP4P///////8AAHNVv/v6/fXy+vj3/P'.
    'Lv+vHv+RcSJgUDCO/v7////wAAgGTGeV3AlX3RhGjLi3LNi3LNdlrAIiElDQsT'.
    '7+/vAAD///3///7+/f/////////////9/fz39/clJyPQ0NAAAP////////////'.
    '///////////////////////////wAA/v7+////////////////////////+/v7'.
    '////+Pj5AAD////////+/v7+/v7+/v7////////////////7/PsAAAAA';
  }
  elsif ($opt == 3) {
    $imagedata =
    'Qk1YAgAAAAAAADYAAAAoAAAACgAAABEAAAABABgAAAAAAAAAAAASCwAAEgsAAA'.
    'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcAAAAA'.
    'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
    'ICAgICAgcHBwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
    'AAARDSABAQEBAQEAAAAAAAANCRgAAAAAAAAAAGZHunZXymtQtmZHumlYmHNfqm'.
    'tRsWxSsAgHDQAAAAAAdlfKAAAAAAAACg0ECgwDBQcAAgMAZke6HBYuAAAAAABm'.
    'R7oHCAAHBAC2s6To595QUEkAAABtWKgZES0BAQAA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4t7e3t7e3tra2tLS0tLS0srKysbGxsbGxsLCwr6+vr6+vr6+vrq6ura2tra2tra2t
ra2tra2tra2tra2tra2tr6+vr6+vr6+vsLCwsbGxsbGxsrKytLS0tbW1tra2t7e3t7e3uLi4ubm5
urq6urq6urq6urq6u7u7u7u7u7u7u7u7u7u7urq6lJSUj4+PoaGhoaGhoaGhmZmZhISEsLCwtra2
tbW1tLS0tLS0s7OzsrKysbGxr6+vrq6ura2trKysrKysqqqqqqqqqqqqqampqampqampqKioqKio
qKioqKioqampqampqqqqqqqqqqqqrKysrKysra2tr6+vsLCwsbGxsrKytLS0tLS0tbW1tra2t7e3
t7e3t7e3t7e3uLi4uLi4uLi4uLi4uLi4uLi4tbW1jY2Nk5OToaGhoaGhjIyMnp6esrKysbGxsLCw
r6+vr6+vra2trKysq6urqqqqqKiop6enpqampaWlpKSkpKSkpKSko6Ojo6OjoqKioqKioqKioqKi
oqKioqKio6OjpKSkpKSkpKSkpqamp6enqKioqKioqqqqq6urra2trq6ur6+vsLCwsbGxsbGxsrKy
srKysrKys7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozq6urg4ODn5+fnJychYWFqqqqrKysq6urqqqqqamp
qKiop6enpqampKSko6OjoaGhoKCgn5+fnp6enZ2dnZ2dnJycnJycm5ubm5ubm5ubm5ubm5ubm5ub
m5ubnJycnZ2dnZ2dnp6en5+fn5+foaGhoqKipKSkpaWlpqamqKioqampqqqqqqqqq6urrKysrKys
rKysra2tra2tra2tra2tra2tra2tra2tra2tkZGRlZWVlJSUj4+PpqampqampKSkpKSko6OjoqKi
oKCgn5+fnp6enZ2dm5ubmpqamZmZmJiYl5eXl5eXlpaWlZWVlZWVlZWVlZWVlJSUlJSUlZWVlZWV
lZWVlpaWl5eXl5eXmZmZmZmZm5ubnJycnZ2dnp6eoKCgoqKioqKipKSkpKSkpaWlpqampqampqam
p6enp6enp6enp6enp6enp6enp6enp6ennZ2diYmJjIyMk5OTn5+fn5+fnZ2dnZ2dnJyc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hoaGhoKCgoKCg
jo6Oj4+PsLCwuLi4t7e3t7e3tra2tbW1tLS0s7OzsrKysbGxsbGxsLCwsLCwr6+vr6+vr6+vr6+v
r6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vsLCwsLCwsbGxsbGxsrKys7OztLS0tra2t7e3t7e3
uLi4ubm5ubm5urq6urq6urq6u7u7u7u7u7u7r6+vkJCQjo6OoaGhoaGhoaGhoaGhoKCgkZGRj4+P
t7e3ubm5uLi4t7e3t7e3tbW1tLS0s7OzsbGxsbGxsLCwr6+vr6+vrq6ura2tra2trKysrKysrKys
rKysrKysrKysrKysrKysrKysra2tra2trq6ur6+vr6+vsLCwsbGxsrKys7OztLS0tra2t7e3t7e3
uLi4ubm5urq6urq6urq6u7u7u7u7u7u7u7u7urq6lJSUj4+PoaGhoaGhoaGhmZmZhISEsLCwtra2
tbW1tLS0tLS0s7OzsrKysLCwr6+vra2trKysrKysqqqqqqqqqqqqqampqKioqKiop6enp6enp6en
p6enp6enp6enp6enqKioqKioqampqqqqqqqqq6urrKysra2trq6ur6+vsbGxsrKys7OztLS0tbW1
tra2t7e3t7e3t7e3t7e3uLi4uLi4uLi4uLi4tbW1jY2Nk5OToaGhoaGhjIyMnp6esrKysbGxsLCw
r6+vrq6ura2trKysq6urqampqKiopqampaWlpKSkpKSko6Ojo6OjoqKioaGhoaGhoaGhoaGhoaGh
oaGhoaGhoaGhoaGhoqKio6Ojo6OjpKSkpaWlpqamp6enqKioqqqqq6urrKysra2tr6+vr6+vsLCw
sbGxsrKysrKysrKys7Ozs7Ozs7Ozs7Ozs7Ozq6urg4ODn5+fnJychYWFqqqqrKysqqqqqqqqqamp
qKiopqampaWlpKSkoqKioaGhn5+fnp6enZ2dnZ2dnJycm5ubm5ubmpqampqamZmZmZmZmZmZmZmZ
mpqampqampqam5ubm5ubnJycnZ2dnp6en5+foKCgoaGho6OjpKSkpqamqKioqKioqqqqqqqqq6ur
rKysrKysrKysra2tra2tra2tra2tra2tra2tk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sbGxsbGxsbGxsbGxsLCwsLCwsLCwsLCwsLCwsLCwr6+vr6+vr6+v
r6+vr6+vr6+vr6+vrq6urq6ura2tra2tra2tra2trq6ur6+vr6+vr6+vsLCwsbGxsbGxsrKytLS0
tbW1tra2t7e3t7e3uLi4ubm5urq6urq6urq6rq6ukJCQjo6OoaGhoaGhoaGhnp6enZ2djo6Oi4uL
srKysrKysbGxsbGxsLCwsLCwr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+vrq6urq6ura2tra2tra2t
ra2trKysrKysrKysrKysrKysrKysq6urrKysrKysrKysrKysra2tr6+vr6+vsLCwsbGxsrKytLS0
tbW1tra2t7e3uLi4ubm5urq6urq6urq6urq6urq6lJSUj4+PoaGhoaGhnZ2dlpaWgYGBqqqqr6+v
r6+vrq6urKysrKysrKysqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqampqampqampqampqKio
qKioqKiop6enp6enp6enp6enp6enp6enp6enp6enqKioqampqqqqq6urrKysra2tr6+vsLCwsbGx
s7OztLS0tLS0tbW1tra2t7e3t7e3t7e3uLi4tbW1jY2Nk5OToaGhnZ2diYmJmZmZq6urqqqqqKio
qKiop6enpqampaWlpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSko6Ojo6Ojo6Ojo6Ojo6OjoqKioqKi
oaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoqKio6OjpKSkpaWlpqamp6enqKioqqqqq6urra2t
rq6ur6+vsLCwsbGxsrKysrKysrKys7Ozs7Ozq6urg4ODn5+fmJiYgYGBpKSkpaWlpKSkoqKioaGh
n5+fn5+fnp6enZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnJycnJycnJycnJycnJycnJycm5ubm5ubm5ubm5ub
mpqampqamZmZmZmZmZmZmZmZmpqam5ubm5ubnJycnZ2dnp6en5+foKCgoqKipKSkpaWlpqamqKio
qampqqqqq6urq6urrKysrKysra2tra2tra2tkZGRlZWVkJCQioqKoKCgnp6enZ2dnJycmpqam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6eYBd3azdIlA1wVoe46DQZgvffopYhnO+O03w56
2FmbflKMvkPcuei/iktk7eCizHvoml/efORbN1879E2Lnrvd2MtONMaIWXzW2K87enZHq4evduyz
M95X6d6bwiRa73sv/1kVu18/+/Z7P8r8Zo2y//78C6D9ANi/SXAufggJoPwcISzzeK8slDhPAxu4
JJ9lClOaUpIFEXM686VuBq3jjgg9SLJIbc92mpOY+whQOhWewn0NsZjE6CdA+83whgrM4QIr5j8m
EdCH/OthEPs3PwD20H9CLMv/MCUsJh6xgkiEYossKMEllQZ8JJxOobTDqCyS/+wBsZue8AREP4cg
UIb3wyH/ZnhGG5oxf2ssYhnZV4khGtCIFttfWYjYxO5ZTIl8BCID81hAJu6RikT83yhGlEH/WYgA
a/Hio+aiKElmsQEw809DKJSgF6KRhmcEZRrvR8cYvs99e6yfxBqEoAOwkI6hrNgeKUHLOvrxh7ZM
jC4j+EA/EhFdsrSTE205CXQpRomDXBIGLcgzmBgAi5askeqi6UEwQq5xYWPhg2IIQ8zlEIatPKAr
x2nGF5KxjpQI5x95iEB08WyTqGTSK3nWpGDOD4L80+YfFVPHY06wlhA0ETox1M9i8nJnmKKlSxAU
gGVRk2Pje+jrHjCABjSgZv8zq5xG4zMp6G3vcR49yWTGOc5WNkhzAOKPQ7TJQs+00j+uZCVJ1XlS
mMrElhJqUi0HusdX1rOlj6mjNqfHwk2axafptFgrIQMZhyQVQyYthc0GAE2JSrOSVs3iALbK1QZw
date9SpFNULWslJ0q2OlakUNYFGLspVmF60ZRr8l18ENbnIczSjRZGZXuMb1onS1a1sH69a4vhWu
iB2cYf3aVrZedLGMbataqQoytIkMhGZdVFY3lqPNevazoA2taFlR1dGa9rSoTe0kVcva1rr2tbCN
rWxnS9va2va2uM2tbnfL29769rfADa5wh0vc4hr3uMhNrnKXy9zmOve50I1JrnSnS93qWve62M2u
drfL3e5697vgDa94x0ve8pr3vOhNr3rXy972uve98I2vfOdL3/ra9774za9+98vf/vr3vwAOsIAH
vN8QAAA7';
  }
  return ($imagedata);
}
###########################################################DOCUMENTATION

=head1 Name

 NewsSurfer

=head1 Description

 Read/Download/Post - To/From - NNTP Newsgroups

=head1 Readme

 NewsSurfer v3.10
 
      A Threaded Perl Tk GUI based NNTP client
      Now includes discussion grouping!

=head1 Prerequisites

 Net-NNTP
 
 Date-Parse
 
 Date-Format
 
 Convert-BulkDecoder
 
 Tk

=head1 Corequisites

 Win32::Console (Optional)

=head1 OSnames

 MSWin32

 m/^((?:linu|uni)x)$/i based OS's may work ok also!

=head1 Script Categories

 News

=head1 Copyright

 NewsSurfer - Read/Download/Post - To/From - NNTP Newsgroups
 
 Copyright (C) 2004-2010 Jason David McManus
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

=head1 New features

 Discussion based message grouping:
 
      Messages are now grouped using references
      The 'marked read' indicator is now italic dark blue
      When a parent msg receives a new reply the entry is bolded blue

 Killfile support:
 
      Now you can filter posts based on the 'from' field.
      Rules you define in killfile.txt will be checked against all posts.
 
      If the 'from' field of any post matches a killfile rule entry,
      the post will be filtered and will not be displayed.
 
      Edit the file 'killfile.txt' in this programs' main directory.
      You may add one rule per line. The rules are not case sensitive.

=head1 History

 v1_00
 
      *Initial release. (Jan. 2004)
 
 v1_10
 
      *Improved Ctrl-A shortcut
      *Added Shift-End and Shift-Home shortcuts to the message display
 
 v1_20
 
      *Will no longer attempt to authenticate unless the user &amp; pass
       fields have been completed in options
      *Cosmetic improvements to Post &amp; Read functions
      *Added preformance improving option (limits message age)
 
 v1_30
 
      *Added option to open files after download (Win32 only?)
      *Message reply and post functions are faster now
      *Improved error display
 
 v1_40
 
      *Improvements to memory management
      *Added search function to groups screen
      *Added right-click menus to main window
      *Fixed a bug in the scanning multipart function
 
 v1_50
 
      *Minor GUI fixes/enhancements
      *Fixed a bug with opening file when the Dl Dir is not configured
      *Added a button to browse or ls the download directory
 
 v1_60
 
      *Optimized for Tk 804.25 beta 15
      *Some window decoration improvements
      *Added chooseDirectory function to the options page
      *Fixed a bug in grab&amp;open when opening files with 4 char ext's
      *Improved delete function and overall responsiveness
      *Speed up sorting function slightly
 
 v1_70
 
      *Added 'wrote:' line
      *Fixed grab function: when article doesnt exist on server
 
 v1_80
 
      *Disabled as many widgets as possible while groups window is open
      *Improved search function for the groups screen
      *Implemented 'quoted-printable' message parsing
      *Added ability to attach signatures
 
 v1_90
 
      *Fixed a major bug with the duplicates function
      *Fixed a bug with selecting text in the read/post screens
 
 v2_00
 
      *Removed popup progressbar, added statusbar
 
 v2_10
 
      *Added new option (limit to 5k messages per scan)
      *Added error routine for invalid logins
      *Improvements to statusbar
      *Improved speed
 
 v2_20
 
      *Fixed a subject line bug
      *Fixed a bug when all messages are older than 30 days
      *Changed error message for configure download directory
      *Added a screen to select the number of new message to download
      *Added a new function - message_load
 
 v2_30
 
      *Fixed a display bug in group unsubscribe from main screen
      *Improved groups update function (uses less memory)
      *Added a much needed new function 'Clear newsgroup'
      *Added option to beep on errors
      *Added logging option
 
 v2_40
 
      *Reworked the sort function
      *Added a time-out for the non-fatal error dialogs
      *Changed message display update from time based to count based
      *Replaced some backtick operations with 'system' ones
      *Created a subroutine for loading program images
      *Added splashscreen
      *Improved Grid
 
 v2_50
 
      *Added new functions to d/l messages dialog (all, newest)
      *Added header line for the references field
      *Improved Log and Error system
      *Improved groups/search
 
 v2_60
 
      *Added some extra error handling for some connect sequences
      *Wrapped the decode attachment process in an 'Eval'
      *Added a function to search subject headers in group
      *Configured some error messages to appear in the statusbar
      *Changed timeout from 30 to 5
      *Removed some timed mw updates
      *Improved group/search
 
 v2_80
 
      *Rolled back changes to the connection timeout values.
      *Changed right-click bindings for message hlist
      *Fixed a bug where program would freeze if there was a problem
       connecting during a post operation
      *Messages are no longer marked read if the attachment is not
      *decoded properly
 
 v2_90
 
      *Added new images for buttons (thanks!)
      *Implemented paned window for main screen
 
 v2_91
 
      *Improved error handling
      *Retries once on a bad article download
      *More efficient
 
 v3_00
 
      *Code has been re-structured
      *Some functions now use threads
      *Newsgroup storage now uses MLDBM instead of a flat file format
      *Now only using two images for each main button
      *Various other bug fixes, performance, and memory improvements
      *Disabled posting of attachments untill yEnc bugs are fixed
 
 v3_01
 
      *Fixed reply quoting (changed '&gt;' to '&gt; ')
 
 v3_02
 
      *Improved functionality of the groups subscribe window search,
       it is now possilble to search before displaying all newsgroups
      *Fixed regex character escaping in the groups subscribe window
      *Cleaned code, removed most goto's, added ready subroutine
      *Move nearly all blocking functions to a threaded model
      *Handles timeout and other network errors better
 
 v3_03
 
      *New help system
      *Added killfile support
      *Fixed handling of part 0 files in decode section
      *Fixed a bad memory leak caused by the progress bar widget
      *Implemented bug-fixes reported on comp.lang.perl.tk (thanks!)
 
 v3_10
 
      *Added a CornerBox
      *New logfile system
      *Added discussion grouping features

=head1 Notes

 xover
 
      %xover is a HoA $k is the message number on the server
 
      $xover{$k}[0] #subject   $xover{$k}[4] #references
      $xover{$k}[1] #from      $xover{$k}[5] #bytes
      $xover{$k}[2] #date      $xover{$k}[6] #lines *parts*
      $xover{$k}[3] #msg-id    $xover{$k}[7] #xref:full *read*
 
 Main data structure (1 for each subscribed group):
 
      DB Name       Structure
      -----------   ---------
      MULTIPARTDB   HoHoH
      HEADERDB      HoHoA
      RSSDB         HoHoS
 
      $mldbm{MULTIPARTDB}{SUBJECT}{PART} #Message ID
      $mldbm{HEADERDB}{MESSAGENUMBER}[0] #subject
      $mldbm{HEADERDB}{MESSAGENUMBER}[1] #from
      $mldbm{HEADERDB}{MESSAGENUMBER}[2] #date
      $mldbm{HEADERDB}{MESSAGENUMBER}[3] #message-id
      $mldbm{HEADERDB}{MESSAGENUMBER}[4] #references
      $mldbm{HEADERDB}{MESSAGENUMBER}[5] #bytes
      $mldbm{HEADERDB}{MESSAGENUMBER}[6] #lines *parts*
      $mldbm{HEADERDB}{MESSAGENUMBER}[7] #xref:full *read*
      $mldbm{HEADERDB}{MESSAGENUMBER}[8] #old message?
      $mldbm{RSSDB}{URL}                 #XML as string
 
      *Each subscribed newsgroup gets a database file (groupname.grp)
 
 Posting subroutines:
 
      [raise the post message window]
                    |
                    |
      [wait for user input]
          {press a button (Attach&amp;Send | Send)}
                            |
            --------&lt;-------|----------&gt;-----------
            | Attach&amp;Send            Send         |
            |                                     |
      [post_attach]                               |
      ^   {more attachment data? (yes | no)}      |
      |                 |                         |
      |    ------&lt;------|-----&gt;---------          |
      |    |    yes           no       |          |
      |    |                           |          |
      [post_yEnc]                  [post_send]    |
                                        |         |
                                        |         |
                    --------------------&lt;----------
                    |
                    |
      [lower the post message window]
      
      *allows for 1 attachment of &gt;= 1 part(s) per post

=head1 Todo list

=over

=item *

Expand options to include killfile editing and font/color configuration

=item *

Test the new references based discussion grouping routines

=item *

Finish integrating RSS and Email functions

=item *

Reimplement image loading interface

=item *

Fix and improve posting

=item *

Linux and Unix testing

=item *

Internationalization

=back

=head1 Caveats

=over

=item *

Install to a new directory if upgrading from version 3.0 or earlier

=item *

This is still beta software

=back

=head1 Contact

      Contact: QoSnoSpam@cpan.org
      Just remove the noSpam ;)
 
      Thank you

=cut</pre></body></html>