Username Post: Monitor email replacement        (Topic#6089)
MarkT 
member

Posts: 325
07/09/04 01:44 PM - Post#6089    



Is it possible for an LUA script (acting on STMP & POP3) to
simply send a copy (unmodified) of the current message to a specified mailbox?

I would like to replace the inbuilt monitor all emails
as we are forced to have duplicate messages appearing
in the monitor mailbox.

(because vpop username and email address aren't the same, so
have to use montitor all, which means the monitor is monitored...).

Mark.
 
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
07/09/04 04:22 PM - Post#6094    


    In response to MarkT

Yep, something like:

Code:
function ProcessMessage(strMailFrom, strSubject, RecipientList, Actions, MimeStructure, MessageSize, Attachments)
table.insert(Actions.Recipients, "monitor")
return Actions, "200 OK"
end


in both POP3CLT.LUA and SMTPSVR.LUA

(Note you could probably do what you want with Download Rules and SMTP Rules as well, eg:

>+monitor<

as a rule will send a copy of the message to 'monitor'. The disadvantage is that it makes it harder to do other things with the SMTP & Download rules at the same time
Paul Smith PSCS Technical Support


 
MarkT 
member

Posts: 325
08/09/04 12:30 PM - Post#6103    


    In response to Paul_Smith

Thanks Paul,

Excellent help as ever, LUA is really
helping out here. Great stuff.

Mark.
SafSource - the web based change/version control solution


 
Icon Legend Permissions & Sharing Options Topic Options
Print Topic


3572 Views
FusionBB™ Version 3.1 Final | ©2003-2020 InteractivePHP, Inc.
Execution time: 0.275 seconds.   Total Queries: 55   Zlib Compression is on.
All times are (GMT+1). Current time is 11:01 AM
Top