Changeset 5251:06f5fc3c3492

Show
Ignore:
Timestamp:
2007-11-01 04:44:18 (15 months ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Manual: Document URL syntax in just one place, let others refer to it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • doc/manual.xml.head

    r5250 r5251  
    56025602</sect2> 
    56035603 
     5604<sect2 id="url-syntax"> 
     5605<title>URL syntax</title> 
     5606 
     5607<para> 
     5608Mutt optionally supports the IMAP, POP3 and SMTP protocols which require 
     5609to access servers using URLs. The canonical syntax for specifying URLs 
     5610in mutt is (an item enclosed in <literal>[]</literal> means it is optional and 
     5611may be omitted): 
     5612</para> 
     5613 
     5614<screen> 
     5615proto[s]://[username[:password]@]server[:port]/[path] 
     5616</screen> 
     5617 
     5618<para> 
     5619<literal>proto</literal> is the communication protocol: 
     5620<literal>imap</literal> for IMAP, <literal>pop</literal> for POP3 and 
     5621<literal>smtp</literal> for SMTP. If ``s'' for ``secure communication'' 
     5622is appended, mutt will attempt to establish an encrypted communication 
     5623using SSL or TLS. If no explicit port is given, mutt will use the 
     5624system's default for the given protocol. 
     5625</para> 
     5626 
     5627<para> 
     5628Since all protocols by mutt support authentication, the username may be 
     5629given directly in the URL instead of using the <literal>pop_user</literal> or 
     5630<literal>imap_user</literal> variables. A password can be given, too but 
     5631is not recommended if the URL is specified in a configuration file on 
     5632disk. 
     5633</para> 
     5634 
     5635<para> 
     5636The optional path is only relevant for IMAP. 
     5637</para> 
     5638 
     5639<para> 
     5640For IMAP for example, you can select an alternative port by specifying it with the 
     5641server: <literal>imap://imapserver:port/INBOX</literal>. You can also specify different 
     5642username for each folder: <literal>imap://username@imapserver[:port]/INBOX</literal> 
     5643or <literal>imap://username2@imapserver[:port]/path/to/folder</literal>. 
     5644Replacing <literal>imap://</literal> by <literal>imaps://</literal> 
     5645would make mutt attempt to conect using SSL or TLS on a different port 
     5646to encrypt the communication. 
     5647</para> 
     5648 
     5649</sect2> 
     5650 
    56045651</sect1> 
    56055652 
     
    56155662 
    56165663<para> 
    5617 You can access the remote POP3 mailbox by selecting the folder 
    5618 <literal>pop://popserver/</literal>. 
    5619 </para> 
    5620  
    5621 <para> 
    5622 You can select an alternative port by specifying it with the server, ie: 
    5623 <literal>pop://popserver:port/</literal>. 
    5624 </para> 
    5625  
    5626 <para> 
    5627 You can also specify different username for each folder, ie: 
    5628 <literal>pop://username@popserver[:port]/</literal>. 
     5664Remote POP3 servers can be accessed using URLs with the <literal>pop</literal> protocol 
     5665for unencrypted and <literal>pops</literal> for encrypted 
     5666communication, see <xref linkend="url-syntax"/> for details. 
    56295667</para> 
    56305668 
     
    56385676 
    56395677<para> 
    5640 If Mutt was compiled with SSL support (by running the <emphasis>configure</emphasis> 
    5641 script with the <emphasis>--with-ssl</emphasis> flag), connections to POP3 servers 
    5642 can be encrypted. This naturally requires that the server supports 
    5643 SSL encrypted connections. To access a folder with POP3/SSL, you should 
    5644 use pops: prefix, ie: 
    5645 <literal>pops://[username@]popserver[:port]/</literal>. 
    5646 </para> 
    5647  
    5648 <para> 
    56495678Another way to access your POP3 mail is the <emphasis>fetch-mail</emphasis> function 
    56505679(default: G).  It allows to connect to <link linkend="pop-host">&dollar;pop&lowbar;host</link>, fetch all your new mail and place it in the 
     
    56735702 
    56745703<para> 
    5675 You can access the remote inbox by selecting the folder 
    5676 <literal>imap://imapserver/INBOX</literal>, where <literal>imapserver</literal> is the name of the 
    5677 IMAP server and <literal>INBOX</literal> is the special name for your spool mailbox on 
    5678 the IMAP server. If you want to access another mail folder at the IMAP 
    5679 server, you should use <literal>imap://imapserver/path/to/folder</literal> where 
    5680 <literal>path/to/folder</literal> is the path of the folder you want to access. 
    5681 </para> 
    5682  
    5683 <para> 
    5684 You can select an alternative port by specifying it with the server, ie: 
    5685 <literal>imap://imapserver:port/INBOX</literal>. 
    5686 </para> 
    5687  
    5688 <para> 
    5689 You can also specify different username for each folder, ie: 
    5690 <literal>imap://username@imapserver[:port]/INBOX</literal>. 
    5691 </para> 
    5692  
    5693 <para> 
    5694 If Mutt was compiled with SSL support (by running the <emphasis>configure</emphasis> 
    5695 script with the <emphasis>--with-ssl</emphasis> flag), connections to IMAP servers 
    5696 can be encrypted. This naturally requires that the server supports 
    5697 SSL encrypted connections. To access a folder with IMAP/SSL, you should 
    5698 use <literal>imaps://[username@]imapserver[:port]/path/to/folder</literal> as your  
    5699 folder path. 
    5700 </para> 
    5701  
    5702 <para> 
    5703 Pine-compatible notation is also supported, ie 
     5704You can access the remote inbox by selecting the folder by its URL 
     5705(see <xref linkend="url-syntax"/> for details) using the 
     5706<literal>imap</literal> or <literal>imaps</literal> protocol. 
     5707Alternatively, a pine-compatible notation is also supported, ie 
    57045708<literal>&lcub;[username@]imapserver[:port][/ssl]&rcub;path/to/folder</literal> 
    57055709</para> 
    57065710 
    57075711<para> 
    5708 Note that not all servers use / as the hierarchy separator.  Mutt should 
     5712Note that not all servers use ``/'' as the hierarchy separator.  Mutt should 
    57095713correctly notice which separator is being used by the server and convert 
    57105714paths accordingly. 
     
    58695873will contact the given SMTP server to deliver messages; if it is unset,  
    58705874mutt will use the program specified by <link linkend="sendmail">&dollar;sendmail</link>. 
     5875</para> 
     5876 
     5877<para> 
     5878For details on the URL syntax, please see <xref linkend="url-syntax"/>. 
    58715879</para> 
    58725880