Guest User

http://unix.stackexchange.com/questions/167430/

a guest
Nov 12th, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.30 KB | None | 0 0
  1. tripleee@there:~$ procmail -m VERBOSE=yes /tmp/dot.procmailrc </dev/null
  2. procmail: [4374] Wed Nov 12 19:34:22 2014
  3. procmail: Rcfile: "/tmp/dot.procmailrc"
  4. procmail: Assigning "MAILDIR=/home/tripleee"
  5. procmail: Assigning "SHELL=/bin/sh"
  6. procmail: Assigning "DEFAULT=/dev/null"
  7. procmail: No match on "larry"
  8. procmail: Assigning "LASTFOLDER=/dev/null"
  9. procmail: Opening "/dev/null"
  10.   Folder: /dev/null                                                           0
  11.  
  12. tripleee@there:~$ procmail -m VERBOSE=yes /tmp/dot.procmailrc <<HERE
  13. > From: me
  14. > To: larry
  15. > Subject: so the To: header will match on the regex condition
  16. >
  17. > Here we go.
  18. > HERE
  19. procmail: [4386] Wed Nov 12 19:34:48 2014
  20. procmail: Rcfile: "/tmp/dot.procmailrc"
  21. procmail: Assigning "MAILDIR=/home/tripleee"
  22. procmail: Assigning "SHELL=/bin/sh"
  23. procmail: Assigning "DEFAULT=/dev/null"
  24. procmail: Match on "larry"
  25. procmail: Executing "sleep,10"
  26. procmail: [4386] Wed Nov 12 19:34:58 2014
  27. procmail: Match on "sleep 10"
  28. procmail: Assigning "LASTFOLDER=/dev/null"
  29. procmail: Opening "/dev/null"
  30.  Subject: so the To: header will match on the regex condition
  31.   Folder: /dev/null                                                          93
  32.  
  33. tripleee@there:~$ cat /tmp/dot.procmailrc
  34. SHELL=/bin/sh
  35. DEFAULT=/dev/null
  36.  
  37. :0
  38. * larry
  39. * ? sleep 10
  40. { }
Add Comment
Please, Sign In to add comment