]> git.donarmstrong.com Git - bin.git/commitdiff
add some debugging information
authorDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:09:40 +0000 (07:09 +0000)
committerDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:09:40 +0000 (07:09 +0000)
delay_mail

index f9e883fbaa93d05dca65b3e17466325d173cf854..c7d1799cda10b51b2af00d920814b818731ed51e 100755 (executable)
@@ -163,7 +163,7 @@ if (exists $options{enqueue}) {
      my $email = <STDIN>;
      # rip subject out of email
      # we cheat for now; this isn't correct at all.
-     my ($subject) = $email =~ /^Subject:\s+(.+)/;
+     my ($subject) = $email =~ /^Subject:\s*(.+)/i;
      $subject = decode_rfc1522($subject);
      $subject =~ s/\n//g;
      # create a queue entry
@@ -190,6 +190,7 @@ elsif ($options{list}) {
      my @queue;
      while (defined($entry = $dir->read)) {
          #valid queue entries are entirely numeric
+         print STDERR "Dealing with $entry\n" if $DEBUG;
          last if not defined $entry;
          next if $entry !~ /^\d+$/;
          # they're also just readable files