Commit Graph

294 Commits

Author SHA1 Message Date
Jarno Rankinen 4d45b7aa79 ci: attempt to fix issues with token permissions 2024-03-27 05:09:48 +00:00
Jarno Rankinen 41822313b0 ci: update GitHub build workflow 2024-03-27 04:58:13 +00:00
Jarno Rankinen d11082af5d ci: Build & push container 2024-03-27 04:53:46 +00:00
Jarno Rankinen 21aceb6916 ci: Fix GoReleaser#1 2024-03-27 04:35:05 +00:00
Jarno Rankinen 7d85e77f1b Fix Readme 2024-03-27 04:26:59 +00:00
Jarno Rankinen aa5de02809 Build workflow, devcontainer file 2024-03-27 04:25:25 +00:00
Jarno Rankinen 8119f62e74 Update README 2024-03-27 04:14:41 +00:00
Jarno Rankinen 47d1af80a7 Read push endpoint from config 2024-03-27 04:13:04 +00:00
Jarno Rankinen eb7af7eee1 Update README 2024-03-26 22:47:28 +02:00
Jarno Rankinen c64b03a5d0 Combine auth/setup flow, update readme 2024-03-26 22:39:37 +02:00
Jarno Rankinen 6459bcbc5a Small tweaks to configuration flow, Dockerfile for running as a container 2024-03-26 21:57:15 +02:00
Jarno Rankinen d47246be6d Remove binary from repo... 2024-03-26 21:28:16 +02:00
Jarno Rankinen fc644cbebc Rename package, don't serve IMAP 2024-03-26 21:26:28 +02:00
Jarno Rankinen 2db44c9f5d First working version of ntfy push 2024-03-26 17:47:46 +02:00
Simon Ser ca53aaa50d Upgrade dependencies 2023-11-09 12:27:04 +01:00
Simon Ser 6a82f22a1a Upgrade github.com/ProtonMail/go-crypto 2023-08-24 08:21:44 +02:00
Simon Ser edcfd799b2 Upgrade dependencies 2023-08-24 08:20:32 +02:00
Simon Ser 966c31746a Upgrade go-smtp 2023-08-24 08:08:56 +02:00
Simon Ser 48962643ec readme: drop GO111MODULE=on
It's been a long while modules have been enabled by default.
2023-06-23 11:31:01 +02:00
Simon Ser d1ca680b9b cmd/hydroxide: allow overriding app version via CLI arg 2023-06-12 11:44:46 +02:00
AvalancheBreakdown 7f8df60fe7 Set app version to Other 2023-06-12 11:40:57 +02:00
Daniel Bertalan d18edadd05 Fix 2FA login with both TOTP and U2F enabled
The `2FA.Enabled` field in `/auth`'s JSON output seems to be a bitmap of
some sort, as the API returns `3` when both TOTP and U2F login is on.
This commit changes some `Enabled == 1` checks to `Enabled != 0` to
handle this case properly.

Fixes #250
2023-04-14 18:48:33 +02:00
Simon Ser 1e85c15ffc Bump app version
Closes: https://github.com/emersion/hydroxide/issues/248
2023-04-04 17:10:24 +02:00
Simon Ser 4cb15fbdf3 Bump app version 2023-02-28 13:31:12 +01:00
Raymond Hackley 49650c263c
cmd/hydroxide: Bump web-mail version to "5.0.14.11"
Helps with #235
2023-01-06 10:58:54 +01:00
deetuned 1e0de0167b build: Bump web-mail version to "5.0.9.8"
Fixes emersion/hydroxide#230
2022-10-18 09:04:45 +02:00
Simon Ser 0bbe26f26a auth: add more context to errors 2022-09-10 21:49:33 +02:00
Simon Ser 4c32801c34 Upgrade dependencies 2022-08-21 16:50:25 +02:00
Simon Ser 482bf8952e Drop go-isatty dependency 2022-08-21 16:48:47 +02:00
Cairn 777f4edf76 Remove deprecated IMAP extension dependencies 2022-08-21 16:46:33 +02:00
shrimp b11846dbb3 Update API endpoint and version, set User-Agent
Helps with:
https://github.com/emersion/hydroxide/issues/179
2022-06-23 20:02:07 +02:00
Simon Ser 9f72034eb3 config: use os.UserConfigDir 2022-05-24 21:20:13 +02:00
Simon Ser e1b5ccefb0 readme: add disclaimer about IMAP 2022-05-24 21:13:13 +02:00
Simon Ser 1b5a2e71ba carddav: implement QueryAddressObjects 2022-05-24 21:10:23 +02:00
Simon Ser 2b6cd1ab38 Upgrade dependencies
go-webdav has breaking changes.
2022-05-24 21:07:05 +02:00
Simon Ser 654253a423 Update AppVersion 2022-05-11 09:50:05 +02:00
Simon Ser b0f44a9147 Switch back API endpoint to mail.protonmail.com
Closes: https://github.com/emersion/hydroxide/issues/215
2022-05-10 09:13:42 +02:00
Simon Ser 8b5232a62d Allow to override API endpoint with a CLI option
Closes: https://github.com/emersion/hydroxide/issues/163
2022-05-10 09:11:46 +02:00
Simon Ser 9eedfb6954 cmd/hydroxide: fix redundant newline when printing usage
cmd/hydroxide/main.go:558:3: fmt.Println arg list ends with redundant newline
2022-05-06 19:26:33 +02:00
yulqen 9ef1b1c30b
Fix for issue #213 - EncToken exception (#214) 2022-05-06 19:24:30 +02:00
Simon Ser 3c52837053 Check private key token signatures 2021-11-23 12:33:33 +01:00
Simon Ser 5eadb35c67 Extract address key passphrases from encrypted token 2021-11-23 12:22:44 +01:00
Simon Ser fd518b533c auth: fix re-auth 2FA error message not showing up
There was a confusing error message instead:

    [403] Access token does not have sufficient scope

Which just meant the access token was used without completing 2FA.
2021-11-23 11:25:27 +01:00
Simon Ser 9aeff319ba Upgrade dependencies
github.com/ProtonMail/go-crypto contains breaking changes.
2021-11-23 11:14:04 +01:00
Simon Ser eed76df6b5 Allow import-messages to read from stdin 2021-11-10 14:36:47 +01:00
Simon Ser 9876df6309 Add HYDROXIDE_BRIDGE_PASS env variable
Useful for automation.
2021-11-10 14:35:02 +01:00
Simon Ser 7e74bdc0a8 Add sendmail subcommand 2021-11-10 14:29:54 +01:00
Simon Ser 7ae6a0ea07 Add prompt arg to askPass 2021-11-10 14:01:49 +01:00
Simon Ser 23d2b7f2d6 Migrate to golang.org/x/crypto/ssh/terminal
github.com/howeyc/gopass is unmaintained.
2021-11-10 13:57:15 +01:00
Simon Ser 4c7fd88d57 protonmail: mark more Message fields as json omitempty
Setting an empty ExternalID results in an e-mail with:

    Message-Id: <>
2021-07-30 15:32:37 +02:00