Go to file
moparisthebest 5b36300054
Some checks failed
moparisthebest/sendxmpp-rs/pipeline/head There was a failure building this commit
sendxmpp-rs v3.0.1
2022-11-04 23:18:50 -04:00
.ci Implement jenkins builds 2020-11-30 21:18:13 -05:00
src Update tokio-xmpp, switch to rustls 2022-11-04 22:59:46 -04:00
.gitignore update Cargo.lock, builds with patched xmpp-rs 2019-01-25 20:07:36 -05:00
.rustfmt.toml Add --raw option to support sending a stream of raw XML 2021-03-23 21:17:00 -04:00
Cargo.lock Update tokio-xmpp, switch to rustls 2022-11-04 22:59:46 -04:00
Cargo.toml sendxmpp-rs v3.0.1 2022-11-04 23:18:50 -04:00
LICENSE.md Version 2.0.0 as released on crates.io 2021-01-16 02:06:05 -05:00
README.md sendxmpp-rs v3.0.0 2022-11-04 21:52:14 -04:00
sendxmpp.toml Allow optional nick in config file 2022-09-25 11:13:43 +02:00

sendxmpp-rs

sendxmpp is the XMPP equivalent of sendmail. It is an alternative to the old sendxmpp written in Perl, or the newer sendxmpp-py.

Installation: cargo install sendxmpp

Configuration: cp sendxmpp.toml ~/.config/ and edit ~/.config/sendxmpp.toml with your XMPP credentials

Usage: sendxmpp [OPTIONS] [ARGUMENTS]

Positional arguments:
  recipients

Optional arguments:
  -h, --help           show this help message and exit
  -c, --config CONFIG  path to config file. default: ~/.config/sendxmpp.toml with fallback to /etc/sendxmpp/sendxmpp.toml
  -e, --force-pgp      Force OpenPGP encryption for all recipients
  -a, --attempt-pgp    Attempt OpenPGP encryption for all recipients
  -r, --raw            Send raw XML stream, cannot be used with recipients or PGP
  -p, --presence       Send a <presence/> after connecting before sending messages, required for receiving for --raw
  -m, --muc            Recipients are Multi-User Chats
  -n, --nick NICK      Nickname to use in Multi-User Chats

Usage examples:

  • echo "This is a test" | sendxmpp user@host
  • sendxmpp user@host <README.md

License

GNU/AGPLv3 - Check LICENSE.md for details