Hi Voytek,
> I have a remote mail/web server that I get my mail from.
>
> I do not have any email client configured (to my knowledge)
> on this host; I have large attachements sent as email, that I
> need on the web server, what can I run against the stored
> email file to detach attachments on the remote server, to
> save me from downloading, detaching and uploading again ?
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