Make `subscribed_mailboxes` conf val optional

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/492/head
Manos Pitsidianakis 4 weeks ago
parent 1b201bf611
commit 2001b4dd06
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -77,7 +77,6 @@ root_mailbox = "/path/to/root/folder"
format = "Maildir"
listing.index_style = "Compact"
identity="email@example.com"
subscribed_mailboxes = ["folder", "folder/Sent"] # or [ "*", ] for all mailboxes
display_name = "Name"
send_mail = 'msmtp --read-recipients --read-envelope-from'
#send_mail = { hostname = "smtp.example.com", port = 587, auth = { type = "auto", username = "user", password = { type = "command_eval", value = "gpg2 --no-tty -q -d ~/.passwords/user.gpg" } }, security = { type = "STARTTLS" } }
@ -119,9 +118,7 @@ use_starttls=true #optional
send_mail = { hostname = "smtp.example.com", port = 587, auth = { type = "auto", username = "user", password = { type = "command_eval", value = "gpg2 --no-tty -q -d ~/.passwords/user.gpg" } }, security = { type = "STARTTLS" } }
display_name = "Name Name"
identity = "username@example.com"
## match every mailbox:
subscribed_mailboxes = ["*" ]
## match specific mailboxes:
## show only specific mailboxes:
#subscribed_mailboxes = ["INBOX", "INBOX/Sent", "INBOX/Drafts", "INBOX/Junk"]
.Ed
.Ss Gmail account example
@ -137,9 +134,7 @@ server_port="993"
listing.index_style = "Conversations"
identity = "username@gmail.com"
display_name = "Name Name"
## match every mailbox:
subscribed_mailboxes = ["*" ]
## Gmail auto saves sent mail to Sent folder, so don't duplicate the effort:
# Gmail auto saves sent mail to Sent folder, so don't duplicate the effort:
composing.store_sent_mail = false
.Ed
@ -156,7 +151,6 @@ server_url="http://localhost:8080"
server_username="user@hostname.local"
server_password="changeme"
identity = "user@hostname.local"
subscribed_mailboxes = ["*", ]
.Ed
.Ss fastmail.com account example
.Lk https://fastmail.com/ Fastmail
@ -174,7 +168,6 @@ server_username="user@fastmail.com"
server_password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
use_token=true
identity = "My Name <user@fastmail.com>"
subscribed_mailboxes = ["*", ]
send_mail = "server_submission"
.Ed
.Sh NOTMUCH ACCOUNT

@ -16,6 +16,7 @@
#listing.index_style = "Conversations" # or [plain, threaded, compact]
#identity="email@example.com"
#display_name = "Name"
## Need to explicitly list mailboxes of interest:
#subscribed_mailboxes = ["INBOX", "INBOX/Sent", "INBOX/Drafts", "INBOX/Junk"]
#
## Set mailbox-specific settings
@ -46,9 +47,7 @@
#listing.index_style = "Conversations"
#identity = "username@example.com"
#display_name = "Name Name"
### match every mailbox:
#subscribed_mailboxes = ["*" ]
### match specific mailboxes:
### show only specific mailboxes, overriding the server's subscribed status.
##subscribed_mailboxes = ["INBOX", "INBOX/Sent", "INBOX/Drafts", "INBOX/Junk"]
#
## Setting up an account for an already existing notmuch database
@ -77,9 +76,7 @@
#listing.index_style = "Conversations"
#identity = "username@gmail.com"
#display_name = "Name Name"
### match every mailbox:
#subscribed_mailboxes = ["*" ]
### Gmail auto saves sent mail to Sent folder, so don't duplicate the effort:
## Gmail auto saves sent mail to Sent folder, so don't duplicate the effort:
#composing.store_sent_mail = false
#
##[accounts."jmap account"]
@ -91,7 +88,6 @@
##server_password="changeme"
##listing.index_style = "Conversations"
##identity = "user@hostname.local"
##subscribed_mailboxes = ["*", ]
#
#[pager]
#filter = "COLUMNS=72 /usr/local/bin/pygmentize -l email"

@ -52,6 +52,7 @@ pub struct AccountSettings {
pub display_name: Option<String>,
#[serde(default)]
pub order: (SortField, SortOrder),
#[serde(default)]
pub subscribed_mailboxes: Vec<String>,
#[serde(default)]
pub mailboxes: IndexMap<String, MailboxConf>,

Loading…
Cancel
Save