Hello..

As you maybe remember, i'm working on puttin the aliases/forwards into the 
database.

I wanted to implement a "pass thorugh" aliases and forwards i.e. you have 
user test@domain
and create alias test@domain pointing to user worek@domain.

Aliases are checked first so in normal scenario the mail for test@domain 
goes to worek@domain so the real user test is efectively blocked.

The pass through scheme would let me do the aliasing thing and then deliver 
the mail again to the real user.
This way we can have 2 copies of the same e-mail delivered to 2 different 
users.

This is often neede by business users of our system.

current implementation of deliver_mail() reads the descriptor 0 and then 
delivers the e-mail.

The problem is that we can not call it again...

I have a question:  can i simply fseek it back to the begining or should i 
read the whole message to a buffer earlier in the main() and then use it?

i did a lseek(0,0,SEEK_SET) but it does not work (i still have only 1 
delivery).

oops...

i've found my error:

deliver_mail() exits(100) on successful delivery... i will have to change 
that dudes. :)

Never mind..

Kris

Reply via email to