From ccbd65468a13d28d1bba10f73d5c25bf5f8a7382 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Thu, 16 Apr 2009 19:14:58 +0200 Subject: [PATCH] Manual: Improve docs on URL syntax, add examples --- doc/manual.xml.head | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/doc/manual.xml.head b/doc/manual.xml.head index f1d3c4c14..ca5fd80a5 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -6678,33 +6678,42 @@ proto[s]://[username[:password]@]server[:port]/[path] -proto is the communication protocol: +proto is the communication protocol: imap for IMAP, pop for POP3 and -smtp for SMTP. If s for secure communication -is appended, Mutt will attempt to establish an encrypted communication -using SSL or TLS. If no explicit port is given, Mutt will use the -system's default for the given protocol. +smtp for SMTP. If s for secure +communication is appended, Mutt will attempt to establish an +encrypted communication using SSL or TLS. -Since all protocols supported by Mutt support, the username may be -given directly in the URL instead of using the pop_user or -imap_user variables. It may contain the @ symbol -being used by many mail systems as part of the login name. A password can be -given, too but is not recommended if the URL is specified in a configuration -file on disk. +Since all protocols supported by Mutt support/require authentication, +login credentials may be specified in the URL. This has the advantage +that multiple IMAP, POP3 or SMTP servers may be specified (which isn't +possible using, for example, +$imap_user). The username +may contain the @ symbol being used by many mail systems +as part of the login name. A password can be given, too but is not +recommended if the URL is specified in a configuration file on disk. -The optional path is only relevant for IMAP. +If no port number is given, Mutt will use the system's default for the +given protocol (usually consulting /etc/services). -For IMAP for example, you can also specify different -usernames for each folder: imap://username@imapserver[:port]/INBOX -or imap://username2@imapserver[:port]/path/to/folder. +The optional path is only relevant for IMAP. + +URLs + +pops://host/ +imaps://user@host/INBOX/Sent +smtp://user@host:587/ + + + @@ -7239,8 +7248,8 @@ never store passwords in configuration files. Besides the fact that the system's operator can always read them, you could forget to mask it out when reporting a bug or asking for help via a mailing list. Even worse, your mail including your password could be archived by internet search -engines, mail-to-news gateways etc. It may already too late before you -notice your mistake. +engines, mail-to-news gateways etc. It may already be too late before +you notice your mistake. -- 2.40.0