bin/qqtool.pl

filter: Statementstmt 12.5% 24 / 192 Branchbran 0.8% 1 / 120 Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 41.1% 7 / 17 Podpod n/a totaltotal 10.1% 34 / 335 SCAR 80.4
CC
63
Cov
9%
message_delete
272.0
messages_delete
110.0
messages_list
90.0
CRAP 3099.1
« lib/Mail/Toaster/FreeBSD.pm ↑ Summary lib/Mail/Toaster/Ezmlm.pm »
1 #!/usr/local/bin/perl
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use vars qw/ $opt_a $opt_h $opt_q $opt_s $opt_v $remotes $locals /;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use English;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Getopt::Std;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 getopts('a:h:q:s:v');
13  
14 1 print " Qmail Queue Tool v6.0.0\n\n";
15 1 ▶print "Only the root user has permission to read the queue.
Branch: 1 branch
BranchTrueFalseTotal
if $main::UID != 0 1 0 1
Condition50%2/4
$main::UID != 0 && (print("Only the root user has permission to read the queue.\nYou are not root, goodbye!\n") && exit 0)
!ll
01
print "Only the root user has permission to read the queue.\nYou are not root, goodbye!\n" and exit 0
!ll
01
MC/DC0%0/2
$main::UID != 0 && (print("Only the root user has permission to read the queue.\nYou are not root, goodbye!\n") && exit 0)
$main::UID != 0 print "Only the root user has permission to read the queue.\nYou are not root, goodbye!\n"
Truth table0%0/3
A && B
A= $main::UID != 0B= print "Only the root user has permission to read the queue.\nYou are not root, goodbye!\n"
ABresult
0X0
100
111
16 You are not root, goodbye!\n"
17 and exit 0 if $UID != 0;
18  
19 0 ▶pod2usage() if ! $opt_a;
Branch: 1 branch
BranchTrueFalseTotal
unless $main::opt_a 0 0 0
20  
21 # Make sure the qmail queue directory is set correctly
22 0 my $qdir = '/var/qmail/queue';
23 0 ▶exit 0 unless -d $qdir;
Branch: 1 branch
BranchTrueFalseTotal
unless -d $qdir 0 0 0
24  
25 # if a queue is specified, only check it.
26 0 ▶print "$0, getting list of messages in delivery queues..." if $opt_v;
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
27 0 ▶if ($opt_q) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::opt_q) { } 0 0 0
28 0 ▶ $opt_q eq "remote" ? $remotes = messages_get("remote")
Branch: 2 branches
BranchTrueFalseTotal
$main::opt_q eq 'remote' ? : 0 0 0
$main::opt_q eq 'local' ? : 0 0 0
29 : $opt_q eq "local" ? $locals = messages_get("local")
30 : die "invalid queue selected!";
31 }
32 else {
33 # otherwise, check both queues
34 0 $remotes = messages_get("remote");
35 0 $locals = messages_get("local");
36 0 print "\n";
37 }
38  
39 0 ▶print "done.\n" if $opt_v;
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
40  
41 0 ▶ $opt_a eq "list" ? messages_list ( $remotes, $locals )
Branch: 3 branches
BranchTrueFalseTotal
$main::opt_a eq 'list' ? : 0 0 0
$main::opt_a eq 'delete' ? : 0 0 0
$main::opt_a eq 'expire' ? : 0 0 0
42 : $opt_a eq "delete" ? messages_delete( $remotes, $locals )
43 : $opt_a eq "expire" ? messages_expire( $remotes, $locals )
44 : pod2usage()
45 ;
46  
47 0 exit 0;
48  
49 # -----------------------------------------------------------------------------
50 # Subroutines. No user servicable parts below this line! #
51 # -----------------------------------------------------------------------------
52  
53 sub message_delete {
54 0 ▶ my ( $tree, $id ) = @_;
Subroutine message_delete: not called CC=16 SCAR=56.1
55  
56 0 print "Deleting message $id...";
57  
58 # for each message id, check each of the queues and remove it.
59 0 ▶ if ( -f "$qdir/local/$tree/$id" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$qdir/local/$tree/$id") 0 0 0
60 0 ▶ print "\t deleting file $qdir/local/$tree/$id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
61 0 ▶ unlink "$qdir/local/$tree/$id" or die "couldn't delete: $!";
Branch: 1 branch
BranchTrueFalseTotal
unlink "$qdir/local/$tree/$id" or die "couldn't delete: $!" 0 0 0
62 }
63  
64 0 ▶ if ( -f "$qdir/remote/$tree/$id" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$qdir/remote/$tree/$id") 0 0 0
65 0 ▶ print "\t deleting file $qdir/remote/$tree/$id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
66 0 ▶ unlink "$qdir/remote/$tree/$id" or die "couldn't delete: $!";
Branch: 1 branch
BranchTrueFalseTotal
unlink "$qdir/remote/$tree/$id" or die "couldn't delete: $!" 0 0 0
67 }
68  
69 0 ▶ if ( -f "$qdir/info/$tree/$id" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$qdir/info/$tree/$id") 0 0 0
70 0 ▶ print "\t deleting file $qdir/info/$tree/$id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
71 0 ▶ unlink "$qdir/info/$tree/$id" or die "couldn't delete: $!";
Branch: 1 branch
BranchTrueFalseTotal
unlink "$qdir/info/$tree/$id" or die "couldn't delete: $!" 0 0 0
72 }
73  
74 0 ▶ if ( -f "$qdir/mess/$tree/$id" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$qdir/mess/$tree/$id") 0 0 0
75 0 ▶ print "\t deleting file $qdir/mess/$tree/$id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
76 0 ▶ unlink "$qdir/mess/$tree/$id" or die "couldn't delete: $!";
Branch: 1 branch
BranchTrueFalseTotal
unlink "$qdir/mess/$tree/$id" or die "couldn't delete: $!" 0 0 0
77 }
78  
79 0 ▶ if ( -f "$qdir/bounce/$id" ) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f "$qdir/bounce/$id") 0 0 0
80 0 ▶ print "\t deleting file $qdir/bounce/$id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
81 0 ▶ unlink "$qdir/bounce/$id" or die "couldn't delete: $!";
Branch: 1 branch
BranchTrueFalseTotal
unlink "$qdir/bounce/$id" or die "couldn't delete: $!" 0 0 0
82 }
83  
84 0 print "done.\n";
85 }
86  
87 sub messages_delete {
88  
89 0 ▶ my $svc_dir = '/var/qmail/control/qmail-smtpd';
Subroutine messages_delete: not called CC=10 SCAR=47.0
90 0 ▶ if ( ! -d $svc_dir ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (-d $svc_dir) 0 0 0
91 0 warn "The service directory does not exist: $svc_dir";
92 0 return;
93 }
94 0 warn "checking control dir $svc_dir, ok";
95  
96 0 my $r = send_signal('-d');
97 0 ▶ die "qmail-send wouldn't die!\n" if ($r);
Branch: 1 branch
BranchTrueFalseTotal
if $r 0 0 0
98  
99 # we'll get passed an array of the local, remote, or both queues
100 0 foreach my $q (@_) {
101 0 foreach my $hash (@$q) {
102 0 my $header = headers_get( $hash->{'tree'}, $hash->{'num'} );
103  
104 0 ▶ unless ($opt_s) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($main::opt_s) 0 0 0
105 0 message_delete( $hash->{'tree'}, $hash->{'num'} );
106 0 next;
107 }
108  
109 0 ▶ if ($opt_h) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::opt_h) { } 0 0 0
110 0 ▶ if ( $header->{$opt_h} =~ /$opt_s/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{$main::opt_h} =~ /$main::opt_s/) 0 0 0
111 0 message_delete( $hash->{'tree'}, $hash->{'num'} );
112 }
113 }
114 else {
115 0 foreach my $key ( keys %$header ) {
116 0 ▶ if ( $header->{$key} =~ /$opt_s/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{$key} =~ /$main::opt_s/) 0 0 0
117 0 message_delete( $hash->{'tree'}, $hash->{'num'} );
118 }
119 }
120 }
121 }
122 }
123  
124 0 send_signal('-u');
125 }
126  
127 sub message_expire {
128 0 ▶ my ($file) = @_;
Subroutine message_expire: not called CC=1 SCAR=6.9
129  
130 # set $ago to 8 days old.
131 0 my $ago = time - 8 * 24 * 60 * 60;
132  
133 # alter the timestamp of the file to 8 days ago.
134 0 utime $ago, $ago, $file;
135 0 print "Expired $file\n";
136 }
137  
138 sub messages_expire {
139  
140 0 ▶ foreach my $q (@_) {
Subroutine messages_expire: not called CC=8 SCAR=42.8
141 0 foreach my $hash (@$q) {
142 0 my $header = headers_get( $hash->{'tree'}, $hash->{'num'} );
143 0 my $id = "$hash->{'tree'}/$hash->{'num'}";
144  
145 0 ▶ unless ($opt_s) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($main::opt_s) 0 0 0
146 0 message_expire("$qdir/info/$id");
147 0 next;
148 }
149  
150 0 ▶ if ($opt_h) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::opt_h) { } 0 0 0
151 0 ▶ if ( $header->{$opt_h} =~ /$opt_s/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{$main::opt_h} =~ /$main::opt_s/) 0 0 0
152 0 message_expire("$qdir/info/$id");
153 }
154 }
155 else {
156 0 foreach my $key ( keys %$header ) {
157 0 ▶ if ( $header->{$key} =~ /$opt_s/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{$key} =~ /$main::opt_s/) 0 0 0
158 0 message_expire("$qdir/info/$id");
159 }
160 }
161 }
162 }
163 }
164  
165 0 system "qmailctl doqueue";
166  
167 0 print "NOTICE: Expiring the messages does not remove them from the queue.
168 It merely alters their expiration time. The messages will be removed from
169 the queue after qmail attempts to deliver them one more time.
170
171 I've already told qmail to start that process so be patient while qmail
172 is processing the queue. This might be a good time to check the value of
173 /var/qmail/control/concurrencyremote and verify its value is reasonable
174 for your site.\n\n";
175  
176 =head2 Message Expiration
177  
178 Expiring messages does not remove them from the queue. It merely alters their expiration time. The messages will be removed from the queue after qmail attempts to deliver them one last time.
179  
180 =cut
181  
182 }
183  
184 sub messages_list {
185  
186 QUEUE:
187 0 ▶ foreach my $queue (@_) {
Subroutine messages_list: not called CC=9 SCAR=45.0
188  
189 # skip to the next queue if it's empty
190 0 ▶ next QUEUE if ! $_[0];
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0] 0 0 0
191  
192 #print "message $queue starting\n";
193 0 foreach my $hash (@$queue) {
194  
195 #use Data::Dumper; print Dumper($hash);
196 0 my $header = headers_get( $hash->{'tree'}, $hash->{'num'} );
197 0 my $id = "$hash->{'tree'}/$hash->{'num'}";
198 0 print "id: $id\n";
199  
200 0 ▶ unless ($opt_s) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($main::opt_s) 0 0 0
201 0 message_print( $id, $header );
202 0 next;
203 }
204  
205 0 ▶ if ($opt_h) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::opt_h) { } 0 0 0
206 message_print( $id, $header )
207 0 ▶ if ( $header->{$opt_h} =~ /$opt_s/ );
Branch: 1 branch
BranchTrueFalseTotal
if $header->{$main::opt_h} =~ /$main::opt_s/ 0 0 0
208 }
209 else {
210 0 foreach my $key ( keys %$header ) {
211 0 ▶ if ( $header->{$key} =~ /$opt_s/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{$key} =~ /$main::opt_s/) 0 0 0
212 0 message_print( $id, $header );
213 0 exit;
214 }
215 }
216 }
217 }
218 }
219 }
220  
221 sub message_print {
222  
223 0 ▶ my ( $id, $header ) = @_;
Subroutine message_print: not called CC=3 SCAR=24.8
224  
225 0 print "message # $id ";
226 0 print "To: $header->{'To'}\n";
227 0 print "From: $header->{'From'}\n";
228 0 print "Subject: $header->{'Subject'}\n";
229  
230 0 ▶ if ($opt_v) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::opt_v) 0 0 0
231 0 ▶ if ( $header->{'CC'} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($header->{"CC"}) 0 0 0
232 0 print "CC: $header->{'CC'}\n";
233 }
234 0 print "Date: $header->{'Date'}\n";
235 0 my $rp = `head -n1 "$qdir/info/$id"`;
236 0 print "Return Path: $rp\n";
237 }
238  
239 0 print "\n";
240 }
241  
242 sub headers_get {
243  
244 0 ▶ my ( $tree, $id ) = @_;
Subroutine headers_get: not called CC=6 SCAR=37.4
245 0 my %hash;
246  
247 0 my ($FILE, $header);
248  
249 # a better way to read in the headers
250 # from http://perl.plover.com/lp/Spam.html
251 0 ▶ if ( open $FILE, '<', "$qdir/mess/$tree/$id" )
Branch: 1 branch
BranchTrueFalseTotal
if (open $FILE, "<", "$qdir/mess/$tree/$id") 0 0 0
252 {
253 0 local $/ = ""; # enable localized slurp mode
254 0 $header = <$FILE>; # read in the message headers
255 0 undef $/; # reset it back to normal
256 #$body = <STDIN>;
257 };
258  
259 0 foreach my $line ( split /\n/, $header ) {
260 #print "$line\n"; sleep 1;
261 0 ▶ if ( $line =~ /^([a-zA-Z\-]*):\s+(.*?)$/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($line =~ /^([a-zA-Z\-]*):\s+(.*?)$/) { } 0 0 0
262 0 ▶ print "header: $line\n" if $opt_v;
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
263 0 $hash{$1} = $2;
264 }
265 else {
266 0 ▶ print "body: $line\n" if $opt_v;
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
267 }
268 }
269 0 return \%hash;
270 }
271  
272 sub messages_get {
273  
274 0 ▶ my ($qsubdir) = @_;
Subroutine messages_get: not called CC=8 SCAR=42.8
275 0 my $queue = "$qdir/$qsubdir"; # /var/qmail/queue/[local|remote]
276  
277 0 my ( @messages, $up1dir, $id, $bucket, $queu );
278  
279 0 ▶ unless ( -e $queue ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (-e $queue) 0 0 0
280 0 print "ERROR: queue $queue does not exist!\n";
281 0 return 0;
282 }
283 0 ▶ unless ( -d $queue ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (-d $queue) 0 0 0
284 0 print "ERROR: queue $queue is not a directory!\n";
285 0 return 0;
286 }
287  
288 0 ▶ unless ( -r $queue ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (-r $queue) 0 0 0
289 0 print "ERROR: queue $queue is not readable by you!\n";
290 0 return 0;
291 }
292  
293 # eache queue has "buckets" within it that we need to iterate over
294 0 foreach my $queue_buckets ( get_dir_files( $queue ) ) {
295  
296 # within each bucket is files that contain the email address we
297 # are trying to deliver to.
298  
299 0 foreach my $file ( get_dir_files( $queue_buckets ) ) {
300  
301 # id is the message id
302 0 ($id, $up1dir) = fileparse($file); chop $up1dir;
303 0 ($bucket, $up1dir) = fileparse($up1dir); chop $up1dir;
304 0 ($queu, $up1dir) = fileparse($up1dir);
305  
306 0 ▶ print "messages_get: id: $id\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
307  
308 0 my %message_details = (
309 num => $id,
310 file => $file,
311 tree => $bucket,
312 queu => $queu
313 );
314 0 push @messages, \%message_details;
315  
316 0 ▶ print "messages_get: file : $file\n" if ($opt_v);
Branch: 1 branch
BranchTrueFalseTotal
if $main::opt_v 0 0 0
317 }
318 }
319 0 my $count = @messages;
320 0 print "$qsubdir has $count messages\n";
321  
322 0 return \@messages;
323 }
324  
325 sub send_signal {
326 0 ▶ my $signal = shift;
Subroutine send_signal: not called CC=7 SCAR=40.3
327  
328 0 my $svc = '/usr/local/bin/svc';
329 0 my $svstat = '/usr/local/bin/svstat';
330  
331 0 my $qcontrol = '/var/qmail/supervise/qmail-send';
332  
333 0 ▶ if ( ! $qcontrol) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($qcontrol) 0 0 0
334 0 warn "the service directory $qcontrol is missing! Giving up.";
335 0 return;
336 }
337  
338 0 ▶ if ($UID != 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::UID != 0) 0 0 0
339 0 warn "Only root can control supervised daemons, and you aren't root!";
340 0 return;
341 };
342  
343 # send qmail-send a TERM signal
344 0 system "$svc $signal $qcontrol";
345  
346 # loop up to a hundred seconds waiting for qmail-send to exit
347 0 foreach my $i ( 1 .. 100 ) {
348 0 my $r = `$svstat $qcontrol`;
349 0 chomp $r;
350 0 ▶ if ( $r =~ /^.*:\sdown\s[0-9]*\sseconds/ ) {
Branch: 2 branches
BranchTrueFalseTotal
if ($r =~ /^.*:\sdown\s[0-9]*\sseconds/) { } 0 0 0
elsif ($r =~ /supervise not running/) { } 0 0 0
351 0 print "Yay, we're down!\n";
352 0 return;
353 }
354 elsif ( $r =~ /supervise not running/ ) {
355 0 print "Yay, we're down!\n";
356 0 return;
357 }
358 else {
359  
360 # if more than 10 seconds passes, lets kill off the qmail-remote
361 # processes that are forcing us to wait.
362  
363 0 ▶ if ( $i > 10 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($i > 10) 0 0 0
364 0 system "killall qmail-remote qmail-send";
365 }
366 }
367 0 sleep 1;
368 }
369 0 return 1;
370 }
371  
372 sub get_dir_files {
373 0 ▶ my $dir = shift;
Subroutine get_dir_files: not called CC=4 SCAR=30.0
374 0 my @files;
375  
376 0 ▶ opendir D, $dir or do {
Branch: 1 branch
BranchTrueFalseTotal
opendir D, $dir or do { warn "couldn't open ${dir}: $!"; return } 0 0 0
377 0 warn "couldn't open $dir: $!";
378 0 return;
379 };
380  
381 0 ▶ while ( defined( my $f = readdir(D) ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined(my $f = readdir D)) 0 0 0
382 0 ▶ next if $f =~ /^\.\.?$/;
Branch: 1 branch
BranchTrueFalseTotal
if $f =~ /^\.\.?$/ 0 0 0
383 0 push @files, "$dir/$f";
384 }
385  
386 0 closedir(D);
387  
388 0 return @files;
389 }
390  
391 1;
392 __END__
393 sub {}
394  
395 =head1 NAME
396  
397 qqtool.pl - A tool for viewing and purging messages from a qmail queue
398  
399  
400 =head1 SYNOPSIS
401  
402 -a action (delete, expire, list)
403 -h header to match (From, To, Subject, Date)
404 -q queue to search (local/remote)
405 -s search (pattern to search for)
406 -v verbose
407
408 If no -h is specified, then the pattern is searched for in any header.
409 If no -q is specified, then both queues are searched.
410  
411 To list messages in queue from matt:
412 qqtool.pl -a list -s matt -h From
413  
414 To list messages in queue with string \"foo\" in the headers:
415 qqtool.pl -a list -s foo
416  
417  
418 =head1 DESCRIPTION
419  
420 Qmail Queue Tool (qqtool.pl)
421  
422 This program will allow you to search and view messages in your qmail queue. It will also allow you to remove them, via expiration or deletion. It was written by Matt Simerson for the toaster users on mail-toaster@simerson.net
423  
424 ChangeLog - http://www.tnpi.net/internet/mail/qqtool/changelog.shtml
425  
426  
427 =head1 INSTALL
428  
429 Download Mail::Toaster from http://mail-toaster.org/Mail-Toaster.tar.gz
430  
431 fetch Mail-Toaster.tar.gz
432 tar -xzf Mail-Toaster.tar.gz
433 cd Mail-Toaster-x.xx
434 perl Makefile.PL
435 make install
436 rehash
437  
438 Run the script without any parameters and it will show you a menu of options.
439  
440 qqtool.pl
441  
442 =head2 Sample Output
443  
444 # qqtool.pl
445 Qmail Queue Tool v 1.9
446  
447 -a action (delete, expire, list)
448 -h header to match (From, To, Subject, Date)
449 -q queue to search (local/remote)
450 -s search (pattern to search for)
451 -v verbose
452  
453 If no -h is specified, then the pattern is searched for in any header. If no -q is specified, then both queues are searched.
454  
455 To list messages in queue from matt:
456  
457 ./Mail-Toaster/qqtool.pl -a list -s matt -h From
458  
459 To list messages in queue with string "foo" in the headers:
460  
461 ./Mail-Toaster/qqtool.pl -a list -s foo
462  
463  
464 =head2 User Preferences
465  
466 There is one settings you can alter:
467  
468 $qdir is the path to your qmail queue
469  
470 If you aren't using the default (/var/qmail/queue), edit qqtool.pl and adjust it.
471  
472  
473  
474 =head1 AUTHOR
475  
476 Matt Simerson <matt@tnpi.net>
477  
478  
479 =head1 CREDITS
480  
481 Idea based on mailRemove.py by Dru Nelson <dru@redwoodsoft.com>, ideas borrowed from qmHandle by Michele Beltrame <mick@io.com>
482  
483 Community funding was contributed by the following mail-toaster@simerson.net mailing list subscribers:
484  
485 erik erik at microcontroller.nl (organizer)
486 Rick Romero rick at valeoinc.com
487 Chris Eaton Chris.Eaton at med.ge.com
488 Marius Kirschner marius at agoron.com
489 J. Vicente Carrasco carvay at teleline.es
490 Chris Odell chris at redstarnetworks.net
491 Pat Hayes pat at pathayes.net
492 Dixon Cole dixon at levee.net
493 Randy Meyer rjmeyer at humbleguys.net
494 kristian kristian at waveit.com
495 Michael Andreasen michael at subwire.dk (beer)
496 Nathan Nieblas nnieblas at microtosh.net
497 Randy Jordan ctech at pcwarp.com
498  
499  
500 =head1 BUGS
501  
502 Report to author. Patches welcome.
503  
504  
505 =head1 TODO
506  
507 In list mode, when showing messages in the queue, show which addresses delivery has failed for, so you know exactly why a message is still in the queue (useful for mailing lists with many recipients)
508  
509 Interactive mode - step through messages offering to delete/expire/skip each
510  
511 Clean mode - Leave qmail down after stopping it, useful for multiple invocations
512  
513 Write the messages into a "inactive" queue before deleting them.
514  
515 Ability to restore messages from "inactive" to the real queue.
516  
517  
518 =head1 SEE ALSO
519  
520 http://www.mail-toaster.org/
521  
522  
523 =head1 COPYRIGHT
524  
525 Copyright 2003-2013, The Network People, Inc. All Rights Reserved.
526  
527 =cut
« lib/Mail/Toaster/FreeBSD.pm ↑ Summary lib/Mail/Toaster/Ezmlm.pm »