3 cmds="$(dirname "$(realpath -- "$0")")"
6 set mail_check_stats_interval=5
7 set sort_browser_mailboxes=reverse-unread
8 set folder_format="%3C %t %N [%3n|%3m] %D %f"
9 macro browser q "<exit><quit>"
10 macro browser R "<shell-escape>../feeds-dnp.zsh feeds ; printf \"\\\\a\"\n<check-new><check-stats>"
13 folder-hook . "set sort = reverse-date"
15 bind index q browse-mailboxes
16 macro index A <tag-pattern>~U<enter><tag-prefix><clear-flag>N
17 set date_format="%Y-%m-%d %H:%M"
18 folder-hook . "set index_format = \"%4C %Z [%D] %s (%?l?%4l&%c?)\""
21 macro pager o "|$cmds/x-urlview.sh\n"
22 set pager_index_lines = 6
24 set query_command = "mu find --muhome mu --clearlinks --format=links --linksdir=search %s"
25 macro index <F2> "<change-folder-readonly>search<enter>" "search results"
26 folder-hook search "set index_format = \"%4C [%D] %s (%F)\""
28 macro index,pager,browser <F1> "<next-unread-mailbox><enter>"
30 unignore X-Author X-URL X-Enclosure X-Categories
32 alternative_order text/plain text/html
35 color hdrdefault red default
36 color quoted brightblue default
37 color signature red default
38 color indicator brightyellow red
39 color error brightred default
40 color status yellow blue
41 color tilde magenta default
42 color message brightcyan default
43 color markers brightcyan default
44 color attachment brightmagenta default
45 color search default green
47 color header brightyellow default Date:
48 color header brightred default From:
49 color header brightgreen default Subject:
51 color body brightmagenta default "(finger|ftp|gemini|gopher|http|https|irc|ircs|news|telnet)://[^ \"\t\r\n]*"
52 color body brightmagenta default "[-a-z_0-9.]+@[-a-z_0-9.]+"
53 color underline brightgreen default
63 echo unreadable $f/title >&2
67 [ -n "$title" ] && label="-label \"$title\"" || :
68 echo mailboxes $label $f
69 echo "folder-hook $f \"macro index r '<shell-escape>$cmds/dnp.sh $f\n<change-folder>=$f\n'\""