sms-gateway

2001-03-03 Thread Martin Kos

hi folks!

i need to set up a domain that works like this:
if i send an email to number@smshost, a script should be started and the
"number" used as a parameter for this script. how should i set up my
.qmail-file ? i have no idea with this one?? thanks for help

 Martin

-- 
 http://www.kos.li/ [EMAIL PROTECTED]  +41-76-384-93-33
   ICQ# 13556143
  Say NO to HTML in mail and news
  Proudly running Debian GNU/Linux. See http://www.debian.org/




Re: sms-gateway

2001-03-03 Thread Frank Tegtmeyer

> "number" used as a parameter for this script. how should i set up my
> .qmail-file ? i have no idea with this one?? thanks for help

Read the man page for qmail-command (type "man qmail-command" - just to be 
sure ...).

Regards, Frank 



Re: sms-gateway

2001-03-03 Thread Martin Kos

On Sat, 3 Mar 2001, Frank Tegtmeyer wrote:

> Read the man page for qmail-command (type "man qmail-command" - just to be
> sure ...).
ops.. ok i've found now the thing with the "LOCAL"-paramter. but i have
still a problem, i don't need only the data from LOCAL .. i need to add an
@ to the end of the paramter.

like userxyz@domain

LOCAL is userxyz

but i need
userxyz@

how can i do this?

greets
 Martin
-- 
 http://www.kos.li/ [EMAIL PROTECTED]  +41-76-384-93-33
   ICQ# 13556143
  Say NO to HTML in mail and news
  Proudly running Debian GNU/Linux. See http://www.debian.org/




Re: sms-gateway

2001-03-03 Thread Frank Tegtmeyer

> ops.. ok i've found now the thing with the "LOCAL"-paramter.

If you want to build a "one for all" script this is not sufficient.
You need to catch the addresses with a .qmail-something-default
file and then you must use the DEFAULT environment variable.


> still a problem, i don't need only the data from LOCAL .. i need to add an
> @ to the end of the paramter.
> how can i do this?

How about

| my-sms-gateway-script "$DEFAULT@"

in the .qmail-something-default file?

Regards, Frank 



Re: sms-gateway

2001-03-03 Thread Martin Kos

On Sat, 3 Mar 2001, Frank Tegtmeyer wrote:

> If you want to build a "one for all" script this is not sufficient.
> You need to catch the addresses with a .qmail-something-default
> file and then you must use the DEFAULT environment variable.
i know that it wouldn't work, but it's okay as long as i send only to one
user/number in one mail... that's enough for me ;-)

> How about
> | my-sms-gateway-script "$DEFAULT@"
> in the .qmail-something-default file?
wow...yeah... that works just fine!

thank you very much for the help !

-Martin

-- 
 http://www.kos.li/ [EMAIL PROTECTED]  +41-76-384-93-33
   ICQ# 13556143
  Say NO to HTML in mail and news
  Proudly running Debian GNU/Linux. See http://www.debian.org/