[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Probably an easy problem...
you could fetchmail the emails themselves down and then use a perl/php
script to yank the attachment out. i dont know if you can do it
directly with fetchmail as i have never used it so i am not familiar
with what all it can do aside from grabbing mail from a mailbox.
if you know perl then check out this list of cpan modules related to
email, there is probably one which will make extracting attachments easy
http://emailproject.perl.org/wiki/Category:Modules
Casey
Ken Keefe wrote:
> Anyone alive out there?
>
> Ken
>
> ---------- Forwarded message ----------
> From: *Ken Keefe* <kjkeefe@gmail.com <mailto:kjkeefe@gmail.com>>
> Date: Nov 7, 2006 10:21 AM
> Subject: Probably an easy problem...
> To: discuss@silug.org <mailto:discuss@silug.org>
>
> Here's the scenario, hopefully you guys can help me or at least point
> me in the right direction...
>
> I have an email account that is emailed pdf files on a regular basis
> and I want to have my linux box automatically (let's say, every hour)
> download that email and save the attachments to a directory (let's
> say, ~/reports/). I don't care about the body or anything else
> regarding the email, I just need to save the attachment. Any thoughts?
>
> I have been trying to get fetchmail to do this for me, but I am having
> a little trouble. I feel like this is going to be a one line command,
> but I am just missing a piece of the puzzle.
>
> Thanks in advance for the help.
>
> Ken
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.