Hold or delete message files from the PMDF queue area that contain specified substrings in their envelope From: address, Subject: header, or message content.
pmdf qclean [channel]
Command Qualifiers Defaults -content=substringNone -database-database-delete-hold-directory_tree-database-env_from=substringNone -hold-hold-match=keyword-match=AND-min_length=n-min_length=24-subject=substringNone -threads=n-nothreads-verbose-noverbose
On UNIX, privileges sufficient to read and delete files in the PMDF channel queue directory tree, as well as read and update the PMDF queue cache database, are required.
channel
Optional parameter which specifies a specific PMDF channel area to be searched for matching messages.*or?wildcard characters may be used in the channel specification.
Hold or delete message files containing specific substrings in their envelope From: address, Subject: line, or content. By default, message files are held (
-hold). Specify-deleteto instead delete matching message files. The-content,-env_from, and-subjectqualifiers are used to specify the substrings for which to search.Any combination of
-content,-env_from, and-subjectmay be specified. However, only one of each may be used. The-matchqualifier controls whether a message file must contain all (-match=AND, the default) or only one of (-match=OR) the specified substrings in order to be held or deleted. The default is-match=AND.By default, each substring to be searched for must be at least 24 bytes long (
-min_length=24). This is a safety measure: the longer the substring, the less likely the chance of false "hits". Use the-min_lengthqualifier to override this limit. Also by default, only message files identified by the queue cache database are searched (-database). Use the-directory_treequalifier to instead search all message files actually present in the channel queue directory tree.The optional channel parameter restricts the search to message files in the specified channel. The channel parameter may use
*and?wild cards.The
-threadsqualifier may be used to accelerate searching on multiprocessor systems by dividing the work amongst multiple, simultaneously running threads. To run n simultaneous searching threads, specify-threads=n. The valuenmust be in the range 1-8. The default is-nothreads.
-content=substring
-env_from=substringThe
-subject=substring-content,-env_from, and-subjectqualifiers are used to specify the substrings for which to search. Any combination of-content,-env_from, and-subjectmay be specified. However, only one of each may be used. When a combination of such qualifiers is used, the-matchqualifier controls whether the qualifiers are interpreted as further restrictions (-match=AND), or as alternatives (-match=OR).
-database(default)The
-directory_tree-databasequalifier, the default, specifies that only message files identified by the queue cache database be searched. Use the-directory_treequalifier to instead search all message files actually present in the channel queue directory tree.
-delete
-hold(default)-holdis the default and means that matching message files will be held. Specify-deleteto instead delete matching message files.The default is
-match=keyword-match=AND, meaning that any criteria specified by-content,-env_from, and-subjectqualifiers must all match in order for the current hold or delete operation to be applied. Specifying-match=ORmeans that a message will match as long as at least one such criterion matches.By default, each substring to be searched for must be at least 24 bytes long (
-min_length=n-min_length=24). This is a safety measure: the longer the substring, the less likely the chance of false "hits". Use the-min_lengthqualifier to override this limit.
-threads=nThe
-nothreads(defaults)-threadsqualifier may be used to accelerate searching on multiprocessor systems by dividing the work amongst multiple, simultaneously running threads. To runnsimultaneous searching threads, specify-threads=n. The valuenmust be an integer in the range 1-8. The default is-nothreads.
-verboseThe
-noverbose(default)-verbosequalifier may be used to request that the utility print out information about what it is doing as it operates.
#1
# pmdf qclean -subject="make money fast" -env_from="spammers.com" -min_length=12 %QM-I-QCLISTING, building a list of message files to scan from the queue cache %QM-I-SCANNING, scanning 72 message files %QM-I-SCANNED, scanned 72 message files in 3.7500 seconds (19.20 messages/second ) %QM-I-HELD, held 5 message files
#2The above UNIX example shows holding all message files in the PMDF queue area that have the string "make money fast" in the Subject: header and have the string "spammers.com" in the envelope From: address.
C:\> pmdf qclean -subject="make money fast" -env_from="spammers.com" -min_length=12 %QM-I-QCLISTING, building a list of message files to scan from the queue cache %QM-I-SCANNING, scanning 72 message files %QM-I-SCANNED, scanned 72 message files in 3.7500 seconds (19.20 messages/second ) %QM-I-HELD, held 5 message files
The above NT example shows holding all message files in the PMDF queue area that have the string "make money fast" in the Subject: header and have the string "spammers.com" in the envelope From: address.