← 返回命令列表

Linux command

exiqgrep 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Example

exiqgrep -f '<[email@example.com]>'

Example

exiqgrep -i -f '<[email@example.com]>'

Example

exiqgrep -r '[email@example.com]'

Remove

exiqgrep -i -f '<[email@example.com]>' | xargs exim -Mrm

Example

exiqgrep -f '^<>$'

Example

exiqgrep -c -f '^<>$'

说明

exiqgrep is a Perl script for searching the Exim mail queue. It filters queue output by sender, recipient, age, frozen state, and other criteria. At least one selection option or -c must be given. Commonly used with exim -Mrm to remove matching messages from the queue.

参数

-f _pattern_
Match sender address
-r _pattern_
Match recipient address
-i
Display message IDs only
-c
Display count only
-o _seconds_
Match messages older than
-y _seconds_
Match messages younger than
-z
Match frozen messages only
-x
Match non-frozen messages only
-b
Brief format output
-R
Reverse output order

FAQ

What is the exiqgrep command used for?

exiqgrep is a Perl script for searching the Exim mail queue. It filters queue output by sender, recipient, age, frozen state, and other criteria. At least one selection option or -c must be given. Commonly used with exim -Mrm to remove matching messages from the queue.

How do I run a basic exiqgrep example?

Run `exiqgrep -f '<[email@example.com]>'` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _pattern_ do in exiqgrep?

Match sender address