From fb7be8b38fab99477287ea92a2df9a9c68042cfd Mon Sep 17 00:00:00 2001 From: upperhill Date: Thu, 9 Jul 2015 14:28:38 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91a8455..dab4e93 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,48 @@ `sendxmpp.py` is the XMPP equivalent of sendmail. It is an alternative to the old sendxmpp written in Perl. -Dependency: [sleekxmpp](https://github.com/fritzy/SleekXMPP) (python3 version) +# Dependencies + + This requires Python 3.X +``` +sudo apt-get install python3 +``` -Installation: just put the scripts wherever you want. +Install dnspython + ``` + wget https://github.com/rthalley/dnspython/archive/v1.11.1-py3.tar.gz + + tar xvf v1.11.1-py3.tar.gz + + cd dnspython-1.11.1-py3/ + + sudo python3 setup.py install --record files.txt + + cd ../ + ``` + +Install SleekXMPP + ``` + git clone https://github.com/fritzy/SleekXMPP + + cd SleekXMPP/ + + sudo python3 setup.py install + + cd ../ + ``` + + Installation: just put the scripts wherever you want. + Configuration: see `CONFIG.example`, default config path is `~/.xmpputils` +``` +cp CONFIG.example `~/.xmpputils +``` +Edit `~/.xmpputils` with your xmpp credentials. + +Usage: (assuming you're in xmpputils/) +``` + echo "This is a test" | ./sendxmpp.py user@host +``` + From cce39ef37572126abe57f123bf96204dae2a8a84 Mon Sep 17 00:00:00 2001 From: upperhill Date: Thu, 9 Jul 2015 14:41:08 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dab4e93..e4b2bda 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,6 @@ Usage: (assuming you're in xmpputils/) echo "This is a test" | ./sendxmpp.py user@host ``` +``` +./sendxmpp.py < README.md user@host +```