<quote who="Roger Barnes">
it seems I don't have
# munpack
bash: munpack: command not found
though, I have mmencode and metamail if these are any good to me ?
I can easily find the desired file in say:
/home/voytek/Maildir/cur
# ls -l 10963298*
-rw------- 1 voytek voytek 2015969 Sep 28 10:04
1096329840.V302I1c860a.koala.sbt.net.au:2,RS
I've read the email already, so, it can go, but, I'd like to detach the
1.9 MB PDF, as it needs to end up on this server, anyhow
so, I would like to be able, every so often, to process a mail file as to
detach the attached file(s)
this email contains,like:
....
------=_NextPart_001_0081_01C4A541.B01D1610--
------=_NextPart_000_0080_01C4A541.B01D1610
Content-Type: application/pdf;
name="TARGI 2005.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="TARGI 2005.pdf"
.....
this is not for some automated processing, but, an ocassional comman line
detach of a known source email file
> Not knowing much about your setup, I can only give an example of what I do
> using procmail and the mpack package...
>
> If subject contains "blah", pipe the email through munpack, saving any
> attachments to a directory within the web root:
>
> :0 c
> * ^Subject:.*blah
> | munpack -f -q -C /var/www/mywebroot/attachments
>
>
> Removing the attachment, as opposed to just saving it, may prove more
> difficult, but if you're not interested in the email anymore, you could
> /dev/null it.
>
> The crux of that is the munpack, how and when the emails get to that point
> depends on what you _do_ have on your server.
>
> Hope that helps,
> - Rog
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
--
Voytek
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html