Gothenburg, Sweden


CS PhD Student


Last active 6 months ago


Last active 11 months ago
View more

Recent activity

Re: Signing email with a smartcard 2 months ago

From Ivan Oleynikov to ~rjarry/aerc-discuss

On Thu, Sep 22, 2022 at 12:00:58PM +0200, Vladimír Magyar wrote:
>I'm no expert in this and don't really know how it works, but could it
>be possible to sign emails with a smart card?


If I remember correctly, GnuPG can work with smart cards directly. And
the interface for keys that are on smart cards is the same as for the
ones in your home directory—so it will probably be transparent for Aerc
once you add make your smart card work with GPG.

I never signed emails with smart card, and it's been a while since I
even used one, so I can't give you better pointers.

Re: notmuch addressbook 2 months ago

From Ivan Oleynikov to ~rjarry/aerc-discuss

>Could you please open an issue at
>https://github.com/aperezdc/notmuch-addrlookup-c ?

Done! Sorry, I should have thought about it myself.


Re: notmuch addressbook 2 months ago

From Ivan Oleynikov to ~rjarry/aerc-discuss

>Also a minor note, as I'm always comparing this to my previous setup: it feels
>as good as gmail's, it's much better than online outlook and if you have
>multiple accounts it's better than both because of the unification.

Can you also make it respect NOTMUCH_PROFILE environment variable? I'm
using two separate notmuch configs, and this program doesn't work with
my setup.

For example, I call notmuch like so:

   NOTMUCH_PROFILE=default notmuch search kek

But if I try the same with notmuch-addrlookup, it fails:

Re: Modifiers besides Ctrl? 3 months ago

From Ivan Oleynikov to ~rjarry/aerc-discuss

>Have you tried 'M-left' and 'm-left'?

No, I haven't. Is there a reason it should work? Neither docs nor code
seem to mention it.

Re: Modifiers besides Ctrl? 3 months ago

From Ivan Oleynikov to ~rjarry/aerc-discuss

>Is it possible to bind modifiers besides Ctrl?
>Ones like <Alt-Left>?

By the look of config/bindings.go it doesn't look like Alt is
supported. If I understand the code correctly, this part of the file is
declaring the available keybindings:

   func init() {
     keyNames = make(map[string]KeyStroke)
     keyNames["space"] = KeyStroke{tcell.ModNone, tcell.KeyRune, ' '}
     keyNames["semicolon"] = KeyStroke{tcell.ModNone, tcell.KeyRune, ';'}
     keyNames["enter"] = KeyStroke{tcell.ModNone, tcell.KeyEnter, 0}
     keyNames["c-enter"] = KeyStroke{tcell.ModCtrl, tcell.KeyEnter, 0}
     keyNames["up"] = KeyStroke{tcell.ModNone, tcell.KeyUp, 0}

Re: [PATCH aerc] pager: show basic stats by default 5 months ago

From Ivan Oleynikov to ~rjarry/aerc-devel

> In pager, show current displayed line numbers, and the length of message
> (in percentage) currently visible to the user. Should help in reading
> long messages.

Sounds like a great idea. Applying this to my local config.


[PATCH imv v2] Remove trailing whitespace from wordexp-ed strings 5 months ago

From Ivan Oleynikov to ~exec64/imv-devel

Previous implementation was always leaving a trailing whitespace at the
end of the expanded string (used in window title, description text,
etc.). Now it doesn't happen.
 src/imv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/imv.c b/src/imv.c
index 8380a12..ba411f6 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -2002,7 +2002,7 @@ static size_t generate_env_text(struct imv *imv, char *buf, size_t buf_len, cons
  setenv("IFS", "", 1);
  if (wordexp(format, &word, 0) == 0) {
[message trimmed]

Re: [PATCH imv] title_text: remove trailing whitespace typo 5 months ago

From Ivan Oleynikov to ~exec64/imv-devel

I was wrong, the IFS='' still produces multiple words. I'll send a new
patch that removes the trailing whitespace preserving the spaces between
the words.

Re: [aerc/patches] build success 5 months ago

From Ivan Oleynikov to ~rjarry/aerc-devel

Looks good! Thanks a lot Koni!

With this patch applied, the email that was causing #44 for me is now
displayed correctly.


Re: [PATCH] fix a few warnings 6 months ago

From Ivan Oleynikov to ~ph14nix/public-inbox

On Tue May 31, 2022 at 4:26 PM MSK, Ivan Oleynikov wrote:
> ---
>  src/Environment.hs |  6 +++---
>  src/Main.hs        |  6 ------
>  src/Render.hs      | 27 ++++++++++-----------------
>  src/State.hs       |  2 +-
>  4 files changed, 14 insertions(+), 27 deletions(-)
> diff --git a/src/Environment.hs b/src/Environment.hs
> index af08146..1045de5 100644
> --- a/src/Environment.hs
> +++ b/src/Environment.hs
> @@ -13,9 +13,9 @@ import Data.List (sortOn)
>  import Data.List.Extra (nubOrd)