#!/bin/sh #----------------------------------------------------------------------------- # /var/install/bin/vmail-modules-mailhandling # # Copyright (c) 2006 Jens Vehlhaber # # Creation: 2006-08-18 jv # Last Update: $Id: vmail-modules-mailhandling 6653 2006-05-22 18:54:11Z jv $ # # 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. #----------------------------------------------------------------------------- #include eislib . /var/install/include/eislib case "$1" in qlist) clrhome mecho -info "List of messages that are in the mail queue:" mailq anykey ;; qflush) clrhome mecho -info "Flush all e-mails and show mail queue:" /usr/sbin/postfix flush sleep 1 mailq anykey ;; qhandle) /usr/local/postfix/pfqueue -b postfix2 -q 1 ;; esac ### ------------------------------------------------------------------------- exit 0