[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Emailing myself pictures to a Maildir; how to extract with script?



On Sat, Sep 11, 2004 at 08:09:48PM -0400, William Ballard wrote:
> On Sat, Sep 11, 2004 at 04:41:34PM -0400, Kevin Mark wrote:
> > cell->server->smtp->procmail->[process here]->maildir->[process
> > there]->PICS
> > do you want to [process here] or [process there]?
> 
> [process there]
> 
> I already know how to write the recipies in .procmailrc which implement 
> [process here].
> 
> Each individual message is a seperate file in MAILDIR/new or MAILDIR/cur 
> which contains base64-encoded .jpg attachment.  I need to extract these 
> attachments and save them to the file system.
> 
> It's probably something super obvious but I don't know the "canonical" 
> tool for doing it.
> 
Hi WB,
as a perl junkie, I know that there is:
1)a module to read/handle reading mail documents
2)a module to read mime encoded documents
so,
mail_document->maildir_module->mime_module->jpg
-Kev
-- 

        (__)
        (oo)
  /------\/
 / |    ||
*  /\---/\
   ~~   ~~
...."Have you mooed today?"...

Attachment: signature.asc
Description: Digital signature


Reply to: