mailqの出力から削除コマンドを作り出す秀マクロ

  • "/usr/sbin/postsuper -d"をコピーしておく
	setcompatiblemode 0x0F;
	searchdown "xxx@xxx.com" , regular, nocasesense, hilight;
	if( ! result )  beep;
	up 3;
	right;
	paste;
	right 10;
	insert ";";
	beginsel;
	down 3;
	backspace;
  • 整形するとこうなる
19BB22A492     1619 Fri Mar 14 08:19:57  yyyyyy@google.com
(host mail.zzzz.ne.jp[ee.ff.gg.hh] said: 450 Client host rejected: cannot find your hostname, [aa.bb.cc.dd] (in reply to RCPT TO command))
                                         xxx@xxx.com
↓
/usr/sbin/postsuper -d 19BB22A492;