set v15-compat=yes
set sendcharsets=utf-8,iso-8859-1
set reply-in-same-charset
set fullnames
set followup-to followup-to-honour-ask-yes
set askattach
set markanswered
set reply-to-honour
set editalong
set history-gabby=all
set autosort=date
set showlast

set pipe-text/html='?* elinks -force-html -dump 1'
wysh set pipe-application/pdf='?&=? \
               echo "${MAILX_FILENAME_TEMPORARY}"; \
               open -a Preview "${MAILX_FILENAME_TEMPORARY}"'
wysh set pipe-application/image='?&=? \
               echo "${MAILX_FILENAME_TEMPORARY}"; \
               open -a Preview "${MAILX_FILENAME_TEMPORARY}"'

define showhtml {
  \localopts yes
  \set mime-alternative-favour-rich pipe-text/html=?h?
  \type "$@" 
}
\commandalias html \\call showhtml

set netrc-lookup

account "posteo" {
    localopts yes
    set from="Kevin Bloom <your.email@mail.com>"
    set folder=imaps://posteo.de:993
    set mta=smtp://posteo.de:587 smtp-use-starttls
    set inbox=+INBOX
    set record=+Sent
    shortcut sent +Sent \
        inbox +INBOX \
        drafts +Drafts \
        trash +Trash \
        archives +Archives
    set imap-cache=~/spool/cache
}

# enable account on startup
account posteo

colour 256 sum-dotmark ft=bold,fg=13 dot
colour 256 sum-header fg=007 older
colour 256 sum-header bg=008 dot
colour 256 sum-header fg=white
colour 256 sum-thread bg=008 dot
colour 256 sum-thread fg=cyan
