autoreply is a php filter script for xmail. It has been tested with xmail 1.21/Win32 and PHP5

autoreply is a script that allows users to configure autoreply and autoreject messages for their own mailbox.

autoreply entirely works through text mail that is sent to one's own mailbox.

eg: your name is me@mydomain, and you send 'xmailcmd!' as subject (note the exclamation mark that can be used alternatively to the colon), autoreply will send you the following message:

--snip--
xmail autoreply message

Brief Help

Valid Usage: 'xmailcmd: <command> <secret>' where the command is ...
  reject:	the message is rejected and a notification is sent.
  reply:	the message is accepted and automatically replied to. 
  secret:	the first line of the message body is taken as the user secret.
  secretsend:	the current secret for the user is sent to him. 
  filter:	if one of the filter list contains a part of the from:, no message is sent. 
  filtersend:	the current filter list for the user is sent back.
  
  replyoff, rejectoff, secretoff and filteroff:	switch off the function
  
The message body is used as message or parameter list
--snip--

This should explain most of how it's working.

every user is allowed to set his/her own secret. If no personal secret is set, the default secret is used that is configured inside the script.

the filter function expects a mail with (partial) mail addresses on each line. If a mail is received from such an address, _no_ reply or rejection message is sent

Note: This script no longer uses the php mail() function as it did in earlier versions.

Note: The script now supports html mail content.

Warning: This software is provided 'as is' in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The script is a simple filter that needs to be called with

"php anypath\\autoreply.php"    "@@FILE"	"@@FROM"	"@@RRCPT"

or on linux

"/var/lib/xmail/autoreply/autoreply.php"	"@@FILE"	"@@FROM"	"@@RRCPT"

You'll need to modify some basic configuration inside the script itself, such as the $domaintrigger.




July 15. 2005 

Martin Schmid
APS systems AG


PS: current versions shall be available on www.aps-systems.ch/xmail or www.haeschmi.ch/xmail in near future.
