qmHandle

17 febbraio 2024 by Roberto Puzzanghera 0 commenti

qmHandle è un semplice programma che consente di visualizzare e di gestire la coda dei messaggi.

Changelog

  • 17 febbraio 2024
    - applicata una patch per risolvere un refuso nell'uso dei parametri quando viene stampato l'help
    - unita la patch precedente con quella già usata per sostituire svc con qmailctl nei comandi stop/startqmail

Installazione

Scaricare da sourceforge e installare il binario:

cd /usr/local/src
wget https://notes.sagredo.eu/files/qmail/tar/qmhandle-1.3.2.tar.gz
wget https://notes.sagredo.eu/files/qmail/patches/qmHandle/qmhandle-1.3.2.patch
tar xzf qmhandle-1.3.2.tar.gz
chown -R root:root .
patch < qmhandle-1.3.2.patch
cp qmHandle /usr/local/bin

sei hai Debian GNU/Linux con il suo pacchetto qmail edita qmHandle e decommenta

#my ($stopqmail) = '/etc/init.d/qmail stop';

Utilizzo

# qmHandle --help

qmHandle v1.3.2
Copyright 1998-2003 Michele Beltrame

Available parameters:
  -a       : try to send queued messages now (qmail must be running)
  -l       : list message queues
  -L       : list local message queue
  -R       : list remote message queue
  -s       : show some statistics
  -mN      : display message number N
  -dN      : delete message number N
  -fsender : delete message from sender
  -F're'   : delete message from senders matching regular expression re
  -Stext   : delete all messages that have/contain text as Subject
  -h're'   : delete all messages with headers matching regular expression re (case insensitive)
  -b're'   : delete all messages with body matching regular expression re (case insensitive)
  -H're'   : delete all messages with headers matching regular expression re (case sensitive)
  -B're'   : delete all messages with body matching regular expression re (case sensitive)
  -t're'   : flag messages with recipients in regular expression 're' for earlier retry (note: this lengthens the time message can stay in queue)
  -D       : delete all messages in the queue (local and remote)
  -V       : print program version

Additional (optional) parameters:
  -c       : display colored output
  -N       : list message numbers only
           (to be used either with -l, -L or -R)

You can view/delete multiple message i.e. -d123 -v456 -d567

 

Aggiungi un commento

Ultimi commenti
Articoli recenti

RSS feeds