Martin Dosch
1a01b68ef7
Update usage info.
4 years ago
Martin Dosch
4f65c8439b
Advertise the brand new chat.
4 years ago
Martin Dosch
6984f634e7
Always use StartTLS.
4 years ago
Martin Dosch
f472a43b53
Update vendored dependencies
4 years ago
Martin Dosch
756157ca1d
Use external package to get proper MIME types
4 years ago
Martin Dosch
9ad95a24d5
Fix format [gofmt]
4 years ago
Martin Dosch
0d26691606
Use certain headers provided by http-upload component (thx Zash)
4 years ago
Martin Dosch
e4e33cdf75
Fix issue with SRV lookup for xmpps-client.
4 years ago
Martin Dosch
6c3fe6246a
Clarify `-t` means "direct TLS".
4 years ago
Martin Dosch
9c7dc43658
Add SRV lookup for xmpps DNS records.
4 years ago
Martin Dosch
c4f813d056
Clarify that the `-t` flag is *direct* TLS.
4 years ago
Martin Dosch
aba6bb2099
Don't require the `--jserver` command line flag.
...
Just assume the JIDs domain part to be the server.
The mattn/go-xmpp lib will find the appropriate server
to connect to by resolving the xmpp-client SRV record.
4 years ago
Martin Dosch
24a13d3c61
Update vendored dependencies.
4 years ago
Martin Dosch
a7958e64e9
Don't recommend eval_password
...
It's not up to me whether people use a password manager
or put their password in a file with 600 access rights.
As go-sendxmpp is probably often used when no one is in
front to unlock the password manager.
4 years ago
Martin Dosch
953a52560d
Update allowed config file permissions.
4 years ago
Martin Dosch
16256985bf
Rework config manpage.
4 years ago
Martin Dosch
8a93c57f47
Add support for password managers.
...
Most of this is taken from xmpp-daemon [1] (thanks).
[1] https://git.dagestad.fr/~nicolai/xmpp-daemon/tree/main/README.md
4 years ago
Martin Dosch
c4714e9f8f
Merge branch 'patch-1' into 'master'
...
Allow 640 (group read) permissions
Closes #1
See merge request mdosch/go-sendxmpp!3
4 years ago
Martin Dosch
39c321a12c
Fix manpage formatting.
4 years ago
Martin Dosch
740f7f73b2
Compile updated manpage.
4 years ago
Martin Dosch
e5c1f4f51a
Add support for password managers.
4 years ago
Martin Dosch
6c6284b383
Update documentation
...
`jserver` and `port` might not be necessary. Thanks [1] for pointing
this out.
[1] https://www.momi.ca/posts/2020-08-28-sendxmpp.html
4 years ago
Martin Dosch
f7ea82a1a4
Update vendored dependencies.
4 years ago
Tyler
7696a9eb09
Allow 640 permissions
...
Fixes #1
4 years ago
Martin Dosch
8594c80856
Clarify that username should be a JID in the manpages too.
4 years ago
Martin Dosch
ce11b65376
Allow localpart as username
...
If username is not a JID assume it is the local part and append an @
and the server domain.
4 years ago
Martin Dosch
76a747efb4
Clarify that the username should be a JID.
4 years ago
Martin Dosch
ea3d939f2e
Remove feature-wise comparison to sendxmpp
4 years ago
Martin Dosch
dd4b2a91d1
Look at ~/.config/go-sendxmpp/sendxmpprc for the config.
...
Also look up the config at ~/.config/go-sendxmpp/sendxmpprc
and prefer it over the legacy path used by perl sendxmpp
(~/.sendxmpprc).
4 years ago
Martin Dosch
cbac6dbe8d
Move repo from mdosch-guest to mdosch
4 years ago
Martin Dosch
ad499e4bc0
Use the library for sending oob message
...
instead of handcrafting the message
Why I didn't see this option in the first place?
5 years ago
Martin Dosch
828ba165e9
Move handrafting OOB messages in own function.
5 years ago
Martin Dosch
c0d7514674
Check for http status code.
5 years ago
Martin Dosch
758cb6a3f2
Check IQ replies for type="result".
5 years ago
Martin Dosch
45de883aa2
Update README.md
5 years ago
Martin Dosch
6d6de2f03c
Remove already done TODO item
5 years ago
Martin Dosch
bb150b6954
Use string variables for handcrafted messages.
5 years ago
Martin Dosch
2e3e0e113d
Also check to be in the right FORM.
5 years ago
Martin Dosch
21983f6555
Fix a sed failure in a comment.
5 years ago
Martin Dosch
ff90c6b538
Update TODO for http upload.
5 years ago
Martin Dosch
9702df6c84
Propery determine the http-upload max-file-size.
5 years ago
Martin Dosch
0d6d4a5479
Check if file is exceeding maximum http upload size.
5 years ago
Martin Dosch
854cff096e
Update manpage.
5 years ago
Martin Dosch
11883b8961
Don't allow usage of http upload and sending a message at the same time.
5 years ago
Martin Dosch
db2ccee50e
Send http-upload in OOB message
5 years ago
Martin Dosch
2622081bad
Use tlsConfig.ServerName as server for calling httpUpload
...
The server we connect to might be xmpp.example.org while we have to
disco example.org for user@example.org
5 years ago
Martin Dosch
45e69386f4
Remove debugging output
5 years ago
Martin Dosch
6a781a7b97
Add error checks.
5 years ago
Martin Dosch
74967028d6
Update TODO
5 years ago
Martin Dosch
9fd205f90f
Add experimental http-upload
5 years ago