<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Michael Weis wrote:
<blockquote cite="mid:47FB3A63.2040602@meta.net" type="cite">Hello
everyone,
  <br>
  <br>
we are planing to create an email-account to which
  <br>
only mails with attachments will be send.
  <br>
  <br>
I have the job to extract this attachments from
  <br>
the mail and handle them
  <br>
(save, print, archive)
  <br>
  <br>
So far so good, but I have no idea
  <br>
how to get the attachments to a disk.
  <br>
  <br>
I know mailscanner does this while scanning
  <br>
for viruses (right?).
  <br>
  <br>
So how can I tell mailscanner to just save
  <br>
attachments from a certain user's emails ?
  <br>
(no problem if they were scanned before)
  <br>
  <br>
I searched the mailing-list-archive
  <br>
but it seemed that nobody has to do this
  <br>
before.
  <br>
  <br>
  <br>
Greetings and thanks in advance
  <br>
  <br>
  <br>
Michael
  <br>
  <br>
</blockquote>
I have used a combination of a procmail recipe and the oh so sweet tool
<b>ripmime</b> (<a class="moz-txt-link-freetext" href="http://www.pldaniels.com/ripmime/">http://www.pldaniels.com/ripmime/</a>) to auto extract
attachments from mail in a sendmail environment. (should work with
other MTAs.) With a simple bash script triggered by the procmail
recipe, you can easily 'rip out' attachments and do what ever to it
(save, print, archive) within the script, with no need to monkey around
with your mailscanner setup whatsoever.<br>
<br>
Hope this helps!<br>
Greg.<br>
<br>
</body>
<br />
--<br />
<br />
This email message and any document accompanying it may contain information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited.
<p />
NOTICE TO PERSONS SUBJECT TO UNITED STATES TAXATION:<br />
DISCLOSURE UNDER TREASURY CIRCULAR 230:<br />
Any tax advice included in this written or electronic communication was not intended or written to be used, and it cannot be used by the taxpayer, for the purpose of avoiding any penalties that may be imposed on the taxpayer by any governmental taxing authority or agency.  This written or electronic communication does not represent legal advice.  Persons in need of a legal opinion should seek competent counsel.<br />
</html>