b643665354
Apparently I had an empty /etc/resolv.conf on one host due to systemd growing pains, which I only discovered by adding the logger and seeing > [2021-12-31T20:22:01Z WARN trust_dns_resolver::system_conf::unix] no nameservers found in config Without env_logger, the only output I had was an unhelpful > could not connect to xmpp server and changing die() to unwrap() only narrowed it down slightly to > Connection(Resolve(ResolveError { kind: Message("No connections available") })) One can set the environment variable RUST_LOG=debug for more verbosity. Under the default setting it seems to be silent if nothing goes wrong. |
||
---|---|---|
.ci | ||
src | ||
.gitignore | ||
.rustfmt.toml | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE.md | ||
README.md | ||
sendxmpp.toml |
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
Usage examples:
echo "This is a test" | sendxmpp user@host
sendxmpp user@host <README.md
License
GNU/AGPLv3 - Check LICENSE.md for details