Skip to main content

Count total number of emails in queue with a specific subject line?

Comments

3 comments

  • Muhammed Fasal
    I guess this should work to get what you are expecting here: - To get the count of emails in queue with a specific subject: exiqgrep -i | awk '{print "exim -Mvh "$1}' | sh | grep "Subject:" | awk -F"Subject:" '{print $2}' | grep -c "STRING YOU WISH TO MATCH"
    - To remove the emails matches with a subject from queue: grep -lri "STRING YOU WISH TO MATCH" /var/spool/exim/ | grep input | cut -d"/" -f7 | awk -F"-" '{print $1"-"$2"-"$3}' | uniq -c | awk '{print $2}' | xargs exim -Mrm
    0
  • cPanelLauren
    Thanks @Muhammed Fasal for the helpful response! @000 let us know if that helps or if you have further questions/concerns
    0
  • 000
    Thanks @Muhammed Fasal for the helpful response! @000 let us know if that helps or if you have further questions/concerns

    The excellent help from @Muhammed Fasal it"s very well!! Thanks very much by your time :-)
    0

Please sign in to leave a comment.