~deckard

https://sr.ht/~tjf/

My code lives at ~tjf now :)

Recent activity

writefreesoftware.org DNS 5 months ago

From Thomas J. Faughnan Jr. to ~sircmpwn/writefreesoftware.org

My feed reader noticed recently that the writefreesoftware.org domain no
longer resolves to an IP address. I assume this is related to the recent
sr.ht outage and figured I'd bring it to your attention. Keep up the
great work :)

Re: issue with aerc since last upda 9 months ago

From Thomas J. Faughnan Jr. to ~rjarry/aerc-discuss

I noticed something similar with the selector being invisible after I
upgraded to 0.16.0. However adding the two lines recommended in the
release notes[1] to the top of my styleset.conf fixed it:

```
*.default = true
*.normal = true
```

[1]: https://git.sr.ht/~rjarry/aerc/refs/0.16.0

Re: invalid timestamps when moving mail between folders (Fastmail) 1 year, 10 months ago

From Thomas Faughnan to ~rjarry/aerc-discuss

On Tue Aug 23, 2022 at 2:15 AM EDT, Ondřej Synáček wrote:
> I moved some messages from my inbox to folder (and also one of them into
> a subfolder). Whenever I sync with mbsync now I get error message for
> each of these messages (I assume)
>
> ```
> C: 0/1  B: 17/30  F: +0/0 *1/1 #0/0  N: +0/0 *0/0 #0/0
> Maildir error: UID 376 is beyond highest assigned UID 227.
> C: 0/1  B: 21/30  F: +0/0 *1/1 #0/0  N: +0/0 *0/0 #0/0
> Maildir error: UID 374 is beyond highest assigned UID 101.
> C: 1/1  B: 30/30  F: +0/0 *1/1 #0/0  N: +0/0 *0/0 #0/0
> ```

I also noticed similar errors with my mbsync setup today, e.g.

[PATCH aerc] doc: fix man page typos 1 year, 10 months ago

From Thomas Faughnan to ~rjarry/aerc-devel

"behaviour" is not necessarily a typo, but currently 3/4 instances of
the word in the docs use the spelling "behavior".

Signed-off-by: Thomas Faughnan <tom@tjf.sh>
---
 doc/aerc-config.5.scd    | 2 +-
 doc/aerc-notmuch.5.scd   | 2 +-
 doc/aerc-stylesets.7.scd | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index aaf15b8..743230e 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
[message trimmed]

Re: [PATCH aerc v2] parse: remove trailing whitespace from rfc1123z regex 1 year, 11 months ago

From Thomas Faughnan to ~rjarry/aerc-devel

If you use maildir you could also simply edit a message file directly,
deleting the line with the Date header.

Admittedly, it is rare that emails arrive in my inbox with no Date
header, but I did actually receive one the other day (from GitHub
Actions of all places)  which is how I stumbled across this bug.

[PATCH aerc v2] parse: remove trailing whitespace from rfc1123z regex 1 year, 11 months ago

From Thomas Faughnan to ~rjarry/aerc-devel

When there is no Date header in a message, aerc falls back to the
Received header and tries to extract an rfc1123z date from it
(introduced in commit d1600e46). The current regex for extracting the
date incorrectly allows for trailing whitespace, causing time.Parse() to
fail inside of parseReceivedHeader(). As a result, the message's date is
shown as "???????????????????" in the message list and as
"0000-12-31 07:03 PM" in the message view (the latter is likely related
to the zero value of time.Time).

Steps to reproduce:
1) Send yourself a message with no Date header, e.g. with msmtp:
printf 'Subject: foo bar\n\nbody text\n' | msmtp --set-date-header=off me@example.com
2) Note the message's displayed date in aerc's message list and message
   view.
[message trimmed]

[PATCH aerc] parse: remove trailing whitespace from rfc1123z regex 1 year, 11 months ago

From Thomas Faughnan to ~rjarry/aerc-devel

When there is no Date header in a message, aerc falls back to the
Received header and tries to extract an rfc1123z date from it
(introduced in commit d1600e46). The current regex for extracting the
date incorrectly allows for trailing whitespace, causing time.Parse() to
fail inside of parseReceivedHeader(). As a result, the message's date is
shown as "???????????????????" in the message list and as
"0000-12-31 07:03 PM" in the message view (the latter is likely related
to the zero value of time.Time).

Steps to reproduce:
1) Send yourself a message with no Date header, e.g. with msmtp:
printf 'Subject: foo bar\n\nbody text\n' | msmtp --set-date-header=off me@example.com
2) Note the message's displayed date in aerc's message list and message
   view.
[message trimmed]

Re: displaying images within aerc 1 year, 11 months ago

From Thomas Faughnan to ~rjarry/aerc-discuss

On Thu Aug 18, 2022 at 5:43 PM EDT, Rene Schallner wrote:
> You might also want to check out Ueberzug [1].

In my experience ueberzug does not play nicely with kitty when using
kitty's built-in tabs and windows. Here's an example of ncspot's[0]
album
cover feature which uses ueberzug: https://bp.tjf.sh/11c

I can't say for sure whether this is a bug in ueberzug itself or in how
ncspot uses ueberzug, so YMMV.

[0]: https://github.com/hrkfdn/ncspot/

[PATCH v2] testing/pounce: add init.d, conf.d, pre-install files 2 years ago

From Thomas Faughnan to ~sircmpwn/alpine-aports

This provides OpenRC service files to run pounce as a supervised
process, as well as a pre-install script which creates the pounce user
and group. Accordingly, these files are added to the APKBUILD.
---
Forgot to increment the $pkgrel before

 testing/pounce/APKBUILD           | 10 ++++++++--
 testing/pounce/pounce.confd       |  5 +++++
 testing/pounce/pounce.initd       | 33 +++++++++++++++++++++++++++++++
 testing/pounce/pounce.pre-install |  6 ++++++
 4 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 testing/pounce/pounce.confd
 create mode 100644 testing/pounce/pounce.initd
 create mode 100644 testing/pounce/pounce.pre-install
[message trimmed]