~jameswalmsley

~jameswalmsley/public-inbox

Last active 18 days ago
View more

Recent activity

Re: NewEmail Trigger for notmuch worker. 17 days ago

From James Walmsley to ~sircmpwn/aerc

I've updated the patch so that aerc doesn't see the "recent" tag in the
dir list.

This doesn't really feel like the right way to do this, but I'll put it
out for comment.

The issue I have with the original patch, is that the tui displays
{recent} in my tag list (I've customised my message view to display
them).

Once the Recent flag is cleared, the tui needs to be informed to update
again.

Not sure the correct way to do this. perhaps:

[PATCH v2] notmuch - Add support for new message notifications with a 'recent' tag. 17 days ago

From James Walmsley to ~sircmpwn/aerc

- In .notmuch-config ensure new-mails have the 'recent' tag added.

`.notmuch-config`
```
[new]
tags=unread;inbox;recent
```
---
 worker/notmuch/message.go | 25 ++++++++++++++++++++++++-
 worker/notmuch/worker.go  |  3 +++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go
index 82d00f3..4103059 100644
[message trimmed]

Re: NewEmail Trigger for notmuch worker. 17 days ago

From James Walmsley to ~sircmpwn/aerc

Hi Reto,

I've added what is probably a naive patch to implement the "recent" tag.

https://lists.sr.ht/~sircmpwn/aerc/patches/16310

Let me know what you think.

I've tested it on my system, and it works great for my purposes.
If I switch to different queriesi/accounts, I get notifications for anything that
is new and I haven't seen.

Best

[PATCH] notmuch - Add support for new message notifications with a 'recent' tag. 17 days ago

From James Walmsley to ~sircmpwn/aerc

- In .notmuch-config ensure new-mails have the 'recent' tag added.

`.notmuch-config`
```
[new]
tags=unread;inbox;recent
```
---
 worker/notmuch/message.go | 4 ++++
 worker/notmuch/worker.go  | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go
index 82d00f3..4a7cd86 100644
[message trimmed]

[PATCH] Fix in-reply-to with <> in the mailto: url. 17 days ago

From James Walmsley to ~sircmpwn/aerc

My first experience writing to this list, I replied using the
'Reply to thread' button, and when I sent the mail it unexpectedly
created a new thread.

I found that the go-message library (SetMsgIDList()) assumes that the <>
tags are not present. So I ended up with a header like:

```
in-reply-to: <<message-id@lists...>>
```

(Perhaps this should be a patch to go-message?)

If Aerc should handle this situation then here is my proposed patch that
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 17 days ago

From James Walmsley to ~sircmpwn/email-test-drive

---
 james-walmsley | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 james-walmsley

diff --git a/james-walmsley b/james-walmsley
new file mode 100644
index 0000000..4ce97b2
--- /dev/null
+++ b/james-walmsley
@@ -0,0 +1 @@
I'm have successfully used git send-email!
-- 
2.25.1
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 17 days ago

From James Walmsley to ~sircmpwn/email-test-drive

---
 james-walmsley | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 james-walmsley

diff --git a/james-walmsley b/james-walmsley
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/james-walmsley
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.25.1
[message trimmed]

Re: NewEmail Trigger for notmuch worker. 17 days ago

From James Walmsley to ~sircmpwn/aerc

On Fri Jan 1, 2021 at 2:25 PM GMT, Reto wrote:

I came to the same understanding about the query as you said. It
wouldn't work.

I had imagined something like using the path: query from notmuch to
determine if the mail is in the new folder...

But this won't work as you mentioned, and it would need more integration
with external tools to change to the seen state.

> The problem is that you only want to notify if a new message comes in
> and clear the recent flag after it has been "seen" by the user once. And
> by seen I don't mean opened but just navigated to the message list where

Re: NewEmail Trigger for notmuch worker. 18 days ago

From James Walmsley to ~sircmpwn/aerc

Thanks for the insight.

I'll try to play-around with notmuch and maildir to understand
the problem-space a bit better.

If I come up with a solution I'll let you know.

My initial thoughts would be to allow the user to specify a query
to detect new messages. I guess you are saying that once you have
notified a message, you need to record that state so aerc
doesn't re-notify the same message every time it starts?

Best,