Sendmail: Sort the contents of /var/spool/mqueue by subject.

/ Published in: Bash
Save to your folder(s)

Sort the contents of /var/spool/mqueue by subject and the number of times it shows.

Copy this code and paste it in your HTML
  1. find /var/spool/mqueue -type f -name 'qf*' -exec sh -c 'grep -s "Subject: " "$@" | sort -k2 | uniq -f 2 -c | sort -k1n' sh {} +

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.