improve address book and rename nextctype to nextpart
This commit is contained in:
parent
308b510ce7
commit
bcbc5556aa
@ -23,7 +23,7 @@ editor_cmd = "st -e vis"
|
|||||||
[[[abook]]]
|
[[[abook]]]
|
||||||
type = shellcommand
|
type = shellcommand
|
||||||
command = 'notmuch-abook.sh'
|
command = 'notmuch-abook.sh'
|
||||||
regexp = '\[?{"name": "(?P<name>.*)", "address": "(?P<email>.+)", "name-addr": ".*"}[,\]]?'
|
regexp = (?P<name>.*) <(?P<email>.+)>
|
||||||
shellcommand_external_filtering = True
|
shellcommand_external_filtering = True
|
||||||
|
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ editor_cmd = "st -e vis"
|
|||||||
[[[abook]]]
|
[[[abook]]]
|
||||||
type = shellcommand
|
type = shellcommand
|
||||||
command = 'notmuch-abook.sh'
|
command = 'notmuch-abook.sh'
|
||||||
regexp = '\[?{"name": "(?P<name>.*)", "address": "(?P<email>.+)", "name-addr": ".*"}[,\]]?'
|
regexp = (?P<name>.*) <(?P<email>.+)>
|
||||||
shellcommand_external_filtering = True
|
shellcommand_external_filtering = True
|
||||||
|
|
||||||
[bindings]
|
[bindings]
|
||||||
@ -56,4 +56,5 @@ editor_cmd = "st -e vis"
|
|||||||
[[thread]]
|
[[thread]]
|
||||||
a = tag archived ; fold
|
a = tag archived ; fold
|
||||||
A = untag archived ; unfold
|
A = untag archived ; unfold
|
||||||
n = nextctype
|
n = nextpart
|
||||||
|
p = prevpart
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
notmuch address --format=json --output=recipients --output=sender --deduplicate=address from:"$*" OR to:"$*" | rg -i "$*"
|
notmuch address --output=recipients --output=sender --deduplicate=address from:'*'"$*"'*' OR to:'*'"$*"'*' \
|
||||||
|
| grep -i "$*" \
|
||||||
|
| grep -v noreply \
|
||||||
|
| sort | uniq
|
||||||
|
Loading…
Reference in New Issue
Block a user