Commit Graph

13 Commits

Author SHA1 Message Date
proletarius101 0df2e43d8d imports: change the crypto lib to new import path 2021-04-08 11:13:32 +02:00
primalmotion eaed359829
Add support for TLS listeners
Support for -tls-cert and -tls-key to point to a certificate and
key to encrypt communications between the user and hydroxide.

Support for -tls-client-ca to ask client to present a certificate
signed by the provided CA.

Closes: https://github.com/emersion/hydroxide/issues/13
2021-02-24 09:48:29 +01:00
Simon Ser b812444ff8 cmd/hydroxide: override flag.Usage with our usage string 2021-02-23 18:39:59 +01:00
Simon Ser 7b6061868f
cmd/hydroxide: fix skipped bytes on eml import 2020-12-17 13:55:47 +01:00
Simon Ser b4e52ac715
Add support for mbox files for import-messages 2020-12-10 22:26:54 +01:00
Simon Ser fce7129990
Add -message-id flag to export-messages command 2020-09-15 10:37:01 +02:00
Simon Ser bd861cdb00
Add export-messages command
Right now only supports exporting conversations, and doesn't support
attachments.
2020-09-14 12:46:47 +02:00
Simon Ser 524e2fc323
s/flags/options/ 2020-09-14 11:30:12 +02:00
Hubcapp 246e71fbfe update usage help to correct flag-command order
Hi, I had a problem where the suggested usage is not actually how hydroxide was able to parse flags.

Currently, `hydroxide help` claims the correct order is
`usage: hydroxide <command> <flags>`

However, my flags are silently ignored when placing them in that order.
```
# hydroxide serve -smtp-port 2024
2020/07/01 01:43:20 CardDAV server listening on 127.0.0.1:8080
2020/07/01 01:43:20 SMTP server listening on 127.0.0.1:1025
2020/07/01 01:43:20 IMAP server listening on 127.0.0.1:1143
```

So I goofed with it a while and found out that hydroxide will not ignore flags if they go *before* the command.
```
hydroxide -smtp-port 2024 serve
2020/07/01 01:44:12 CardDAV server listening on 127.0.0.1:8080
2020/07/01 01:44:12 SMTP server listening on 127.0.0.1:2024
2020/07/01 01:44:12 IMAP server listening on 127.0.0.1:1143
```

The usage information should be changed to reflect this.
2020-07-01 11:34:11 +02:00
Simon Ser d97056a61a
protonmail: add Client.Debug
This prints HTTP requests and responses.
2020-03-07 18:12:53 +01:00
Simon Ser 87dbf04035
cmd/hydroxide: fix sub-command arg processing 2020-03-07 17:54:40 +01:00
Simon Ser 857d122113
cmd/hydroxide: move usage string to global constant 2020-02-29 12:36:48 +01:00
Simon Ser c1888bcc66
cmd/hydroxide: rename hydroxide.go to main.go 2020-02-29 12:35:09 +01:00