Koozali.org: home of the SME Server

cron catch specific attachment from email.

Offline groyk

  • *
  • 138
  • +0/-0
cron catch specific attachment from email.
« on: November 18, 2008, 01:40:23 PM »
Hi.

How do I make a cron job that checks every 30 min. if a mailbox receives email with a specific attachment?

If email is received I need to copy the attachment to an Ibay and jun a php script that handles the file.

ex.
1. mailbox xxx@company.xx receives email with attachment yyy
2. cron runs and finds attachment yyy
3. cron copies attachment yyy to ibay
4. cron starts handle_attachment.php
5. cron deletes email if required

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: cron catch specific attachment from email.
« Reply #1 on: November 18, 2008, 09:25:47 PM »
Hi

I think you should look at procmail..

Ciao
Stefano

Offline m

  • ****
  • 276
  • +0/-0
  • Peet
Re: cron catch specific attachment from email.
« Reply #2 on: November 19, 2008, 12:55:52 AM »
or better make a qpsmtp plugin, which allows to reject the mail at the smtp gateway

Offline groyk

  • *
  • 138
  • +0/-0
Re: cron catch specific attachment from email.
« Reply #3 on: November 19, 2008, 07:42:15 AM »
or better make a qpsmtp plugin, which allows to reject the mail at the smtp gateway

Hi
How does this qpsmtp works? (Is it like a spam filter??)
Is it included in the base of SME 7?
Where do I find articles that describe my problem?