Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] pop filtering

From: balayo:mindspring at: 14-Feb-2001 6:53

hey guys, I'd like to filter my mail, according to address, as it comes off of the server. Jeff posted this script some time ago, but it's for use with something like sendmail or exim, and I've never been able to get it working. How easy would it be to convert this thing to pop? ; #!/usr/local/bin/rebol -qws ; REBOL [ ; Title: "Mail filter" ; ] ; ; stdin: copy system/ports/input ; message: import-email stdin ; ; foreach [item file][ ; "[list--rebol--com]" %rebol-box ; "[docbook--lists--oasis-open--org]" %doc-box ; ][ ; if find item message/to [ ; write/append file stdin ; exit ; ] ; ] ; write/append %default-box stdin ; ; quit Thanks... -- Loving every minute of it. -tom