USAGE: qmanip --src={queue} --dest={queue} --match={rexexp} [--test] [--verbose] qmanip --src={queue} --match={rexexp} --unlink [--test] [--verbose] DESCRIPTION: qmanip allows arbitrary matching on a queue entry's envelope and headers. You specify perl-like regular expressions to match lines in the qf* files or df* files. If no "match" option is supplied, all messages match. Continued lines in the qf data are collapsed onto one line for convenience during matching. Matching messages will have all associated files in the queue moved to the specified destination or, with the "unlink" option, will be unlinked. OPTIONS: --src, -s specify source directory where queue files are --dest, -d specify destination ("move to") directory --unlink, -u delete matching files instead of moving them --test, -t do not really move or unlink files (implies verbose) (still does file locking) --verbose, -v print messages about what qmanip is doing --help, -h show this help --match, -m specify a match for the qf* file's info that will be used to select which files to move --bodymatch, -b specify a match for the df* file's info that will be used to select which files to move (if the qf* match wasn't specified or was successful) EXAMPLES: Testing before wacking a big queue: qmanip --src=/var/spool/mqueue/ --dest=/tmp/destqueue \ --match='H\?x\?Full-Name: Ronald McDonald' --test You can also match the body of the message (this one also matches on the sender): qmanip --src=/tmp/tmpqueue/ --dest=/tmp/destqueue \ --match='^S' --bodymatch='love tryst' Like qtool, you can delete selected messages instead of moving them: qmanip --src=/tmp/tmpqueue \ --match='H\?x\?Full-Name: Ronald McDonald' --unlink --verbose