diff -Nur smeserver-qmHandle-1.4/root/usr/bin/qmHandle.altqmail smeserver-qmHandle-1.4/root/usr/bin/qmHandle --- smeserver-qmHandle-1.4/root/usr/bin/qmHandle.altqmail 2016-03-17 04:59:22.000000000 -0400 +++ smeserver-qmHandle-1.4/root/usr/bin/qmHandle 2017-07-10 15:07:43.728170805 -0400 @@ -20,6 +20,9 @@ my ($queue) = '/var/qmail/queue/'; my ($bigtodo) = (-d "${queue}todo/0") ? 0 : 1; # 1 means no big-todo +my ($altqueue) = '/var/service/altqmail/root/var/qmail/queue/'; +my ($altbigtodo) = (-d "${altqueue}todo/0") ? 0 : 1; # 1 means no big-todo + ##### # If your system has got automated command to start/stop qmail, then # enter them here. @@ -33,6 +36,9 @@ my ($stopqmail) = '/usr/bin/sv -v down qmail'; my ($startqmail) = '/usr/bin/sv -v up qmail'; +my ($stopaltqmail) = '/usr/bin/sv -v down altqmail'; +my ($startaltqmail) = '/usr/bin/sv -v up altqmail'; + # While this is if you have a Debian GNU/Linux with its qmail package #my ($stopqmail) = '/etc/init.d/qmail stop'; #my ($startqmail) = '/etc/init.d/qmail start'; @@ -52,7 +58,8 @@ # Enter here the system command which returns qmail PID. The following # should work on most Unixes: #my ($pidcmd) = 'pidof qmail-send'; -my ($pidcmd) = '/sbin/pidof qmail-send'; +my ($pidcmd) = '/sbin/pidof /var/qmail/bin/qmail-send'; +my ($altpidcmd) = '/sbin/pidof /var/service/alqmail/root/var/qmail/bin/qmail-send'; #################### USER CONFIGURATION END #################### @@ -70,6 +77,7 @@ foreach my $arg (@ARGV) { SWITCH: { + $arg eq '-X' and do { $queue=$altqueue; $bigtodo =$altbigtodo; $stopqmail=$stopaltqmail; $startqmail=$startaltqmail; $pidcmd=$altpidcmd; last SWITCH; }; $arg eq '-a' and do { push @actions, [\&SendMsgs]; last SWITCH; }; $arg eq '-l' and do { push @actions, [\&ListMsg, 'A']; last SWITCH; }; $arg eq '-L' and do { push @actions, [\&ListMsg, 'L']; last SWITCH; }; @@ -847,6 +855,7 @@ print " -c : display colored output\n"; print " -N : list message numbers only\n"; print " (to be used either with -l, -L or -R)\n"; + print " -X : do the same but for smeserver-altqmail contrib\n"; print "\n"; print "You can view/delete multiple message i.e. -d123 -v456 -d567\n\n"; exit;