Username Post: Send to "Assistant" if msg is below a certain size        (Topic#6934)
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
02/11/04 12:56 PM - Post#6934    



The attached script (POP3CLT.LUA) will send a copy of a message to a specified address if it is below a certain size.

If you have incoming SMTP, simply rename it to SMTPSVR.LUA.

Place the file in the VPOP3 folder, making sure you do not overwrite any existing file with the same name.

Note - due to a newly discovered bug in 2.1.0e (and 2.1.1) and earlier, the target user must be a local address. If you want a remote address, create a distribution list with the remote address in it, then make this script send a copy to the distribution list.

The first two lines of the script configure it.
  • MaxSize sets the maximum size (in bytes) of messages to be forwarded (note that this includes the message header, and any other 'control' parts of the message, not just the visible text).
  • assistants is a table of local usernames -> assistants. Note that, in this script, you can not have multiple 'assistants' for a specific local username.
   Attachment
 
topprint 
stranger

Posts: 4
06/11/04 07:59 PM - Post#7017    


    In response to Paul_Smith

Dear Paul. Thank you for this helpful script. Just a couple of points I need to clarify to get it work:

1) Running 2.1.0c It is to a remote address so I set up a distribution list called FORWARDTOIAN and put the remote address in it.
2) I tried changing the Assistant (currently his remote email address) to FORWARDTOIAN but it says 'The assistant does not exist locally' and won't take it.
3) I have substituted (bob=bob2) to (farnham=FORWARDTOIAN)[where farnham is main local user, FORWARDTOIAN is assistant to get a copy]
is this correct?

You can tell I am new to all this!
PS: check out 'clientcopia.com' for stupid things customers say!

Many Thanks

Andrew
 
Paul_Smith 
Administrator

Posts: 6279
Paul_Smith
08/11/04 09:43 AM - Post#7021    


    In response to topprint

Quote:

Dear Paul. Thank you for this helpful script. Just a couple of points I need to clarify to get it work:

1) Running 2.1.0c It is to a remote address so I set up a distribution list called FORWARDTOIAN and put the remote address in it.



Correct
Quote:

2) I tried changing the Assistant (currently his remote email address) to FORWARDTOIAN but it says 'The assistant does not exist locally' and won't take it.



You shouldn't set that anyway - you don't want to use VPOP3's built in 'assistant' function as that will forward ALL messages to the assistant. So leave the 'assistant' box blank
Quote:

3) I have substituted (bob=bob2) to (farnham=FORWARDTOIAN)[where farnham is main local user, FORWARDTOIAN is assistant to get a copy]
is this correct?



Yes
Paul Smith PSCS Technical Support


 
Icon Legend Permissions & Sharing Options Topic Options
Print Topic


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