| | 5604 | <sect2 id="url-syntax"> |
| | 5605 | <title>URL syntax</title> |
| | 5606 | |
| | 5607 | <para> |
| | 5608 | Mutt optionally supports the IMAP, POP3 and SMTP protocols which require |
| | 5609 | to access servers using URLs. The canonical syntax for specifying URLs |
| | 5610 | in mutt is (an item enclosed in <literal>[]</literal> means it is optional and |
| | 5611 | may be omitted): |
| | 5612 | </para> |
| | 5613 | |
| | 5614 | <screen> |
| | 5615 | proto[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'' |
| | 5622 | is appended, mutt will attempt to establish an encrypted communication |
| | 5623 | using SSL or TLS. If no explicit port is given, mutt will use the |
| | 5624 | system's default for the given protocol. |
| | 5625 | </para> |
| | 5626 | |
| | 5627 | <para> |
| | 5628 | Since all protocols by mutt support authentication, the username may be |
| | 5629 | given 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 |
| | 5631 | is not recommended if the URL is specified in a configuration file on |
| | 5632 | disk. |
| | 5633 | </para> |
| | 5634 | |
| | 5635 | <para> |
| | 5636 | The optional path is only relevant for IMAP. |
| | 5637 | </para> |
| | 5638 | |
| | 5639 | <para> |
| | 5640 | For IMAP for example, you can select an alternative port by specifying it with the |
| | 5641 | server: <literal>imap://imapserver:port/INBOX</literal>. You can also specify different |
| | 5642 | username for each folder: <literal>imap://username@imapserver[:port]/INBOX</literal> |
| | 5643 | or <literal>imap://username2@imapserver[:port]/path/to/folder</literal>. |
| | 5644 | Replacing <literal>imap://</literal> by <literal>imaps://</literal> |
| | 5645 | would make mutt attempt to conect using SSL or TLS on a different port |
| | 5646 | to encrypt the communication. |
| | 5647 | </para> |
| | 5648 | |
| | 5649 | </sect2> |
| | 5650 | |
| 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>. |
| | 5664 | Remote POP3 servers can be accessed using URLs with the <literal>pop</literal> protocol |
| | 5665 | for unencrypted and <literal>pops</literal> for encrypted |
| | 5666 | communication, see <xref linkend="url-syntax"/> for details. |
| 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 |
| | 5704 | You 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. |
| | 5707 | Alternatively, a pine-compatible notation is also supported, ie |