Commit Graph

135 Commits

Author SHA1 Message Date
Martin Dosch
a30eeecafb Update README.md 2021-03-10 08:56:41 +00:00
Martin Dosch
af17660614 Remove unnecessary else clause. 2021-03-04 20:00:42 +01:00
Martin Dosch
23cf25caa6 Split on first @ instead of the last to get the domain (thx Sam) 2021-03-03 22:10:45 +01:00
Martin Dosch
9044bbb998 Remove trailing . of hostnames. 2021-03-03 22:05:47 +01:00
Martin Dosch
4ac87d88e1 Use net.JoinHostPort for adding the port to the host (thx Sam) 2021-03-03 21:56:37 +01:00
Martin Dosch
6df64d2446 Don't use xmpps-client SRV records if target is "." 2021-03-03 17:29:17 +01:00
Martin Dosch
ec185d75d7 Update copyright year 2021-03-03 11:48:27 +01:00
Martin Dosch
b74e921c13 Merge branch 'srvlookup' 2021-03-03 11:40:41 +01:00
Martin Dosch
fde531b977 Update documentation. 2021-03-03 11:39:20 +01:00
Martin Dosch
d00ca7cd37 Mix xmpp-client and xmpps-client SRV records (sorted by prio) 2021-03-02 14:54:49 +01:00
Martin Dosch
d68a7071b7 Update default config location in . 2021-02-28 17:58:32 +01:00
Martin Dosch
4297630c32 Put back accidentally removed package declaration. 2021-02-28 17:03:52 +01:00
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