~rganardi

~rganardi/public-inbox

Last active a month ago
View more

Recent activity

[PATCH 4/4] aerc: Refactor getpasswd dialog 8 days ago

From Ray Ganardi to ~sircmpwn/aerc

Previously there's a hack for showing and hiding the dialog.

Change it to use channels to emulate async/await
---
 widgets/aerc.go    | 83 +++++++++++++++++++++++++++++-----------------
 widgets/pgpinfo.go | 13 ++------
 2 files changed, 56 insertions(+), 40 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index eb037df..829873a 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -36,7 +36,7 @@ type Aerc struct {
	tabs        *ui.Tabs
[message trimmed]

[PATCH 3/4] feat(pgp): Show error message from pgp 8 days ago

From Ray Ganardi to ~sircmpwn/aerc

The error wasn't shown, making errors like wrong password being ignored
and the password is prompted again.
---
 widgets/aerc.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 273777b..eb037df 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -568,7 +568,10 @@ func (aerc *Aerc) DecryptKeys(keys []openpgp.Key, symmetric bool) (b []byte, err
					err = e
					return
				}
[message trimmed]

[PATCH 2/4] feat(pgp): Add <ESC> to cancel password prompt 8 days ago

From Ray Ganardi to ~sircmpwn/aerc

Previously there was no way to cancel the password prompt.
---
 widgets/aerc.go      | 18 +++++++++++-------
 widgets/getpasswd.go | 11 ++++++++---
 2 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 23b8901..273777b 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -537,11 +537,11 @@ func (aerc *Aerc) CloseBackends() error {
	return returnErr
}

[message trimmed]

[PATCH 1/4] pgp: fail gracefully from email decryption 8 days ago

From Ray Ganardi to ~sircmpwn/aerc

Aerc panics when there's an error on email decryption.
Instead, an error message should be shown.
---
 commands/account/view.go |  6 +++++-
 commands/msg/delete.go   |  6 +++++-
 commands/msgview/next.go |  6 +++++-
 lib/messageview.go       | 18 +++++++++++-------
 widgets/msglist.go       |  6 +++++-
 5 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/commands/account/view.go b/commands/account/view.go
index d1b90ce..b421666 100644
--- a/commands/account/view.go
+++ b/commands/account/view.go
[message trimmed]

[PATCH v2 3/4] feat(pgp): Show error message from pgp 17 days ago

From Ray Ganardi to ~sircmpwn/aerc

The error wasn't shown, making errors like wrong password being ignored
and the password is prompted again.
---
 widgets/aerc.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 273777b..eb037df 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -568,7 +568,10 @@ func (aerc *Aerc) DecryptKeys(keys []openpgp.Key, symmetric bool) (b []byte, err
					err = e
					return
				}
[message trimmed]

[PATCH v2 2/4] feat(pgp): Add <ESC> to cancel password prompt 17 days ago

From Ray Ganardi to ~sircmpwn/aerc

Previously there was no way to cancel the password prompt.
---
 widgets/aerc.go      | 18 +++++++++++-------
 widgets/getpasswd.go | 11 ++++++++---
 2 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 23b8901..273777b 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -537,11 +537,11 @@ func (aerc *Aerc) CloseBackends() error {
	return returnErr
}

[message trimmed]

[PATCH v2 1/4] pgp: fail gracefully from email decryption 17 days ago

From Ray Ganardi to ~sircmpwn/aerc

Aerc panics when there's an error on email decryption.
Instead, an error message should be shown.
---
 commands/account/view.go |  6 +++++-
 commands/msg/delete.go   |  6 +++++-
 commands/msgview/next.go |  6 +++++-
 lib/messageview.go       | 18 +++++++++++-------
 widgets/msglist.go       |  6 +++++-
 5 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/commands/account/view.go b/commands/account/view.go
index d1b90ce..b421666 100644
--- a/commands/account/view.go
+++ b/commands/account/view.go
[message trimmed]

[PATCH 3/3] feat(pgp): Show error message from pgp 27 days ago

From Ray Ganardi to ~sircmpwn/aerc

The error wasn't shown, making errors like wrong password being ignored
and the password is prompted again.
---
 widgets/aerc.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 464bf11..850ca18 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -533,7 +533,10 @@ func (aerc *Aerc) DecryptKeys(keys []openpgp.Key, symmetric bool) (b []byte, err
					err = e
					return
				}
[message trimmed]

[PATCH 2/3] feat(pgp): Add <ESC> to cancel password prompt 27 days ago

From Ray Ganardi to ~sircmpwn/aerc

Previously there was no way to cancel the password prompt.
---
 widgets/aerc.go      | 24 ++++++++++++++----------
 widgets/getpasswd.go | 11 ++++++++---
 2 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/widgets/aerc.go b/widgets/aerc.go
index 1d45696..464bf11 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -408,11 +408,11 @@ func (aerc *Aerc) BeginExCommand(cmd string) {
	exline := NewExLine(aerc.conf, cmd, func(cmd string) {
		parts, err := shlex.Split(cmd)
		if err != nil {
[message trimmed]

[PATCH 1/3] pgp: fail gracefully from email decryption 27 days ago

From Ray Ganardi to ~sircmpwn/aerc

Aerc panics when there's an error on email decryption.
Instead, an error message should be shown.
---
 commands/account/view.go |  6 +++++-
 commands/msg/delete.go   |  6 +++++-
 commands/msgview/next.go |  6 +++++-
 lib/messageview.go       | 18 +++++++++++-------
 widgets/msglist.go       |  6 +++++-
 5 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/commands/account/view.go b/commands/account/view.go
index d1b90ce..b421666 100644
--- a/commands/account/view.go
+++ b/commands/account/view.go
[message trimmed]