From f04a66edf65c771ed14189d63910b67bd5d945af Mon Sep 17 00:00:00 2001 From: Stefan Kropp Date: Fri, 7 Dec 2018 19:52:16 +0100 Subject: [PATCH] Configuration example IMAP --- config/generate-imap.sh | 23 +++++++++++ config/neomuttrc-imap-example | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 config/generate-imap.sh create mode 100644 config/neomuttrc-imap-example diff --git a/config/generate-imap.sh b/config/generate-imap.sh new file mode 100644 index 0000000..8d1ccd6 --- /dev/null +++ b/config/generate-imap.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +FILE=neomuttrc-imap-example + +SEP="##########################################################################" + +echo $SEP >> $FILE +echo "# IMAP - Neomutt configuration" >> $FILE +echo $SEP >> $FILE + +cat variable/01-002-realname.txt >> $FILE +cat variable/01-003-from.txt >> $FILE +cat variable/02-003-spoolfile.txt >> $FILE + +echo "# set spoolfile=\"imaps://domain.tld/\"" >> $FILE + +cat variable/02-007-mailboxes.txt >> $FILE + +echo "mailboxes \$spoolfile" >> $FILE + +cat variable/07-001-imap_user >> $FILE +cat variable/07-002-imap_pass >> $FILE + diff --git a/config/neomuttrc-imap-example b/config/neomuttrc-imap-example new file mode 100644 index 0000000..e7c9d67 --- /dev/null +++ b/config/neomuttrc-imap-example @@ -0,0 +1,72 @@ +########################################################################## +# IMAP - Neomutt configuration +########################################################################## +# ------------------------------------------------------------------------- +# Name: realname +# ------------------------------------------------------------------------- +# This variable specifies what “real” or “personal” name should be used +# when sending mes‐ sages. If not specified, then the user's “real name” +# will be read from /etc/passwd. This option will not be used, if +# “$from” is set. +# ------------------------------------------------------------------------- + +# set realname = "Firstname Lastname" + + +# ------------------------------------------------------------------------- +# Name: from +# ------------------------------------------------------------------------- +# When set, this variable contains a default “from” address. It can be +# overridden using “my_hdr” (including from a “send-hook”) and +# $reverse_name. This variable is ignored if $use_from is unset. If not +# specified, then it may be read from the environment variable $EMAIL. +# ------------------------------------------------------------------------- + +# set from="mailbox@domain.tld" +# ------------------------------------------------------------------------- +# Name: spoolfile +# ------------------------------------------------------------------------- +# If your spool mailbox is in a non-default place where NeoMutt cannot find +# it, you can specify its location with this variable. If not specified, +# then the environment variables $MAIL and $MAILDIR will be checked. +# ------------------------------------------------------------------------- + +# set spoolfile = "" +# set spoolfile="imaps://domain.tld/" +# ------------------------------------------------------------------------- +# Name: mailboxes +# ------------------------------------------------------------------------- +# The mailboxes specifies folders which can receive mail and which will +# be checked for new messages. When changing folders, pressing space will +# cycle through folders with new mail. The named-mailboxes is an +# alternative to mailboxes that allows adding a description for a mailbox. +# NeoMutt can be configured to display the description instead of the +# mailbox path. The unmailboxes command is used to remove a file name +# from the list of folders which can receive mail. If “*” is specified as +# the file name, the list is emptied. +# ------------------------------------------------------------------------- + +# unmailboxes * +# mailboxes +Drafts +Sent +Spam +mailboxes $spoolfile +# ------------------------------------------------------------------------- +# Name: imap_user +# ------------------------------------------------------------------------- +# The name of the user whose mail you intend to access on the IMAP server. +# This variable defaults to your user name on the local machine. + +# set imap_user = "imapuser" + +# ------------------------------------------------------------------------- +# Name: imap_pass +# ------------------------------------------------------------------------- +# Specifies the password for your IMAP account. If unset, NeoMutt will +# prompt you for your password when you invoke the +# function or try to open an IMAP folder. +# +# Warning: you should only use this option when you are on a fairly secure +# machine, because the superuser can read your neomuttrc even if you are +# the only one who can read the file. + +# set imap_pass = "imappasswd" +