для подробностей читай доку
# External command for events
# You can specify a script or process to be launched when an event occurs.
#
# If 'event_log_files' is set, a file is created and contains the body of
# the message (incoming messages only); the file name is the last parameter.
# If you enable this, you can specify the directory mcabber will use to
# create these messages with the 'event_log_dir' variable (default is the
# system temp dir, or MCABBERTMPDIR environment variable). Please note
# that mcabber won't delete these files, it's your script's job.
#
# The command is called the following way:
# $events_command MSG IN jabber@id [file] (when receiving a message)
# $events_command MSG OUT jabber@id (when sending a message)
# $events_command MSG MUC room_id [file] (when receiving a MUC message)
# $events_command STATUS X jabber@id (new buddy status is X)
# See sample script in contrib/ directory.
#set events_command = /home/mikael/.mcabber/eventcmd
#
#set event_log_files = 0
#set event_log_dir = /home/mikael/.mcabber/event_files
Вот я чегото не пойму почему консольные программы делают такими изолированными от внешнего мира, ведь неудобно же когда охота часть присланного сообщения сохранить(отдать другой программе) или часть какогото файла нужно переслать?
# FIFO
# mcabber can create a FIFO named pipe and listen to this pipe for commands.
# Default: disabled.
# Set 'fifo_hide_commands' to 1 if you don't want to see the FIFO commands
# in the log window (they will still be written to the tracelog file).
# When FIFO is configured, you can turn it off and on in real time with
# the 'fifo_ignore' option (default: 0). When set to 1, the FIFO input is
# still read but it is discarded.
set fifo_name = ~/.mcabber/mcabber.fifo
set fifo_hide_commands = 0
set fifo_ignore = 0
Теперь можно:
echo "command ..." > ~/.mcabber/mcabber.fifo
Кстати так же можно и из входящих сообщения выдрать кусок нужно только покопаться в history или сделать event скрипт который будет складывать все сообщения куда то, но это изврат.
А хотелось бы что нить наподобии mutt где для редактирования писма вызывается внешняя программа и входящие письма тоже можно передать внешнему редактору(программе).
PS: Если конечно это все есть то глубоко извиняюсь.