mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-01 15:40:27 +00:00
380 lines
10 KiB
Groff
380 lines
10 KiB
Groff
.\" meli - meli.1
|
|
.\"
|
|
.\" Copyright 2017-2019 Manos Pitsidianakis
|
|
.\"
|
|
.\" This file is part of meli.
|
|
.\"
|
|
.\" meli is free software: you can redistribute it and/or modify
|
|
.\" it under the terms of the GNU General Public License as published by
|
|
.\" the Free Software Foundation, either version 3 of the License, or
|
|
.\" (at your option) any later version.
|
|
.\"
|
|
.\" meli is distributed in the hope that it will be useful,
|
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
.\" GNU General Public License for more details.
|
|
.\"
|
|
.\" You should have received a copy of the GNU General Public License
|
|
.\" along with meli. If not, see <http://www.gnu.org/licenses/>.
|
|
.\"
|
|
.Dd September 16, 2019
|
|
.Dt MELI.CONF 5
|
|
.Os
|
|
.Sh NAME
|
|
.Nm meli.conf
|
|
.Nd configuration file for the Meli Mail User Agent
|
|
.Sh SYNOPSIS
|
|
.Pa $XDG_CONFIG_HOME/meli/config
|
|
.Sh DESCRIPTION
|
|
Configuration for meli is written in TOML. Few things to consider before writing TOML (quoting the spec):
|
|
.Pp
|
|
.Bl -bullet -compact
|
|
.It
|
|
TOML is case sensitive.
|
|
.It
|
|
A TOML file must be a valid UTF-8 encoded Unicode document.
|
|
.It
|
|
Whitespace means tab (0x09) or space (0x20).
|
|
.It
|
|
Newline means LF (0x0A) or CRLF (0x0D 0x0A).
|
|
.El
|
|
.Pp
|
|
Refer to TOML documentation for valid TOML syntax.
|
|
.Sh SECTIONS
|
|
The top level sections of the config are accounts, shortcuts, notifications, pager, composing, pgp, terminal.
|
|
.Pp
|
|
.Sy example configuration
|
|
.Bd -literal
|
|
# Setting up a Maildir account
|
|
[accounts.account-name]
|
|
root_folder = "/path/to/root/folder"
|
|
format = "Maildir"
|
|
index_style = "Compact"
|
|
identity="email@address.tld"
|
|
subscribed_folders = ["folder", "folder/Sent"]
|
|
display_name = "Name"
|
|
|
|
# Set folder-specific settings
|
|
[accounts.account-name.folders]
|
|
"INBOX" = { rename="Inbox" } #inline table
|
|
"drafts" = { rename="Drafts" } #inline table
|
|
[accounts.account-name.folders."foobar-devel"] # or a regular table
|
|
ignore = true # don't show notifications for this folder
|
|
|
|
# Setting up an mbox account
|
|
[accounts.mbox]
|
|
root_folder = "/var/mail/username"
|
|
format = "mbox"
|
|
index_style = "Compact"
|
|
identity="username@hostname.local"
|
|
|
|
[pager]
|
|
filter = "/usr/bin/pygmentize"
|
|
html_filter = "w3m -I utf-8 -T text/html"
|
|
|
|
[notifications]
|
|
script = "notify-send"
|
|
|
|
[composing]
|
|
# required for sending e-mail
|
|
mailer_cmd = 'msmtp --read-recipients --read-envelope-from'
|
|
editor_cmd = 'vim +/^$'
|
|
|
|
[shortcuts]
|
|
scroll_up = 'k'
|
|
scroll_down = 'j'
|
|
page_up = PageUp
|
|
page_down = PageDown
|
|
|
|
[terminal]
|
|
theme = "light"
|
|
.Ed
|
|
.Pp
|
|
available options are listed below.
|
|
.Sy default values are shown in parentheses.
|
|
.Sh ACCOUNTS
|
|
.Bl -tag -width 36n
|
|
.It Ic root_folder Ar String
|
|
the backend-specific path of the root_folder, usually INBOX.
|
|
.It Ic format Ar String Op maildir mbox imap notmuch
|
|
the format of the mail backend.
|
|
.It Ic subscribed_folders Ar [String,]
|
|
an array of folder paths to display in the UI. Paths are relative to the root folder (eg "INBOX/Sent", not "Sent")
|
|
.It Ic identity Ar String
|
|
your e-mail address that is inserted in the From: headers of outgoing mail
|
|
.It Ic index_style Ar String
|
|
set the way mailboxes are displayed
|
|
.El
|
|
.TS
|
|
allbox tab(:);
|
|
lb l.
|
|
conversations:shows one entry per thread
|
|
compact:shows one row per thread
|
|
threaded:shows threads as a tree structure
|
|
plain:shows one row per mail, regardless of threading
|
|
.TE
|
|
.Bl -tag -width 36n
|
|
.It Ic display_name Ar String
|
|
(optional) a name which can be combined with your address:
|
|
"Name <email@address.tld>"
|
|
.It Ic read_only Ar boolean
|
|
attempt to not make any changes to this account.
|
|
.Pq Em false
|
|
.It Ic cache_type Ar String
|
|
choose which cache backend to use. Available options are 'none' and 'sqlite3'
|
|
.Pq Em "sqlite3"
|
|
.It Ic folders Ar folder_config
|
|
(optional) configuration for each folder. Its format is described below in
|
|
.Sx FOLDERS Ns
|
|
\&.
|
|
.El
|
|
.Sh notmuch only
|
|
.Ic root_folder
|
|
points to the directory which contains the
|
|
.Pa .notmuch/
|
|
subdirectory. notmuch folders are virtual, since they are defined by user-given notmuch queries. Thus you have to explicitly state the folders you want in the
|
|
.Ic folders
|
|
field and set the
|
|
.Ar query
|
|
property to each of them. Example:
|
|
.Bd -literal
|
|
[accounts.notmuch]
|
|
format = "notmuch"
|
|
\&...
|
|
[accounts.notmuch.folders]
|
|
"INBOX" = { query="tag:inbox", subscribe = true }
|
|
"Drafts" = { query="tag:draft", subscribe = true }
|
|
"Sent" = { query="from:username@server.tld from:username2@server.tld", subscribe = true }
|
|
.Ed
|
|
.Sh IMAP only
|
|
IMAP specific options are:
|
|
.Bl -tag -width 36n
|
|
.It Ic server_hostname Ar String
|
|
example:
|
|
.Qq mail.example.tld
|
|
.It Ic server_username Ar String
|
|
.It Ic server_password Ar String
|
|
.It Ic server_port Ar number
|
|
(optional)
|
|
.\" default value
|
|
.Pq Em 143
|
|
.It Ic use_starttls Ar boolean
|
|
(optional) if port is 993 and use_starttls is unspecified, it becomes false by default.
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic danger_accept_invalid_certs Ar boolean
|
|
(optional) do not validate TLS certificates.
|
|
.\" default value
|
|
.Pq Em false
|
|
.El
|
|
.Sh FOLDERS
|
|
.Bl -tag -width 36n
|
|
.It Ic rename Ar String
|
|
(optional) show a different name for this folder in the UI
|
|
.It Ic autoload Ar boolean
|
|
(optional) load this folder on startup (not functional yet)
|
|
.It Ic subscribe Ar boolean
|
|
(optional) watch this folder for updates
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic ignore Ar boolean
|
|
(optional) silently insert updates for this folder, if any
|
|
.\" default value
|
|
.Pq Em false
|
|
.It Ic usage Ar boolean
|
|
(optional) special usage of this folder. valid values are:
|
|
.Bl -bullet -compact
|
|
.It
|
|
.Ar Normal
|
|
.It
|
|
.Ar Inbox
|
|
.It
|
|
.Ar Archive
|
|
.It
|
|
.Ar Drafts
|
|
.It
|
|
.Ar Flagged
|
|
.It
|
|
.Ar Junk
|
|
.It
|
|
.Ar Sent
|
|
.It
|
|
.Ar Trash
|
|
.El
|
|
otherwise usage is inferred from the folder title.
|
|
.It Ic conf_override Ar boolean
|
|
(optional) override global settings for this folder. available sections to override are
|
|
.Em pager, notifications, shortcuts, composing
|
|
and the account options
|
|
.Em identity and index_style Ns
|
|
\&. example:
|
|
.Bd -literal
|
|
[accounts."imap.domain.tld".folders."INBOX"]
|
|
index_style = "plain"
|
|
[accounts."imap.domain.tld".folders."INBOX".pager]
|
|
filter = ""
|
|
.Ed
|
|
.El
|
|
.Sh COMPOSING
|
|
.Bl -tag -width 36n
|
|
.It Ic mailer_cmd Ar String
|
|
command to pipe new mail to, exit code must be 0 for success.
|
|
.It Ic editor_cmd Ar String
|
|
command to launch editor. Can have arguments. Draft filename is given as the last argument. If it's missing, the environment variable $EDITOR is looked up.
|
|
.It Ic embed Ar boolean
|
|
(optional) embed editor within meli
|
|
.\" default value
|
|
.Pq Em false
|
|
.It Ic format_flowed Ar boolean
|
|
(optional) set format=flowed [RFC3676] in text/plain attachments.
|
|
.\" default value
|
|
.Pq Em true
|
|
.El
|
|
.Sh SHORTCUTS
|
|
Shortcuts can take the following values:
|
|
.Qq Em Backspace
|
|
.Qq Em Left
|
|
.Qq Em Right
|
|
.Qq Em Up
|
|
.Qq Em Down
|
|
.Qq Em Home
|
|
.Qq Em End
|
|
.Qq Em PageUp
|
|
.Qq Em PageDown
|
|
.Qq Em Delete
|
|
.Qq Em Insert
|
|
.Qq Em Esc
|
|
and
|
|
.Qq Em char Ns
|
|
, where char is a single character string.
|
|
.Bl -tag -width 36n
|
|
.It Ic prev_page
|
|
Go to previous page.
|
|
.It Ic next_page
|
|
Go to next page.
|
|
.It Ic prev_folder
|
|
Go to previous folder.
|
|
.It Ic next_folder
|
|
Go to next folder.
|
|
.It Ic prev_account
|
|
Go to previous account.
|
|
.It Ic next_account
|
|
Go to next account.
|
|
.It Ic new_mail
|
|
Start new mail draft in new tab
|
|
.It Ic open_thread
|
|
Open thread.
|
|
.It Ic exit_thread
|
|
Exit thread view
|
|
.It Ic scroll_up
|
|
Scroll up pager.
|
|
.It Ic scroll_down
|
|
Scroll down pager.
|
|
.It Ic page_up
|
|
Go to previous pager page
|
|
.It Ic page_down
|
|
Go to next pager pag
|
|
.It Ic create_contact
|
|
Create new contact.
|
|
.It Ic edit_contact
|
|
Edit contact under cursor
|
|
.El
|
|
.Sh NOTIFICATIONS
|
|
.Bl -tag -width 36n
|
|
.It Ic enable Ar boolean
|
|
enable freedesktop-spec notifications. this is usually what you want
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic script Ar String
|
|
(optional) script to pass notifications to, with title as 1st arg and body as 2nd
|
|
.\" default value
|
|
.Pq Em none
|
|
.It Ic xbiff_file_path Ar String
|
|
(optional) file that gets its size updated when new mail arrives
|
|
.Pq Em none
|
|
.\" default value
|
|
.It Ic play_sound Ar boolean
|
|
(optional) play theme sound in notifications if possible
|
|
.Pq Em false
|
|
.\" default value
|
|
.It Ic sound_file Ar String
|
|
(optional) play sound file in notifications if possible
|
|
.\" default value
|
|
.Pq Em none
|
|
.El
|
|
.Sh PAGER
|
|
.Bl -tag -width 36n
|
|
.It Ic pager_context Ar num
|
|
(optional) number of context lines when going to next page.
|
|
.\" default value
|
|
.Pq Em 0
|
|
.It Ic headers_sticky Ar boolean
|
|
(optional) always show headers when scrolling.
|
|
.\" default value
|
|
.Pq Em false
|
|
.It Ic html_filter Ar String
|
|
(optional) pipe html attachments through this filter before display
|
|
.\" default value
|
|
.Pq Em none
|
|
.It Ic filter Ar String
|
|
(optional) a command to pipe mail output through for viewing in pager.
|
|
.\" default value
|
|
.Pq Em none
|
|
.It Ic format_flowed Ar bool
|
|
(optional) respect format=flowed
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic split_long_lines Ar bool
|
|
(optional) Split long lines that would overflow on the x axis.
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic minimum_width Ar num
|
|
(optional) Minimum text width in columns.
|
|
.\" default value
|
|
.Pq Em 80
|
|
.El
|
|
.Sh PGP
|
|
.Bl -tag -width 36n
|
|
.It Ic auto_verify_signatures Ar boolean
|
|
auto verify signed e-mail according to RFC3156
|
|
.\" default value
|
|
.Pq Em true
|
|
.It Ic auto_sign Ar boolean
|
|
(optional) always sign sent messages
|
|
.\" default value
|
|
.Pq Em false
|
|
.It Ic key Ar String
|
|
(optional) key to be used when signing/encrypting (not functional yet)
|
|
.\" default value
|
|
.Pq Em none
|
|
.It Ic gpg_binary Ar String
|
|
(optional) gpg binary name or file location to use
|
|
.\" default value
|
|
.Pq Em "gpg2"
|
|
.El
|
|
.Sh TERMINAL
|
|
.Bl -tag -width 36n
|
|
.It Ic theme Ar String
|
|
(optional) select between these themes: light / dark
|
|
.\" default value
|
|
.Pq Em dark
|
|
.It Ic ascii_drawing Ar boolean
|
|
(optional) if true, box drawing will be done with ascii characters.
|
|
.\" default value
|
|
.Pq Em false
|
|
.It Ic window_title Ar String
|
|
(optional) set window title in xterm compatible terminals (empty string means no window title is set)
|
|
.\" default value
|
|
.Pq Em "meli"
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr meli 1
|
|
.Sh CONFORMING TO
|
|
TOML Standard v.0.5.0 https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md
|
|
.Sh AUTHORS
|
|
Copyright 2017-2019
|
|
.An Manos Pitsidianakis Aq epilys@nessuent.xyz
|
|
Released under the GPL, version 3 or greater. This software carries no warranty of any kind. (See COPYING for full copyright and warranty notices.)
|
|
.Pp
|
|
.Aq https://meli.delivery
|