summaryrefslogtreecommitdiff
path: root/alot/defaults
diff options
context:
space:
mode:
Diffstat (limited to 'alot/defaults')
-rw-r--r--alot/defaults/abook_contacts.spec2
-rw-r--r--alot/defaults/alot.rc.spec27
-rw-r--r--alot/defaults/default.theme49
-rw-r--r--alot/defaults/theme.spec50
4 files changed, 105 insertions, 23 deletions
diff --git a/alot/defaults/abook_contacts.spec b/alot/defaults/abook_contacts.spec
index a360c069..bd7922c8 100644
--- a/alot/defaults/abook_contacts.spec
+++ b/alot/defaults/abook_contacts.spec
@@ -4,4 +4,4 @@
[__many__]
name = string(default=None)
- email = string(default=None)
+ email = force_list(default=list())
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec
index de95ea60..dc1c3c1f 100644
--- a/alot/defaults/alot.rc.spec
+++ b/alot/defaults/alot.rc.spec
@@ -27,10 +27,10 @@ theme = string(default=None)
display_content_in_threadline = boolean(default=False)
# headers that get displayed by default
-displayed_headers = string_list(default=list(From,To,Cc,Bcc,Subject))
+displayed_headers = force_list(default=list(From,To,Cc,Bcc,Subject))
# headers that are hidden in envelope buffers by default
-envelope_headers_blacklist = string_list(default=list(In-Reply-To,References))
+envelope_headers_blacklist = force_list(default=list(In-Reply-To,References))
# Replace own email addresses with "me" in author lists
# Uses own addresses and aliases in all configured accounts.
@@ -51,6 +51,7 @@ editor_cmd = string(default=None)
editor_writes_encoding = string(default='UTF-8')
# use terminal_command to spawn a new terminal for the editor?
+# equivalent to always providing the `--spawn` parameter to compose/edit commands
editor_spawn = boolean(default=False)
# call editor in separate thread.
@@ -61,10 +62,10 @@ editor_in_thread = boolean(default=False)
# Which header fields should be editable in your editor
# used are those that match the whitelist and don't match the blacklist.
# in both cases '*' may be used to indicate all fields.
-edit_headers_whitelist = string_list(default=list(*,))
+edit_headers_whitelist = force_list(default=list(*,))
# see :ref:`edit_headers_whitelist <edit-headers-whitelist>`
-edit_headers_blacklist = string_list(default=list(Content-Type,MIME-Version,References,In-Reply-To))
+edit_headers_blacklist = force_list(default=list(Content-Type,MIME-Version,References,In-Reply-To))
# timeout in seconds after a failed attempt to writeout the database is repeated
flush_retry_timeout = integer(default=5)
@@ -145,20 +146,28 @@ prompt_suffix = string(default=':')
realname = string
# used to clear your addresses/ match account when formatting replies
- aliases = string_list(default=list())
+ aliases = force_list(default=list())
# sendmail command. This is the shell command used to send out mails via the sendmail protocol
- sendmail_command = string(default='sendmail')
+ sendmail_command = string(default='sendmail -t')
- # where to store outgoing mails, e.g. `maildir:///home/you/mail//Sent`
+ # where to store outgoing mails, e.g. `maildir:///home/you/mail/Sent`.
# You can use mbox, maildir, mh, babyl and mmdf in the protocol part of the URL.
+ #
+ # .. note:: If you want to add outgoing mails automatically to the notmuch index
+ # you must use maildir in a path within your notmuch database path.
sent_box = mail_container(default=None)
- # where to store draft mails, see :ref:`sent_box <sent-box>` for the format
+ # where to store draft mails, e.g. `maildir:///home/you/mail/Drafts`.
+ # You can use mbox, maildir, mh, babyl and mmdf in the protocol part of the URL.
+ #
+ # .. note:: You will most likely want drafts indexed by notmuch to be able to
+ # later access them within alot. This currently only works for
+ # maildir containers in a path below your notmuch database path.
draft_box = mail_container(default=None)
# list of tags to automatically add to outgoing messages
- sent_tags = string_list(default=list('sent'))
+ sent_tags = force_list(default=list('sent'))
# path to signature file that gets attached to all outgoing mails from this account, optionally
# renamed to ref:`signature_filename <signature-filename>`.
diff --git a/alot/defaults/default.theme b/alot/defaults/default.theme
index 269bf856..e5781912 100644
--- a/alot/defaults/default.theme
+++ b/alot/defaults/default.theme
@@ -2,6 +2,8 @@
[[global]]
[[[footer]]]
fg = 'standout'
+ [[[body]]]
+ fg = 'default'
[[[notify_error]]]
fg = 'standout'
[[[notify_normal]]]
@@ -12,8 +14,6 @@
fg = 'default'
[[[tag_focus]]]
fg = 'standout, bold'
- [[[tag_draft]]]
- fg = 'standout'
[[help]]
[[[text]]]
fg = 'default'
@@ -84,12 +84,23 @@
fg = 'standout'
[[[summary_odd]]]
fg = 'default'
-
+[[envelope]]
+ [[[body]]]
+ fg = 'default'
+ [[[header]]]
+ fg = 'default'
+ [[[header_key]]]
+ fg = 'default'
+ [[[header_value]]]
+ fg = 'default'
[16]
[[global]]
[[[footer]]]
bg = 'dark blue'
fg = 'light green'
+ [[[body]]]
+ bg = 'default'
+ fg = 'default'
[[[notify_error]]]
bg = 'dark red'
fg = 'white'
@@ -105,9 +116,6 @@
[[[tag_focus]]]
bg = 'dark gray'
fg = 'white'
- [[[tag_draft]]]
- bg = 'light red'
- fg = 'white'
[[help]]
[[[text]]]
bg = 'dark gray'
@@ -156,6 +164,19 @@
[[[summary_odd]]]
bg = 'dark blue'
fg = 'white'
+[[envelope]]
+ [[[body]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[header]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_key]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_value]]]
+ bg = 'dark gray'
+ fg = 'light gray'
[[search]]
[[[thread]]]
bg = 'default'
@@ -206,6 +227,9 @@
[[[footer]]]
bg = '#006'
fg = 'white'
+ [[[body]]]
+ bg = 'default'
+ fg = 'default'
[[[notify_error]]]
bg = 'dark red'
fg = 'white'
@@ -315,3 +339,16 @@
[[[summary_odd]]]
bg = '#006'
fg = 'white'
+[[envelope]]
+ [[[body]]]
+ bg = 'default'
+ fg = 'light gray'
+ [[[header]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_key]]]
+ bg = 'dark gray'
+ fg = 'white'
+ [[[header_value]]]
+ bg = 'dark gray'
+ fg = 'light gray'
diff --git a/alot/defaults/theme.spec b/alot/defaults/theme.spec
index 8f2ca0d5..f23d91da 100644
--- a/alot/defaults/theme.spec
+++ b/alot/defaults/theme.spec
@@ -2,6 +2,8 @@
[[global]]
[[[footer]]]
fg = string(default='default')
+ [[[body]]]
+ fg = string(default='default')
[[[notify_error]]]
fg = string(default='default')
[[[notify_normal]]]
@@ -12,8 +14,6 @@
fg = string(default='default')
[[[tag_focus]]]
fg = string(default='default')
- [[[tag_draft]]]
- fg = string(default='default')
[[help]]
[[[text]]]
fg = string(default='default')
@@ -84,12 +84,24 @@
fg = string(default='default')
[[[summary_odd]]]
fg = string(default='default')
+[[envelope]]
+ [[[body]]]
+ fg = string(default='default')
+ [[[header]]]
+ fg = string(default='default')
+ [[[header_key]]]
+ fg = string(default='default')
+ [[[header_value]]]
+ fg = string(default='default')
[16]
[[global]]
[[[footer]]]
bg = string(default='default')
fg = string(default='default')
+ [[[body]]]
+ bg = string(default='default')
+ fg = string(default='default')
[[[notify_error]]]
bg = string(default='default')
fg = string(default='default')
@@ -105,9 +117,6 @@
[[[tag_focus]]]
bg = string(default='default')
fg = string(default='default')
- [[[tag_draft]]]
- bg = string(default='default')
- fg = string(default='default')
[[help]]
[[[text]]]
bg = string(default='default')
@@ -156,6 +165,19 @@
[[[summary_odd]]]
bg = string(default='default')
fg = string(default='default')
+[[envelope]]
+ [[[body]]]
+ bg = string(default='default')
+ fg = string(default='default')
+ [[[header]]]
+ bg = string(default='default')
+ fg = string(default='default')
+ [[[header_key]]]
+ bg = string(default='default')
+ fg = string(default='default')
+ [[[header_value]]]
+ bg = string(default='default')
+ fg = string(default='default')
[[search]]
[[[thread]]]
bg = string(default='default')
@@ -206,6 +228,9 @@
[[[footer]]]
bg = string(default=None)
fg = string(default=None)
+ [[[body]]]
+ bg = string(default=None)
+ fg = string(default=None)
[[[notify_error]]]
bg = string(default=None)
fg = string(default=None)
@@ -313,5 +338,16 @@
[[[summary_odd]]]
bg = string(default=None)
fg = string(default=None)
-
-
+[[envelope]]
+ [[[body]]]
+ bg = string(default=None)
+ fg = string(default=None)
+ [[[header]]]
+ bg = string(default=None)
+ fg = string(default=None)
+ [[[header_key]]]
+ bg = string(default=None)
+ fg = string(default=None)
+ [[[header_value]]]
+ bg = string(default=None)
+ fg = string(default=None)