Skip to content

Instantly share code, notes, and snippets.

View mweibel's full-sized avatar

Michael Weibel mweibel

View GitHub Profile
@mweibel
mweibel / mod_msg_filter.erl
Created April 26, 2012 05:55 — forked from mardambey/mod_msg_filter.erl
mod_msg_filter allows the filtering of "message" stanzas across an HTTP service.
%% mod_msg_filter allows the filtering of "message"
%% stanzas across an HTTP service. The URL of the
%% service must be passed as part of the module's
%% configuration. Both JIDs and their resources are
%% passed as part of the query string and the result
%% is expected to be one of:
%%
%% <status value="denied">
%% <stanza1><error/></stanza1>
%% <stanza2><error/></stanza2>