[exim] Local scan file descriptor

Pàgina inicial
Delete this message
Reply to this message
Autor: Rob Butler
Data:  
A: exim-users
Assumpte: [exim] Local scan file descriptor
In exim's online documentation for the local scan API
section 41.2 it says:

extern int local_scan(int fd, uschar **return_text);

The arguments are as follows:

    *fd is a file descriptor for the file that
contains the body of the message (the -D file). The
file is open for reading and writing, but updating it
is not recommended. Warning: You must not close this
file descriptor.


Why is updating the file not recommended? Will there
be any problem if the file is updated?

Here's my reason for asking. I am building an e-mail
application. The application will receive an incoming
e-mail message and then immediately send a response
back to the sender. The incoming message does not
need to be kept or delivered anywhere once the
outgoing message has been created for sending.

My thought was instead of constructing a new outgoing
message is to modify the body of the incoming message,
and re-write the delivery address to be the original
senders. The From address would also be modified to
be the applications instead of the original senders.
Once this is done of course Exim will start at the
beginning routing this message and deliver it back to
the original sender with the new message.

It this possible? Is this the best way to accomplish
my goal? If not could you suggest a better way to do
it?

Thanks in advance for your help and feedback.
Rob


        
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs