- buff = purple_markup_strip_html(buffer);
- //printf("\nHarvie received: %s: %s\n", who, buff); //debug
- //purple_conv_im_send(purple_conversation_get_im_data(conv), ":-*"); //debug
-
- setenv("PURPLE_FROM", who, 1);
- setenv("PURPLE_MSG", buff, 1);
-
-
+ //Export variables to environment
+ setenv(ENV_PREFIX "ACTION", "IM", 1); //what happend: im, chat, show setting dialog, event, etc...
+ setenv(ENV_PREFIX "MSG", message, 1); //text of the message
+ setenv(ENV_PREFIX "PROTOCOL", protocol_id, 1); //protocol used to deliver the message. eg.: xmpp, irc,...
+ setenv(ENV_PREFIX "R_NAME", who, 1); //ID of remote user - "buddy"
+ setenv(ENV_PREFIX "R_GROUP", from_group, 1); //group which contains that buddy OR empty string
+ setenv(ENV_PREFIX "R_ALIAS", remote_alias, 1); //buddy's alias, server alias, contact alias, username OR empty string
+ setenv(ENV_PREFIX "R_STATUS", r_status_id, 1); //unique ID of remote user's status. eg.: available, away,...
+ setenv(ENV_PREFIX "R_STATUS_MSG", r_status_msg, 1); //status message set by your buddy
+ setenv(ENV_PREFIX "L_NAME", local_name, 1); //ID of local user
+ setenv(ENV_PREFIX "L_ALIAS", local_alias, 1); //Alias of local user OR empty string
+ setenv(ENV_PREFIX "L_STATUS", status_id, 1); //unique ID of local user's status. eg.: available, away,...
+ setenv(ENV_PREFIX "L_STATUS_MSG", status_msg, 1); //status message set by local user
+
+ //Launch job on background