From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 13:00:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59CFB1065681 for ; Fri, 29 Aug 2008 13:00:29 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id E59F58FC17 for ; Fri, 29 Aug 2008 13:00:28 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([193.31.10.34]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Fri, 29 Aug 2008 15:00:27 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m7TD0QOi011052; Fri, 29 Aug 2008 15:00:26 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Fri, 29 Aug 2008 15:00:26 +0200 From: Matthias Apitz To: Marcel Grandemange Message-ID: <20080829130026.GA10978@rebelion.Sisis.de> References: <029801c909d6$67d76330$37862990$@za.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <029801c909d6$67d76330$37862990$@za.net> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) X-OriginalArrivalTime: 29 Aug 2008 13:00:27.0140 (UTC) FILETIME=[352B0440:01C909D7] Cc: freebsd-questions@freebsd.org Subject: Re: Script To Execute command via mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2008 13:00:29 -0000 El día Friday, August 29, 2008 a las 02:54:42PM +0200, Marcel Grandemange escribió: > I have an interesting situation. > > I have a windows based sms server, this machine works in the following way. > > It watches a shared directory for txt files that must be formatted in > certain way and periodically sends them off to mobile. > > > > > > What I want to do is create a SMTP to SMS gateway. > > Easy in theory! > > Rite a script to map shared drive, ensure it's connected and write the txt > files in dir. > > However the second part I have no idea, somehow I need to watch the mbox > file of say a e-mail account called "test" > > And IF a mail arrives parse it look for a security key if exists convert to > txt file and copy to shared dir. procmail (which is in the ports) will let you do that very easy; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ We should all learn from the peoples of The Netherlands, France and Ireland. Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.