Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2008 15:00:26 +0200
From:      Matthias Apitz <matthias.apitz@oclc.org>
To:        Marcel Grandemange <thavinci@thavinci.za.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Script To Execute command via mail
Message-ID:  <20080829130026.GA10978@rebelion.Sisis.de>
In-Reply-To: <029801c909d6$67d76330$37862990$@za.net>
References:  <029801c909d6$67d76330$37862990$@za.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <matthias.apitz@oclc.org> - 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080829130026.GA10978>