Decode and store certain attachments
Don Knott
dknott123 at gmail.com
Fri Mar 30 05:43:02 CEST 2007
Metamail was frustrating me cause it was too interactive.
Finally after much Googling, I found a perl script called mimedecode that
did what I needed and worked well from procmail.
http://search.cpan.org/dist/ppt/bin/mimedecode
I had tried your idea to fetch the file from the quarantine and that would
have probably worked had I not found the perl script.
Thanks for the help.
On 3/29/07, Glenn Steen <glenn.steen at gmail.com> wrote:
>
> On 29/03/07, Glenn Steen <glenn.steen at gmail.com> wrote:
> > On 29/03/07, Don Knott <dknott123 at gmail.com> wrote:
> > > Hello-
> > >
> > > I would like to decode certain attachment types to a particular
> address. I
> > > get messages with .DBF file attachments that I need to decode and
> extract to
> > > a directory to be processed (imported into a DB) later by a cron job.
> > >
> > > I am struggling with procmail & metamail to do it but not having much
> luck.
> > > So far its too interactive. Googling only seems to find stuff about
> encoding
> > > from scripts, not decoding.
> > >
> > > Can I do this with a ruleset in Mailscanner?
> > >
> > > Any assistance would be most appreciated.
> >
> > Apart from doing something in a custom function, I can't see any
> > reasonable way of doing it in MailScanner, and one could well question
> > whether constructing a custom function for this is reasonable:-).
> >
> Just had a thought.... If you _disallow_ .dbf files in filename rules,
> you'd get it quarantined _and decoded_ as a Bad Filename .... Perhaps
> usable?
>
> Cheers
> --
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
> --
> 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!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20070329/fb18636a/attachment.html
More information about the MailScanner
mailing list