From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 16:04:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB08016A4CE for ; Fri, 20 Aug 2004 16:04:30 +0000 (GMT) Received: from asmtp-a063f29.pas.sa.earthlink.net (asmtp-a063f29.pas.sa.earthlink.net [207.217.120.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6926643D5C for ; Fri, 20 Aug 2004 16:04:30 +0000 (GMT) (envelope-from algould@datawok.com) Received: from 22-243.lctv-b4.cablelynx.com ([24.204.22.243] helo=[192.168.63.10]) by asmtp-a063f29.pas.sa.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 4.34) id 1ByBsU-0003iP-6J; Fri, 20 Aug 2004 09:04:30 -0700 From: "Andrew L. Gould" To: freebsd-questions@freebsd.org Date: Fri, 20 Aug 2004 11:04:31 -0500 User-Agent: KMail/1.6.2 References: <20040820145136.13837.qmail@web51703.mail.yahoo.com> In-Reply-To: <20040820145136.13837.qmail@web51703.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408201104.31344.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b80818437b0e662cc78c13654b4384cb9350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.204.22.243 cc: samy lancher Subject: Re: Extract Email Attachments..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 16:04:30 -0000 On Friday 20 August 2004 09:51 am, samy lancher wrote: > Hello All, > I have a sendmail Email server on freebsd OS. I would like to know > if there is any way I can extract the attachments that come with > email and store them in a local folder. I do not want to use any MUA. > I will be getting several Emails with image attachments. I just want > to automatically extract those image attachments and store them in > local folder. Are there any third party applications or some kind of > script or maybe need some configuration on the server for this > purpose. I would really appreciate if someone could help me out. > > Thanks in advance. > Naveen. Certain scripting languages, Python for one, have email related modules. You can use these to write scripts that will extract various parts of an email. Once you write your script, I think you can get procmail to call the script so that the processing can be done when emails are initially received. (I have no personal experience doing such a task.) Best of luck, Andrew Gould