Posts
5068
Following
331
Followers
504
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1
@Foxboron Yeah, I'd target on that, not because it is great, but because of dictatorship of majority ;-) E.g. newer versions of systemd have run0 (aka sudo), which is also polkit based.

I.e. if you make your shit work on with it, it is most likely that people can deploy it too in various environments.
0
0
0

Jarkko Sakkinen

#Russian #italo #disco at its best. Video clips are from early/mid nineties post-soviet times, like from rave parties of that time period. https://www.youtube.com/watch?v=X3iGfjpZI2E #digitalo
0
0
0
@Foxboron Uh oh sorry misread the question. For service requesting credentials I'd get PolicyKit is the defacto.
1
0
0
@Foxboron I use https://www.passwordstore.org/ for all my password/token/serial/etc needs and purposes.
1
0
0
@bremner @jani I'm actually at least looking if I could PoC it as a feature to aerc code base. Have to grow some motivation first I've never used Go for anything ;-)

I did read the mutt implementation through and it is not really rocket science.

I also realized (based on this discussion) that the interactive flow in mutt was the thing (to address also false positives issue) and that's why I liked it.
1
0
0

Jarkko Sakkinen

the circle has closed: https://sound-force.nl/?page_id=2318
0
0
0
@bremner @jani Anyway thanks for the comments! I now at least know what the problem is so this helped.
0
0
1
@bremner @jani Right, in mutt it was nice because you could limit the view with ~= based on message ID's and quickly delete the most obvious ones and check manually rest.

So, can notmuch form a query that would be 1:1 match to what ~= does in mutt? In that case I can use that together with :query command in aerc.
2
0
0
@bremner @jani mutt just has a hash table of message ID's that it uses (pattern.c, thread.c and hash.c in its src tree).
1
0
0

@bremner @jani I’m wondering here, did ~= in mutt do full body compare…

I’m also thinking that as aerc has this:

:query [-a <account>] [-n name] [-f] <notmuch query>
Create a virtual folder using the specified top-level notmuch query. 
This command is ex clusive to the notmuch backend. 

[man aerc]

Maybe one possibility would be feasible to implement directly into aerc :duplicate which would similarly create a virtual folder for duplicates, which would then allow interactively decide the faith (as it is for filter and query). This could potentially then do full body compare as it was within the implementation in Go.

1
0
0
@jani The most optimal would be something that would be just notmuch search query because :query command in aerc is able to do virtual folder of the messages. Then I could just add a binding to aerc.conf and would not need a script in the first place.
0
0
0

@jani And it does work ;-) That is always a a good state to begin with. I actually wanted to learn notmuch only because aerc does not have ~= query of mutt.

1
0
0
@jani How? I just started to use it.
1
0
0

Jarkko Sakkinen

Now that I’m already using maildirs again, I could fulfill the lacking feature from #aerc (compared to #mutt) using #notmuch, which de-duplicates my emails:

#!/usr/bin/env bash
#
# Copyright (c) Jarkko Sakkinen 2024
# JSON queries ripped from https://github.com/esovetkin/notmuch-deduplicate

set -e

QUERY='*'

notmuch show \
  --format=json \
  --entire-thread=false \
  --body=false \
  "${QUERY}" | \
  jq \
    -n \
    --stream 'fromstream(1 | truncate_stream(inputs))' | \
  jq -r '.. | .filename? //empty | @tsv'  | \
  grep '\t' | \
  awk -F'\t' '{for (i=2; i<=NF; i++) print $i}' | \
  xargs -I{} rm -v "{}"
notmuch new

# vim: filetype=vim ts=2 sw=2 et

#email

0
0
0
@mjg59 Generally I think that the best way to practically understand "virtual" security and access control is to reflect that with physical security.
0
0
0
@mjg59 Yes, similarly as my door adds physical security for getting into my house. With the right set of tools it can be can be torn off the hinges, but still I feel safer having a door, an not just plain doorway...
2
0
3
Show older