root/tags/autoreply-1_02/auto-reply/licq_autoreply.conf

Revision 2211, 1.5 kB (checked in by graham, 8 years ago)

Added two new options, FailOnExitCode? and AbortDeleteOnExitCode? which
allows the reply to be aborted if the exit code of the program is non-zero.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# Sample ICQ autoreplyer configuration file
2# Edit and copy to ~/.licq
3
4[Reply]
5# The program to run for output to send in the message.
6# "talkback" might be any program or script.
7Program = talkback
8
9# This is a string which will be parsed for user % symbols
10# and then appended to the above command.
11# This example passes the uin and then the alias in quotes
12# So the final command might be:
13#   talkback -u 3456789 -a 'coolguy'
14# WARNING: be careful passing the alias, name etc as they could
15#          contain exploits such as "evil_alias; rm -rf ~".
16#          Always quote anything that could contain text.
17Arguments = -u %u -a '%a'
18
19# This flag tells the plugin whether or not the command
20# expects the incoming message as standard input
21# If set to 1 then the program will be fed the incoming
22# message to standard input.
23PassMessage = 0
24
25# If this is set, then the exit code of the command will
26# be used to determine if the message should be sent or
27# not.  A non-zero code will cause the reply to be aborted.
28FailOnExitCode = 0
29
30# This value is used if the above is set and the exit code
31# is non zero.  If set then a bad exit code will not delete
32# the relevant message.  If not set then the event will be
33# erased even if the command exit code is non-zero.
34AbortDeleteOnExitCode = 1
35
36
37# Here is a simple example which will bounce the event
38# right back to the user:
39#
40# Program = cat
41# Arguments =
42# PassMessage = 1
43#
44#
45# Here is an example which simply sends a fortune back to
46# the user:
47#
48# Program = /usr/games/fortune
49# Arguments =
50# PassMessage = 0
51#
Note: See TracBrowser for help on using the browser.