From: Rocco Rutte Date: Tue, 31 Mar 2009 14:03:12 +0000 (+0200) Subject: Manual: Add an example of how to manage multiple accounts using folder-hook X-Git-Tag: neomutt-20160307~701^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5213c699ab7eecd33f60f4b57de77510ca20e065;p=neomutt Manual: Add an example of how to manage multiple accounts using folder-hook --- diff --git a/ChangeLog b/ChangeLog index 262c9cc36..b4d2651f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2009-03-31 14:50 +0200 Rocco Rutte (269e3da22cc2) + + * UPDATING, doc/manual.xml.head, mutt.h, pattern.c: Perform case + insensitive string search if pattern is lower case + + ...since we do that for regex patterns already. It doesn't work for + IMAP server-side searches. + +2009-03-31 13:19 +0200 Rocco Rutte (6e6c6b9b4b67) + + * ChangeLog, doc/manual.xml.head: Manual: Fix markup of ".muttrc" + 2009-03-31 13:11 +0200 Rocco Rutte (d258178d0bd5) * doc/manual.xml.head: Manual: Always spell mutt as "Mutt" diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 423251171..feba75fc5 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -6761,7 +6761,7 @@ from most-secure to least-secure. If you happen to have accounts on multiple IMAP, POP and/or SMTP servers, you may find managing all the authentication settings inconvenient and error-prone. The account-hook command may help. This hook works like -folder-hook but is invoked whenever you access a remote mailbox +folder-hook but is invoked whenever Mutt needs to access a remote mailbox (including inside the folder browser), not just when you open the mailbox. This includes (for example) polling for new mail, storing Fcc messages and saving messages to a folder. As a consequence, @@ -6782,6 +6782,45 @@ account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"' account-hook smtp://user@host3/ 'set tunnel="ssh host3 /usr/libexec/smtpd"' + +To manage multiple accounts with, for example, different values of +$record or sender addresses, +folder-hook +has to be be used together with +the mailboxes command. + + + +Managing multiple accounts + +mailboxes imap://user@host1/INBOX +folder-hook imap://user@host1/ 'set folder=imap://host1/ ; set record=+INBOX/Sent' + +mailboxes imap://user@host2/INBOX +folder-hook imap://user@host2/ 'set folder=imap://host2/ ; set record=+INBOX/Sent' + + + + +In example + the folders are defined using +mailboxes so Mutt polls them for new +mail. Each folder-hook triggers when +one mailbox below each IMAP account is opened and sets +$folder to the account's root +folder. Next, it sets $record to +the INBOX/Sent folder below the newly +set $folder. Please notice that the +value the + +mailbox shortcut refers to depends on +the current value +of $folder and therefore has to be set +separatedly per account. Setting other values +like $from +or $signature is analogous to setting +$record. + +