# -*- muttngrc -*-
#
# Muttng configuration file
# 2006,  kolter <kolter@openics.org>
#
#  This file is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY
#
# Global configuration file for Muttng.
#

set realname        = "Emmanuel Bouthenot"
set from            = "kolter@openics.org"
set signature       = "~/.signatures/kolter_openics"
alternates          "kolter|emmanuel\.bouthenot|openics\.org|netconfig|bouthenot\.name"

#set use_envelope_from = yes                      # set return-path to from instead of user@hostname

set locale          = "fr_FR.UTF-8"
set charset         = "utf-8"

#set folder          = "imap://127.0.0.1"
#set mbox            = "imap://127.0.0.1/INBOX"
#set spoolfile       = "imap://127.0.0.1/INBOX"
#set record          = "imap://127.0.0.1/Sent"     # where to save sent mails
#set postponed       = "imap://127.0.0.1/Draft"    # where to save drafts

#source              ~/.muttngrc-imapauth          # get authentication params for imap

set mbox_type        = Maildir
set folder           = "~/Mail/imap"
set mask             = "^\\.[^.]"
set mbox             = "~/Mail/imap"
set record           = "+.Sent"
set postponed        = "+.Drafts"
set spoolfile        = "~/Mail/imap"

set header_cache    = ~/.muttng/cache
set tmpdir          = ~/.muttng/tmp

set mail_check      = 60
set timeout         = 240

# nntp settings
set nntp_host       = "news.free.fr"
set nntp_cache_dir  = ~/.muttng/cache-nntp
#set nntp_catchup    = yes
set nntp_mail_check = 10
#set nntp_reconnect  = yes
#set nntp_group_index_format="%4C %M%N %n %5s  %-45.45f %d"

# sidebar settings
set sidebar_visible = yes
set sidebar_width   = 46
set sidebar_shorten_hierarchy = yes

# user defined vars
set user_mua          = "`muttng -v | head -1`"
set user_os           = "Debian GNU/`uname -s` `cat /etc/debian_version` (`uname -r | cut -d'.' -f1-3`)"
set user_gpg_id       = '414EC36E'
set user_gpg_fprint   = '04DE 2F33 3CEF EF4F 46BF D6EA A475 EA19 414E C36E'

#set mask="^[^.]"
set editor               = "emacs -nw"
set pager_stop           = yes                    # Do not move to the next message when at the end of a message
set pager_context        = 2
set pager_index_lines    = 15
set edit_headers         = no
set query_command        = "abook --mutt-query '%s'"
set sleep_time           = 0

set smart_wrap           = yes                    # force wrapping of long lines
set wrapmargin           = 10                     # margin of wraped lines

auto_view text/html
alternative_order text/enriched text/plain text

set reverse_name    = yes                        # reply with address used by mail

set recall          = no
set mark_old        = no                         # Do not mark unread messages as old when leaving
set delete          = ask-yes
set print           = ask-yes
set include         = yes

set index_format     = "%3C %Z | %4c | %[%a %d %b %Y] | %[%H:%M] | %-27.27n | %s"
set pager_format     = "| %C | %e | %Z | %c | %[%a %d %b %Y] | %[%H:%M] | %L (%a) | %s"
set xterm_set_titles = yes
set tilde            = yes
#set narrow_tree     = yes

set strict_threads   = yes
set sort             = reverse-threads
#set sort            = threads                     # Sort by threads
#set sort_aux        = reverse-date                # Then sort by date

source              ~/.muttng/conf/mailboxes

source              ~/.muttng/conf/headers           # Configure header display.
source              ~/.muttng/conf/my-headers        # Set personnal headers.
source              ~/.muttng/conf/colors            # Define colours.
source              ~/.muttng/conf/macros            # Define macros.
source              ~/.muttng/conf/keys              # Define keybindings.
source              ~/.muttng/conf/subscribes        # Define subscribing lists.
source              ~/.muttng/conf/identities        # Define identities.

set mailcap_path    = "~/.muttng/etc/mailcap:/etc/mailcap"

set alias_file="~/.muttng/conf/aliases"
source ~/.muttng/conf/aliases