Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    Roanoke, VA, US
    Posts
    390

    exim command line question

    I would like to delete all pending mail in my mail queue that contains the string "foofoo".  I know the command to delete everything is exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}'| shHow would I amend this for just the string "foofoo"?

     

    Thanks!

  2. #2
    Join Date
    Jan 2003
    Location
    Roanoke, VA, US
    Posts
    390
    n/m, i got it...


    grep -lir "variable string here" /var/spool/exim/input | xargs rm -fv

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •