Commit Graph

75 Commits

Author SHA1 Message Date
Martin Dosch
64f153d752 Use constant xmpp.NoHistory instead of "0"
For a better readability.
2022-02-19 09:19:53 +01:00
Martin Dosch
e1130aa34a Add support for password protected MUCs. 2022-02-19 08:30:35 +01:00
Martin Dosch
c88f83a47c Start new development cycle. 2022-02-12 12:32:18 +01:00
Martin Dosch
679cbbda03 Prepare v0.2.0 release 2022-02-12 12:30:08 +01:00
Martin Dosch
5b86e1b48f Add --version flag. 2022-02-12 11:16:45 +01:00
Martin Dosch
5b72f3cee0 Add flag to configure minimum TLS version. 2022-02-12 09:36:12 +01:00
Martin Dosch
a866e98e1e Add --timeout flag. 2022-02-12 09:18:02 +01:00
Martin Dosch
5dd755c4b2 Add a comment regarding the NoTLS setting. 2022-02-12 09:11:03 +01:00
Martin Dosch
ae718cb87b Rename flagTLS to flagDirectTLS for clarification. 2022-02-12 09:06:52 +01:00
Martin Dosch
173ac720a3 Improve output in listening mode.
Show timestamp and sender.
2022-02-07 17:44:44 +01:00
Martin Dosch
c70c735e81 Remove deprecated option -x. 2022-02-07 16:55:38 +01:00
Martin Dosch
dbc42c6cb8 Add possibility to specify contacts for -l. 2022-02-07 16:17:59 +01:00
Martin Dosch
ed94bdb0b7 Improve description for -l 2022-02-07 16:14:47 +01:00
Martin Dosch
fdc7a6b0b8 Fix typo. 2022-02-07 16:13:45 +01:00
Anjandev Momi
a2f700d141 add -l flag: listen for messages 2022-02-07 09:35:34 -05:00
Martin Dosch
62a185806d Use net.JoinHostPort for joining host and port. 2021-10-05 17:11:50 +02:00
Martin Dosch
c10213493b Change default resource
Use "go-sendxmpp" plus a random string
(e.g. "go-sendxmpp.aafeec4c-3136ee04-06ab90a)
instead of only "go-sendxmpp" to prevent conflicts
if two instances run at the same time without
having a custom resource configured.
2021-07-02 10:55:03 +02:00
Martin Dosch
d36c836276 Add resource config option. 2021-06-26 09:59:08 +02: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
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
d68a7071b7 Update default config location in . 2021-02-28 17:58:32 +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
57bff89256 Add option '--raw'. 2021-01-30 14:24:54 +01:00
Martin Dosch
6984f634e7 Always use StartTLS. 2021-01-29 17:28:50 +01:00
Martin Dosch
e4e33cdf75 Fix issue with SRV lookup for xmpps-client. 2021-01-21 11:31:16 +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
953a52560d Update allowed config file permissions. 2020-10-01 19:22:26 +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
e5c1f4f51a Add support for password managers. 2020-10-01 18:55:41 +02:00
Tyler
7696a9eb09 Allow 640 permissions
Fixes #1
2020-06-24 20:44:17 +00: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
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
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
bb150b6954 Use string variables for handcrafted messages. 2020-04-10 11:19:16 +02:00
Martin Dosch
11883b8961 Don't allow usage of http upload and sending a message at the same time. 2020-04-09 17:01:48 +02:00
Martin Dosch
db2ccee50e Send http-upload in OOB message 2020-04-09 16:49:27 +02:00
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
2020-04-09 15:47:03 +02:00
Martin Dosch
9fd205f90f Add experimental http-upload 2020-04-09 14:58:03 +02:00
Martin Dosch
e674de5df1 Fix typos 2020-04-05 22:02:09 +02:00
Martin Dosch
21ed1c5ff6 User username instead of server to determine ServerName for TLS
certificate check.
2020-04-05 21:50:28 +02:00
Martin Dosch
f06dff7321 Add --no-tls-verify command line flag. 2020-04-05 21:49:17 +02:00
Martin Dosch
a81835b3d9 Change from MIT to BSD 2-Clause license. 2020-04-04 09:42:09 +02:00
Martin Dosch
55914460bd Revert "Remove MarshalJID function."
This reverts commit a631fa057b.
2020-04-04 09:40:24 +02:00
Martin Dosch
a631fa057b Remove MarshalJID function. 2020-04-03 18:12:58 +02:00