Extracting Attachments

Alex Neuman van der Hans alex at rtpty.com
Wed Feb 18 16:26:36 GMT 2009


Could this be done more simply using a procmail recipe?



On Feb 18, 2009, at 7:18 AM, Mark Wold <mark.wold at gmail.com> wrote:

> This looks like I may be able to use this to get at my attachments.
>
> Can anyone tell me this... Are the functions that are in the perl  
> scripts in /usr/lib/MailScanner/MailScanner, available to any custom  
> function that I place in /usr/lib/MailScanner/MailScanner/ 
> CustomFunctions?
>
> Thanks again,
> Mark
>
>  >Mark Wold wrote:
> >> I have a client that wants to email me PDF files so that I can  
> convert them
> >> to TIFF images and then forward them along. They want the process  
> to work
> >> 24/7. So instead of having a user who's job it is to grab the  
> attachments
> >> and perform the work, I would like to see if I can get  
> MailScanner to watch
> >> for emails coming into a specific user, extract and store the  
> attachments to
> >> a predefined directory in the system, and then move on to other  
> messages. I
> >> can easily then takes the PDF and perform the conversions and  
> forward it on.
> >>
> >> Does anyone know if I can do this extracting with MailScanner?
> >>
> >> Thanks,
> >> Mark
> >>
> >>
> >
> >You can do this with a Custom Function.
> >See /usr/lib/MailScanner/
> >MailScanner/CustomFunctions
> >and see /usr/lib/MailScanner/MailScanner/Message.pm (location on my
> >system may be different than yours)
> >
> >MailScanner does this currently with word docs for example:
> >Message.pm: my @docfiles =
> >MailScanner::Antiword::FindDocFiles($this->{entity});
> >
> >So it should be doable!
> >
> >Ken
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!


More information about the MailScanner mailing list