Commit Graph

123 Commits

Author SHA1 Message Date
Martin Dosch
b097e89a53 Add license header. 2021-02-28 17:02:32 +01:00
Martin Dosch
adc2231f25 Fall back to 5222 if no xmpp-client SRV records are provided 2021-02-28 14:26:40 +01:00
Martin Dosch
0811f434cb Remove nonsense TODO 2021-02-28 14:23:42 +01:00
Martin Dosch
702ce9ff47 Look up SRV records for xmpp- and xmpps-client 2021-02-28 13:57:06 +01:00
Martin Dosch
afcbe65bc1 Fix leaving MUCs before closing the connection. 2021-01-31 12:57:45 +01:00
Martin Dosch
4d633ef677 Allow joining multiple MUCs before sending raw xml messages. 2021-01-31 12:35:24 +01:00
Martin Dosch
866a5d40f3 Add --raw documentation. 2021-01-31 12:28:58 +01:00
Martin Dosch
57bff89256 Add option '--raw'. 2021-01-30 14:24:54 +01:00
Martin Dosch
1a01b68ef7 Update usage info. 2021-01-29 18:41:25 +01:00
Martin Dosch
4f65c8439b Advertise the brand new chat. 2021-01-29 18:09:58 +01:00
Martin Dosch
6984f634e7 Always use StartTLS. 2021-01-29 17:28:50 +01:00
Martin Dosch
f472a43b53 Update vendored dependencies 2021-01-29 17:13:13 +01:00
Martin Dosch
756157ca1d Use external package to get proper MIME types 2021-01-29 17:12:32 +01:00
Martin Dosch
9ad95a24d5 Fix format [gofmt] 2021-01-29 16:06:30 +01:00
Martin Dosch
0d26691606 Use certain headers provided by http-upload component (thx Zash) 2021-01-29 15:03:48 +01:00
Martin Dosch
e4e33cdf75 Fix issue with SRV lookup for xmpps-client. 2021-01-21 11:31:16 +01:00
Martin Dosch
6c3fe6246a Clarify -t means "direct TLS". 2021-01-21 11:19:55 +01:00
Martin Dosch
9c7dc43658 Add SRV lookup for xmpps DNS records. 2021-01-21 11:18:02 +01:00
Martin Dosch
c4f813d056 Clarify that the -t flag is *direct* TLS. 2021-01-21 10:54:34 +01:00
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.
2021-01-21 10:42:07 +01:00
Martin Dosch
24a13d3c61 Update vendored dependencies. 2021-01-21 09:40:41 +01:00
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.
2020-10-06 18:18:44 +02:00
Martin Dosch
953a52560d Update allowed config file permissions. 2020-10-01 19:22:26 +02:00
Martin Dosch
16256985bf Rework config manpage. 2020-10-01 19:18:45 +02:00
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
2020-10-01 19:10:03 +02:00
Martin Dosch
c4714e9f8f Merge branch 'patch-1' into 'master'
Allow 640 (group read) permissions

Closes #1

See merge request mdosch/go-sendxmpp!3
2020-10-01 17:03:08 +00:00
Martin Dosch
39c321a12c Fix manpage formatting. 2020-10-01 18:59:56 +02:00
Martin Dosch
740f7f73b2 Compile updated manpage. 2020-10-01 18:57:42 +02:00
Martin Dosch
e5c1f4f51a Add support for password managers. 2020-10-01 18:55:41 +02:00
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
2020-10-01 17:33:43 +02:00
Martin Dosch
f7ea82a1a4 Update vendored dependencies. 2020-08-30 10:40:54 +02:00
Tyler
7696a9eb09 Allow 640 permissions
Fixes #1
2020-06-24 20:44:17 +00:00
Martin Dosch
8594c80856 Clarify that username should be a JID in the manpages too. 2020-06-06 12:42:19 +02:00
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.
2020-06-06 12:06:55 +02:00
Martin Dosch
76a747efb4 Clarify that the username should be a JID. 2020-06-06 12:06:09 +02:00
Martin Dosch
ea3d939f2e Remove feature-wise comparison to sendxmpp 2020-06-06 12:04:45 +02:00
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).
2020-05-23 18:21:42 +02:00
Martin Dosch
cbac6dbe8d Move repo from mdosch-guest to mdosch 2020-04-23 09:11:37 +02:00
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?
2020-04-11 18:59:32 +02:00
Martin Dosch
828ba165e9 Move handrafting OOB messages in own function. 2020-04-11 16:44:20 +02:00
Martin Dosch
c0d7514674 Check for http status code. 2020-04-11 16:08:15 +02:00
Martin Dosch
758cb6a3f2 Check IQ replies for type="result". 2020-04-10 12:16:57 +02:00
Martin Dosch
45de883aa2 Update README.md 2020-04-10 11:21:17 +02:00
Martin Dosch
6d6de2f03c Remove already done TODO item 2020-04-10 11:19:32 +02:00
Martin Dosch
bb150b6954 Use string variables for handcrafted messages. 2020-04-10 11:19:16 +02:00
Martin Dosch
2e3e0e113d Also check to be in the right FORM. 2020-04-09 21:13:07 +02:00
Martin Dosch
21983f6555 Fix a sed failure in a comment. 2020-04-09 20:52:07 +02:00
Martin Dosch
ff90c6b538 Update TODO for http upload. 2020-04-09 20:49:31 +02:00
Martin Dosch
9702df6c84 Propery determine the http-upload max-file-size. 2020-04-09 20:42:07 +02:00
Martin Dosch
0d6d4a5479 Check if file is exceeding maximum http upload size. 2020-04-09 17:54:49 +02:00