From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 03:07:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DCFD16A419 for ; Thu, 24 Jan 2008 03:07:34 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id E2D7E13C447 for ; Thu, 24 Jan 2008 03:07:33 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-04.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-02.forthnet.gr (8.14.0/8.14.0) with ESMTP id m0O37Vrv020860; Thu, 24 Jan 2008 05:07:31 +0200 Received: from MX-IN-04.forthnet.gr (mx-in-04.forthnet.gr [193.92.150.163]) by mx-av-04.forthnet.gr (8.14.1/8.14.1) with ESMTP id m0O37VNI032001; Thu, 24 Jan 2008 05:07:31 +0200 Received: from kobe.laptop (ppp133-151.adsl.forthnet.gr [62.1.124.151]) by MX-IN-04.forthnet.gr (8.14.2/8.14.2) with ESMTP id m0O37TwB013722; Thu, 24 Jan 2008 05:07:29 +0200 Authentication-Results: MX-IN-04.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-04.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m0O37Sie011039; Thu, 24 Jan 2008 05:07:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m0O37QQ2011038; Thu, 24 Jan 2008 05:07:26 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 24 Jan 2008 05:07:26 +0200 From: Giorgos Keramidas To: Gary Kline Message-ID: <20080124030725.GA10855@kobe.laptop> References: <20080124022441.GA29323@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080124022441.GA29323@thought.org> Cc: freebsd-questions@freebsd.org Subject: Using mutt to access imap folders (was: mail questions: mutt and KDE) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 03:07:34 -0000 freebsd-kde stripped from the recipient list. Gary it's probably better to post *two* messages if you have two unrelated questions. This way the traffic in freebsd-kde will not get 'polluted' with all the replies about mutt, which isn't really related to KDE on FreeBSD. On 2008-01-23 18:24, Gary Kline wrote: > Here's hopping that I'm still subscribed to the kde list, and that > somebody can answer these general mail-type questions. You don't have to be subscribed to freebsd-kde to post. > Also, I would like some clues of how to if IF I can use mutt *with* > IMAP. You can set ${MAIL} in your environment to an imap folder. Then firing up mutt will select the imap folder by default, and you will be prompted for a password. Try for example the following: $ MAIL='imap://username@imapserver/INBOX' You can store the IMAP username and password in ~/.muttrc too, but then you should pay careful attention to the permissions of the file (even in an internal network, it never hurts to be a bit cautious). The following in your ~/.muttrc should do the trick: set imap_user='gkeramidas' set imap_pass='achmed!the!terrorist' Then fire up mutt, and enjoy your new IMAP session. One word of caution though. Setting $MAIL to an IMAP folder path in your default environment may upset programs which don't really speak IMAP the way mutt does, i.e. the command-line mail(1) utility. The manual of mutt, which is accessible by hitting while inside mutt, is also a valuable resource for this sort of questions. Specifically, the following section includes a very good example of how you can handle multiple IMAP accounts in a single mutt session: | 13. Managing multiple IMAP/POP accounts (OPTIONAL) | | If you happen to have accounts on multiple IMAP and/or POP | 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 (including inside the folder | browser), not just when you open the mailbox. | | Some examples: | | account-hook . 'unset imap_user; unset imap_pass; unset tunnel' | account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo' | account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"' There are *many* other details in the manual about using mutt to access IMAP folders. You should definitely skim through the text at least once in case you find some interesting option. A text version of the full manual is available in /usr/local too: /usr/local/share/doc/mutt/manual.txt This is, actually, the file that you get to read when you hit inside mutt. - Giorgos