[PHP] 404 handler

2001-01-22 Thread Dieter Kneffel

Currently I use customized pages for 404 error handling. 
Problem is, even if my HTML page is sent, the header still 
contains the '404 not found' 

How can I avoid an '404 not found' header to be sent? 
I want a normal page to show up without having sent 
the usuall 404 header. 

Thanks,

dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP makes sexy!

2001-01-11 Thread Dieter Kneffel

WreckRman2 schrieb:
> 
> On all my domains if an account/email doesn't exist it forwards to my root
> account. You can still see who it was sent to and everything... Domain
> Aliasing or somthing...

How can you see it? The header not always gives you all 
information. To parse the header doesn't work if e.g. the 
email is sent to multiple receipients or as Bcc. I also got
some emails where this information was completely missing. 

It works only as long as there is only one To: receipient 
and no Bcc or other stuff... 

Thanks, 

dk


> 
> -Original Message-
> From: Dieter Kneffel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 11:28 AM
> To: Michael Kimsal
> Cc: Bryne Jørg Vidar; php-general
> Subject: Re: [PHP] PHP makes sexy!
> 
> Oh, ok - that was a misunderstanding on my side! Of course
> it all goes to one account. Well, not really but instead of
> a real account it is piped directly into the script...
> 
> But the problem still remains: If I am doing it this way, I
> never get to knoe the real receipient. Is there really no
> way to get the raw data? Perhaps in a similar manner as it
> works for UUCP???
> 
> Thanks a lot!
> 
> dk
> 
> Michael Kimsal schrieb:
> >
> > But you SHOULD know what DOMAIN it's going to -
> >
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
> > can all go to one account.  It's not a case of setting up
> > individual usernames to point to one account - mail for
> > the whole domain could/should be routed to the one account.
> >
> > [EMAIL PROTECTED]
> > would still go to the one account, get processed, etc.  If the
> > processing script finds it's an invalid 'address', it can
> > do what it likes.
> >
> > Dieter Kneffel wrote:
> >
> > > Bryne Jørg Vidar wrote:
> > > >
> > > > If you set it up so that every incoming mail to your domain ends up in
> one
> > > > account, ...
> > >
> > > Well, just this is my problem: I don't have an account for every
> > > possible address. I don't know the address yet before it arrives
> > > at our server!
> > >
> > > - dk
> > >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP makes sexy!

2001-01-11 Thread Dieter Kneffel


Oh, ok - that was a misunderstanding on my side! Of course
it all goes to one account. Well, not really but instead of 
a real account it is piped directly into the script... 

But the problem still remains: If I am doing it this way, I 
never get to knoe the real receipient. Is there really no
way to get the raw data? Perhaps in a similar manner as it
works for UUCP???

Thanks a lot!

dk


Michael Kimsal schrieb:
> 
> But you SHOULD know what DOMAIN it's going to -
> 
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 
> can all go to one account.  It's not a case of setting up
> individual usernames to point to one account - mail for
> the whole domain could/should be routed to the one account.
> 
> [EMAIL PROTECTED]
> would still go to the one account, get processed, etc.  If the
> processing script finds it's an invalid 'address', it can
> do what it likes.
> 
> Dieter Kneffel wrote:
> 
> > Bryne Jørg Vidar wrote:
> > >
> > > If you set it up so that every incoming mail to your domain ends up in one
> > > account, ...
> >
> > Well, just this is my problem: I don't have an account for every
> > possible address. I don't know the address yet before it arrives
> > at our server!
> >
> > - dk
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
dieter kneffel
[cto | business development]
--
http://wap4.com| tel:+49 9187 905 955
http://mopilot.com | fax:+49 9187 904 124
mail:[EMAIL PROTECTED] | mobile: +49 170 2376 394
Mobile Applications For A Portable Internet.
---
This email is confidential and intended solely for the use of
the individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of WAP4.COM.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.
If you have received this email in error, please notify WAP4.COM
at +49.9187.905.955 or send an email to [EMAIL PROTECTED]
Thank You

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP makes sexy!

