feat: better mail searching

This commit is contained in:
Flinner 2022-04-02 23:10:01 +03:00
parent 7b035cf185
commit d00fef3473
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
[module/thunderbird]
type = custom/script
exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\(\^A2=(\w+)\).*/\1/' | xargs --replace=__ printf '%d\n' '0x__'" \; | grep -o '^[0-9]' | paste -sd+ | bc
exec = find ~/.thunderbird/*/ImapMail -name 'INBOX*.msf' -exec sh -c "echo '{}' && grep '(^A2=' '{}' | tail -n1 | sed -r 's/.*\\(\\^A2=(\\w+)\\).*/\\1/' | xargs --replace=__ printf '%d\\n' '0x__'" \\; | grep -o '^[0-9]' | paste -sd+ | bc
interval = 5
@ -33,7 +33,7 @@ format-prefix-foreground = ${color.yellow}
[module/mu4e]
type = custom/script
exec = ( ls -1 ~/.mail/*/*/new/* 2> /dev/null | wc -l ) || echo 0
exec = find ~/.mail -path '*/*/new/*' -type f | wc -l
interval = 5