Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2017 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e54d458ece16ad6f29b536fa840e99ec to your computer and use it in GitHub Desktop.
Save anonymous/e54d458ece16ad6f29b536fa840e99ec to your computer and use it in GitHub Desktop.
##
## Mailbox definitions
##
# Each mailbox is specified in a separate mailbox section. The section name
# specifies the mailbox name. If it has spaces, you can put the name
# "in quotes". These sections can contain the following mailbox settings:
#
# auto:
# Indicates whether the mailbox with this name is automatically created
# implicitly when it is first accessed. The user can also be automatically
# subscribed to the mailbox after creation. The following values are
# defined for this setting:
#
# no - Never created automatically.
# create - Automatically created, but no automatic subscription.
# subscribe - Automatically created and subscribed.
#
# special_use:
# A space-separated list of SPECIAL-USE flags (RFC 6154) to use for the
# mailbox. There are no validity checks, so you could specify anything
# you want in here, but it's not a good idea to use flags other than the
# standard ones specified in the RFC:
#
# \All - This (virtual) mailbox presents all messages in the
# user's message store.
# \Archive - This mailbox is used to archive messages.
# \Drafts - This mailbox is used to hold draft messages.
# \Flagged - This (virtual) mailbox presents all messages in the
# user's message store marked with the IMAP \Flagged flag.
# \Junk - This mailbox is where messages deemed to be junk mail
# are held.
# \Sent - This mailbox is used to hold copies of messages that
# have been sent.
# \Trash - This mailbox is used to hold messages that have been
# deleted.
#
# comment:
# Defines a default comment or note associated with the mailbox. This
# value is accessible through the IMAP METADATA mailbox entries
# "/shared/comment" and "/private/comment". Users with sufficient
# privileges can override the default value for entries with a custom
# value.
# Load virtual mailbox plugin
mail_plugins = $mail_plugins virtual
# create virtual mailbox
namespace inbox {
inbox = yes
prefix = "Virtual/"
separator = /
location = "virtual:~/.emails_virtual:LAYOUT=fs:INDEX=~/.emails_virtual/index"
list = yes
subscriptions = yes
}
# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
namespace real {
subscriptions = yes
list = yes
mailbox INBOX {
comment = "Default Inbox"
}
mailbox Drafts {
special_use = \Drafts
}
mailbox Queue {
special_use = \Drafts
}
mailbox Spam {
special_use = \Junk
}
mailbox Junk {
special_use = \Junk
}
mailbox Trash {
special_use = \Trash
}
mailbox "Deleted Messages" {
special_use = \Trash
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment