メンテナンス・トラブルシュート - メールサーバ - qmHandle - 番号だけ取得したい


クラウディア 


1. 概要
2. 状況
3. 取得

1. 概要

 とりあえず、以下を読んでくだされ。

2. 状況

 「qmHabdle」を以下で、使用して。

qmHandle -l
 下記の結果が表示されるとき。

6051845 (16, 16/6051845)
  Return-path:
  From: MAILER-DAEMON@ns.sing.ne.jp
  To: account-update@jilfei.shop
  Subject: failure notice
  Date: 26 Jun 2025 03:28:27 +0900
  Size: 12434 bytes

・・・	略	・・・

6051885 (10, 10/6051885)
  Return-path:
  From: MAILER-DAEMON@ns.sing.ne.jp
  To: account-update@jilfei.shop
  Subject: failure notice
  Date: 26 Jun 2025 07:41:14 +0900
  Size: 11739 bytes

Total messages: 28
Messages with local recipients: 0
Messages with remote recipients: 28
Messages with bounces: 0
Messages in preprocess: 0
 実際に欲しいのは、キューの番号だけであるとき。  キューの番号のみ取得するオプションが見当たらないように思えるのです。

3. 取得

 「grep」と組み合わせて、下記のように実行すると。

qmHandle -l | grep "("
 下記の結果が得られます。

6019606 (0, 0/6019606)

・・・	略	・・・

6051848 (19, 19/6051848)

earthcar(アースカー)