# xmppc

CLI for XMPP written in C and using [libstrophe](http://strophe.im/libstrophe/).
This repo is a fork (likely hard) of the original
[xmppc](https://codeberg.org/Anoxinon_e.V./xmppc) and might get renamed.

## Dependencies

- [libc6-dev](https://packages.debian.org/trixie/libc6-dev) (2.28-10)
- [libglib2.0-dev](https://packages.debian.org/trixie/libglib2.0-dev) (2.58.3)
- [libstrophe-dev](https://packages.debian.org/trixie/libstrophe-dev) (0.9.2-2)
- [libgpgme-dev](https://packages.debian.org/trixie/libgpgme-dev) (1.12.0)
- [automake](https://packages.debian.org/trixie/automake) (1.17)

## Build

```
# on Debian/Ubuntu
apt install -y automake libstrophe-dev libc6-dev libglib2.0-dev libgpgme-dev
./bootstrap.sh
./configure
make
# mv xmppc $HOME/.local/bin/ or somewhere else in your PATH
```

## Config file

`~/.config/xmppc.conf`

`[default]` is used when neither account nor JID is provided.

```
[default]
jid=user@domain.tld
pwd=YourSecret

[account1]
jid=account1@domain.tld
pwd=YourSecret
```

## Usage

```
xmppc --jid user@domain.tld --pwd "password" --mode roster list
xmppc -j user@domain.tld -p "password" -m roster list
xmppc -a alice -m mam list bob@domain.tld
xmppc -m bookmark list
xmppc -h
```

## Issues

Do not report them to upstream `xmppc`! Send me a message somewhere (it's pretty
easy to find how), then I'll decide whether it's a bug in my fork I should fix
or something I should report upstream. Please don't bother the original
maintainer with issues I might have introduced.
