~mfashby

Recent activity

[PATCH] Add cc and bcc fields. a month ago

From Martin Ashby to ~migadu/alps-devel

Add reply-all button alps theme, which automatically includes cc
recipients.

Suggestions welcome for making the fields look less ugly on the compose
page.

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 plugins/base/routes.go       | 21 +++++++++++++++++++++
 plugins/base/smtp.go         | 14 ++++++++++++++
 themes/alps/assets/style.css | 15 ++++++++++++++-
 themes/alps/compose.html     | 19 +++++++++++++++++++
 themes/alps/message.html     |  1 +
 5 files changed, 69 insertions(+), 1 deletion(-)
[message trimmed]

Re: [PATCH] Add From address calculation a month ago

From Martin Ashby to ~migadu/alps-devel

On Wed Aug 4, 2021 at 10:23 AM BST, Simon Ser wrote:
> I'm not sure about this patch. 

Ah I'm a little unsure of it myself :) Thanks for taking the time to
read and provide feedback.

> The upstream is usually something like
> mail.example.org, not example.org. 

According to the documentation it's the host I need to provide here, 
see https://git.sr.ht/~migadu/alps. This seems to suggest that one 
can either specify imap(s) and smtp(s) upstreams explicitly _or_ 
provide a _domain_ which is used for discovery with SRV records per
RFC-6168.

[PATCH] Add From address calculation a month ago

From Martin Ashby to ~migadu/alps-devel

Try to have sensible inference of From address based on settings, username, and server host.

Add warning message when From could not be calculated.

Add validation message when From address isn't set instead of crashing.

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 plugins/base/routes.go    | 83 +++++++++++++++++++++++++++++++--------
 server.go                 | 15 ++++++-
 themes/alps/settings.html |  2 +-
 3 files changed, 81 insertions(+), 19 deletions(-)

diff --git a/plugins/base/routes.go b/plugins/base/routes.go
[message trimmed]

[PATCH] Always issue a SELECT command in ensureMailboxSelected 2 months ago

From Martin Ashby to ~migadu/alps-devel

Works around https://todo.sr.ht/~migadu/alps/150.

Some mail servers seem to reject FETCH commands immediately after an
append operation unless another SELECT is issued.

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 plugins/base/imap.go | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/plugins/base/imap.go b/plugins/base/imap.go
index 2ca5a7e..47c5ce7 100644
--- a/plugins/base/imap.go
+++ b/plugins/base/imap.go
[message trimmed]

[PATCH v3] Fix crash in alps theme when common mailboxes are not present. 2 months ago

From Martin Ashby to ~migadu/alps-devel

Fixes https://todo.sr.ht/~migadu/alps/154

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 plugins/base/routes.go | 54 +++++++++++++++++++++++-------------------
 1 file changed, 30 insertions(+), 24 deletions(-)

diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 925da33..9b88ee5 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -98,16 +98,39 @@ type MailboxDetails struct {
// Organizes mailboxes into common/uncommon categories
type CategorizedMailboxes struct {
[message trimmed]

[PATCH v2] Fix crash in alps theme when common mailboxes are not present. 2 months ago

From Martin Ashby to ~migadu/alps-devel

Fixes https://todo.sr.ht/~migadu/alps/154

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 plugins/base/routes.go | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/plugins/base/routes.go b/plugins/base/routes.go
index 925da33..f66ccaf 100644
--- a/plugins/base/routes.go
+++ b/plugins/base/routes.go
@@ -98,12 +98,12 @@ type MailboxDetails struct {
// Organizes mailboxes into common/uncommon categories
type CategorizedMailboxes struct {
[message trimmed]

[PATCH] Fix crash in alps theme when common mailboxes are not present. 2 months ago

From Martin Ashby to ~migadu/alps-devel

Fixes https://todo.sr.ht/~migadu/alps/154

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 themes/alps/util.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/alps/util.html b/themes/alps/util.html
index 9cdfd86..3782e9a 100644
--- a/themes/alps/util.html
+++ b/themes/alps/util.html
@@ -1,4 +1,5 @@
{{ define "mbox-link" }}
{{ if .Info }}
[message trimmed]

[PATCH] Add error page for sourcehut theme. 2 months ago

From Martin Ashby to ~migadu/alps-devel

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 themes/sourcehut/error.html | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 themes/sourcehut/error.html

diff --git a/themes/sourcehut/error.html b/themes/sourcehut/error.html
new file mode 100644
index 0000000..2e25f60
--- /dev/null
+++ b/themes/sourcehut/error.html
@@ -0,0 +1,14 @@
{{template "head.html" .}}

[message trimmed]

[PATCH] Add 'remember me' checkbox to sourcehut theme login page. 2 months ago

From Martin Ashby to ~migadu/alps-devel

Signed-off-by: Martin Ashby <martin@ashbysoft.com>
---
 themes/sourcehut/login.html | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/themes/sourcehut/login.html b/themes/sourcehut/login.html
index 65605b4..c6e843a 100644
--- a/themes/sourcehut/login.html
+++ b/themes/sourcehut/login.html
@@ -20,6 +20,19 @@
        name="password"
        id="password" />
    </div>

[message trimmed]

Re: [PATCH] Add documentation for -login-key cli option 2 months ago

From Martin Ashby to ~migadu/alps-devel

I have neglected to annotate v2, apologies. This is v2 of this patch.