Hello, Any server will have "filter" facilities which can send all incoming emails into a script.
One question is a strategic one: with IMAP your script will check the mailbox when it wants to; with a filter, your script will be called when the email comes in. Depending on how you do things, one or the other way may more reliable and/or convenient. Either way is pretty easy to code up (although with IMAP you'll want a scripting language with an IMAP library, I don't think bash will do). Jiri Sent from Samsung Mobile 0413 183 117 -------- Original message -------- From: Voytek <li...@sbt.net.au> Date: 05/12/2013 21:32 (GMT+10:00) To: slug@slug.org.au Subject: [SLUG] Script to retrieve/process email content? I occasionally get an email that contains a link, I'd like to 'click' on that link soon after the email arrives, I think... I could wget the link, I think it could work, but I need some imap mail client? that could run on the server to become aware of such email, parse it for link, and wget it..? Or is there a better way to do this? The email comes through postfix/dovecot virtual domain if that matters Thanks, Voytek -- Sent from Kaiten Mail. Please excuse my brevity. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html