Output last event/message
There is no ability to fetch a recent event/message.
I hope this part of file mcabberrc.example of project MCabber would be enough to express what it is that I ask for.
# External command for events # You can specify a script or process to be launched when an event occurs. # Set 'events_ignore_active_window' to 1 if you don't want the script to # be run for a message to the current active window (default: 0). # # 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) # $events_command UNREAD "N x y z" (number of unread buddy buffers) # (x=attention y=muc unread buffers z=muc unread buffers with attention sign) # See sample script in contrib/ directory. #set events_command = ~/.mcabber/eventcmd # #set events_ignore_active_window = 0 # #set event_log_files = 0 #set event_log_dir = ~/.mcabber/event_files
Add a command to
gajim-remote that outputs a recent event, or, maybe, two commands, one for events and one for messages - I do not know what the difference between event and message might be.
If there is someone who is rarely appearing in an MUC and I want to be notified, in a discerned manner, of when they are joining, I would like to add a script that would be executed each time an event or message is received (I do not want a script that will be running in the background, asking
gajim-remote whether it has string y every x period, since it is inefficient and also messages might be missed by such script). Maybe I am asking here for 3 commands (event, message, exec).