I thought this would be simple, but I've been at it for hours and don't understand. I wanted procmail to pipe new emails to uudeview and automatically decode jpg attachments to a folder.
It ALMOST works, except it will only decode the second-to-last email, after a new one comes in. Example: I send myself a test image, nothing, the second i send another image, the FIRST one decodes, and the new one doesn't, until i send another one, and so forth.
Any idea what could be causing this? On a side note, though less crucial, It seems to decode ALL previous emails again and again, because the timestamps keep becoming the same. The ultimate goal is the newest jpg emailed will update on an apache webserver.
~/.procmailrc
Code:
PATH=/bin:/usr/bin:/usr/local/bin
MAILDIR=/var/mail
DEFAULT=/var/mail/me
SHELL=/bin/sh
:0
* ^To:.*me@mydomain.com
* ^From:.*my@gmail.com
| uudeview +e .jpg -p /home/me/attach -i /var/mail/me