2001-01-11 Thread Dieter Kneffel

Bryne Jørg Vidar wrote:
> 
> If you set it up so that every incoming mail to your domain ends up in one
> account, ...

Well, just this is my problem: I don't have an account for every 
possible address. I don't know the address yet before it arrives
at our server!

- dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP makes sexy!

2001-01-10 Thread Dieter Kneffel

Well, now that I finally got your attention, you perhaps
might be able to help me! 

Just wondering why nobody ansered yet: Is my
question to hard to understand or is the issue
to complicated???

--- original message ---

Please help! Perhaps you have an idea what to do:

I want to get information directly from sendmail,
like the body of the message and, very important,
the receipients address.

So if someone sends an email to [EMAIL PROTECTED]
I want to see who it was sent to.

Currently I am using a script that is triggered
by an alias in /etc/aliases. Problem here is, I
only get the header but no more information. This
script isn't intended for one single user but for
a whole domain, purpose is for messaging. So I
really don't want to create a login for every possible
name as I don't know the names before. You have
to think of this like a short messaging service
where you send a message to [EMAIL PROTECTED]
with 0123456789 beeing the phone number of the
subscriber.
The above mentioned script gets the emails' contents
from stdin but fails if e.g. the mail is sent as
a blind copy (BCC) or if multiple receipients are
listed in the header!

Do you have an idea for me? I was thinking about
the mailertable, to do something similar as you
do when you set up an UUCP account for a whole
domain, but I don't know where I can interface.

So, any ideas are highly appreciated!

Thanks,

dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HELP HELP! PLEASE! Interfacing EMail to PHP

2001-01-10 Thread Dieter Kneffel

> Please help! Perhaps you have an idea what to do:
> 
> I want to get information directly from sendmail,
> like the body of the message and, very important,
> the receipients address.
> 
> So if someone sends an email to [EMAIL PROTECTED]
> I want to see who it was sent to.
> 
> Currently I am using a script that is triggered
> by an alias in /etc/aliases. Problem here is, I
> only get the header but no more information. This
> script isn't intended for one single user but for
> a whole domain, purpose is for messaging. So I
> really don't want to create a login for every possible
> name as I don't know the names before. You have
> to think of this like a short messaging service
> where you send a message to [EMAIL PROTECTED]
> with 0123456789 beeing the phone number of the
> subscriber.
> The above mentioned script gets the emails' contents
> from stdin but fails if e.g. the mail is sent as
> a blind copy (BCC) or if multiple receipients are
> listed in the header!
> 
> Do you have an idea for me? I was thinking about
> the mailertable, to do something similar as you
> do when you set up an UUCP account for a whole
> domain, but I don't know where I can interface.
> 
> So, any ideas are highly appreciated!
> 
> Thanks,
> 
> dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] HELP! PLEASE! Interfacing EMail to PHP

2001-01-09 Thread Dieter Kneffel

Please help! Perhaps you have an idea what to do: 

I want to get information directly from sendmail, 
like the body of the message and, very important, 
the receipients address. 

So if someone sends an email to [EMAIL PROTECTED] 
I want to see who it was sent to. 

Currently I am using a script that is triggered
by an alias in /etc/aliases. Problem here is, I
only get the header but no more information. This
script isn't intended for one single user but for
a whole domain, purpose is for messaging. So I 
really don't want to create a login for every possible
name as I don't know the names before. You have
to think of this like a short messaging service
where you send a message to [EMAIL PROTECTED]
with 0123456789 beeing the phone number of the 
subscriber. 
The above mentioned script gets the emails' contents
from stdin but fails if e.g. the mail is sent as
a blind copy (BCC) or if multiple receipients are 
listed in the header!

Do you have an idea for me? I was thinking about
the mailertable, to do something similar as you
do when you set up an UUCP account for a whole
domain, but I don't know where I can interface.

So, any ideas are highly appreciated! 

Thanks, 

dk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]