#!/bin/sh -e cmds="$(dirname "$(realpath -- "$0")")" cat <~UN set date_format="%Y-%m-%d %H:%M" folder-hook . "set index_format = \"%4C %Z [%D] %s (%?l?%4l&%c?)\"" bind pager o noop macro pager o "|$cmds/x-urlview.sh\n" macro index "mu find --muhome mu --clearlinks --format=links --linksdir=search " "mu find" macro index "search" "mu find results" folder-hook search "set index_format = \"%4C [%D] %s (%F)\"" unignore X-Author X-URL X-Enclosure X-Categories set folder = \`pwd\` unmailboxes * mailboxes search EOF for f in feeds/* ; do [ -s $f/title ] || { echo unreadable $f/title >&2 continue } read title < $f/title [ -n "$title" ] && label="-label \"$title\"" || : echo mailboxes $label $f done