set from = "julien@malka.sh"
# Nom complet de l'expéditeur
set realname = "Julien Malka"
# Génération du champs from
set use_from = yes

set edit_headers=yes
set reverse_name
set mark_old=no
set editor = "nvim -c 'set tw=72' -c 'set wrap'"
#set editor="vim +':set textwidth=0' +':set wrapmargin=0' +':set wrap'"
#set wrap="72"
set folder = ~/Maildir

#set spoolfile=/home/julien/Maildir/ens/Inbox
set mbox_type=Maildir
set virtual_spoolfile=yes
set header_cache=~/.cache/mutt
set sidebar_visible = yes
#set record = "+Sent\ Messages"
set nm_unread_tag = unread
set mail_check_stats=yes
set sidebar_short_path = yes


set timeout=10
set mail_check=10
named-mailboxes "-----work-----" =sep1
virtual-mailboxes "inbox" "notmuch://?query=tag:work-inbox
virtual-mailboxes "dn42" "notmuch://?query=tag:work-dn42
virtual-mailboxes "fosdem" "notmuch://?query=tag:work-fosdem
virtual-mailboxes "frnog" "notmuch://?query=tag:work-frnog
virtual-mailboxes "github" "notmuch://?query=tag:work-github
virtual-mailboxes "lobsters" "notmuch://?query=tag:work-lobsters
virtual-mailboxes "netdata" "notmuch://?query=tag:work-netdata
virtual-mailboxes "nixos-discourse" "notmuch://?query=tag:work-nixos-discourse
virtual-mailboxes "proxmox" "notmuch://?query=tag:work-proxmox

named-mailboxes "-----ens-----" =sep2
virtual-mailboxes "inbox" "notmuch://?query=tag:ens-inbox
virtual-mailboxes "bilan-carbone" "notmuch://?query=tag:ens-bilan-carbone
virtual-mailboxes "cof" "notmuch://?query=tag:ens-cof
virtual-mailboxes "dg" "notmuch://?query=tag:ens-dg
virtual-mailboxes "kfet" "notmuch://?query=tag:ens-kfet

named-mailboxes "---telecom---" =sep3
virtual-mailboxes "inbox" "notmuch://?query=tag:telecom-inbox

named-mailboxes "----dgnum----" =sep4
virtual-mailboxes "inbox" "notmuch://?query=tag:dgnum-inbox
virtual-mailboxes "bureau" "notmuch://?query=tag:dgnum-bureau
virtual-mailboxes "nixcon" "notmuch://?query=tag:dgnum-nixcon


set sidebar_width=15
set sidebar_divider_char='|'
# color of folders with new mail
# ctrl-n, ctrl-p to select next, prev folder# ctrl-o to open selected folder
bind index \CP sidebar-prev
bind index \CN sidebar-next
bind index \CO sidebar-open
bind pager \CP sidebar-prev
bind pager \CN sidebar-next
bind pager \CO sidebar-open
bind pager \CK previous-line
set nm_default_url = "notmuch:///home/julien/Maildir"

macro index \\ "<vfolder-from-query>"
set metoo=yes

set query_command="notmuch-addrlookup --format=mutt '%s'"
set text_flowed

set collapse_unread = no
set collapse_all = yes

bind index - collapse-thread

bind editor <Tab> complete-query
bind editor ^T complete



set sort = threads 
set sort_aux = reverse-last-date-received


folder-hook "ens-inbox"  'source ~/.config/neomutt/ens.profile'
folder-hook "ens-bilan-carbone"  'source ~/.config/neomutt/ens.profile'
folder-hook "ens-cof"  'source ~/.config/neomutt/ens.profile'
folder-hook "ens-dg"  'source ~/.config/neomutt/ens.profile'
folder-hook "ens-kfet"  'source ~/.config/neomutt/ens.profile'

folder-hook "telecom-inbox"  'source ~/.config/neomutt/telecom.profile'

folder-hook "work-nixos-discourse"  'source ~/.config/neomutt/discourse.profile'
folder-hook "work-dn42"  'source ~/.config/neomutt/work.profile'
folder-hook "work-frnog"  'source ~/.config/neomutt/work.profile'
folder-hook "work-inbox"  'source ~/.config/neomutt/work.profile'
folder-hook "work-github"  'source ~/.config/neomutt/work.profile'
folder-hook "work-fosdem"  'source ~/.config/neomutt/work.profile'
folder-hook "work-proxmox"  'source ~/.config/neomutt/work.profile'
folder-hook "work-netdata"  'source ~/.config/neomutt/work.profile'
folder-hook "work-lobsters"  'source ~/.config/neomutt/work.profile'

folder-hook "dgnum-inbox"  'source ~/.config/neomutt/dgnum.profile'
folder-hook "dgnum-bureau"  'source ~/.config/neomutt/dgnum.profile'
folder-hook "dgnum-nixcon"  'source ~/.config/neomutt/dgnum.profile'

set sidebar_format = '%D%* %?N?(%N)?%*'
color sidebar_unread yellow default

source dracula.muttrc
set sendmail = "msmtp"