如何在 qmhandle 中使用通配符

如何在 qmhandle 中使用通配符

我想使用 qmhandle 刪除基於其中一個選擇器中間的文字的訊息。例如:

qmhandle -Sfailure*

將刪除主題以「失敗」開頭的所有訊息。但是,如果我想刪除主題包含「通知」的所有郵件,我找不到方法來做到這一點。

qmhandle -S*notice*

不起作用。

有沒有辦法在 qmhandle 中使用前導通配符?

答案1

使用引號。工作範例:

./qmHandle -S"failure notice"
./qmHandle -S"notice"
./qmHandle -S"Undelivered Mail Returned to Sender"

  -Stext : delete all messages that have/contain text as Subject

預設情況下,您不需要 * 它搜尋子字串。

相關內容