config - dotfiles - These are my dotfiles. There are many like it, but these are mine.
 (HTM) git clone git://jay.scot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       config (1879B)
       ---
            1 
            2 # commands
            3 $imap_pass        = $(pass tech/mailbox.org | head -n1)
            4 
            5 # macros.
            6 $path                = "%h/.mail"
            7 $feedcache        = "%h/.mail/fdm.cache"
            8 $feeddir        = "%h/.mail/feeds/"
            9 $listdir        = "%h/.mail/ml"
           10 $strurl                = "(http[s]?://.*|gemini://.*)"
           11 
           12 # options
           13 set unmatched-mail keep
           14 set no-received
           15 cache "${feedcache}"
           16 
           17 # accounts
           18 account "feeds" disabled mbox "%[home]/.config/sfeed/mbox"
           19 account "personal" imaps
           20         server "imap.mailbox.org"
           21         port 993
           22         user "me@jay.scot"
           23         pass "${imap_pass}"
           24 
           25 # maildirs
           26 action "inbox"  maildir "${path}/%u/Inbox"
           27 
           28 # mailing lists
           29 action        "openbsd-announce" maildir "${listdir}/openbsd.announce"
           30 action        "openbsd-misc" maildir "${listdir}/openbsd.misc"
           31 action        "alpine-users" maildir "${listdir}/alpine.users"
           32 action        "alpine-aports" maildir "${listdir}/alpine.aports"
           33 action        "alpine-announce" maildir "${listdir}/alpine.announce"
           34 action        "alpine-devel" maildir "${listdir}/alpine.devel"
           35 
           36 # feeds
           37 action "feedtag" tag "msgid" value "%1"
           38 action "feedget" rewrite "%h/bin/fdm_parse_feeds.sh"
           39 action "feedsave" {
           40         maildir "${feeddir}%1"
           41         add-to-cache "${feedcache}" key "%[msgid]"
           42         keep
           43 }
           44 
           45 # alpine
           46 match "^List-Id:.*lists\\.alpinelinux\\.org" in headers {
           47        match "^List-Id:.*announce" in headers action "alpine-announce"
           48        match "^List-Id:.*devel" in headers action "alpine-devel"
           49        match "^List-Id:.*users" in headers action "alpine-users"
           50        match "^List-Id:.*aports" in headers action "alpine-aports"
           51 }
           52 
           53 # openbsd
           54 match "^Sender:[ \t]*owner-([a-z-]*)@openbsd\\.org" in headers action "openbsd-%1"
           55 
           56 # sfeeds
           57 match account "feeds" {
           58         match case "^Message-ID: (.*)" in headers action "feedtag" continue
           59         match matched and in-cache "${feedcache}" key "%[msgid]" action keep
           60         match $strurl action "feedget" continue
           61         match case "^X-Feedname: (.*)" in headers action "feedsave"
           62 }
           63 
           64 # match all mail and deliver using the 'inbox' action.
           65 match all action "inbox"