 | | From: | Marco Herrn | | Subject: | account-hook | | Date: | 13 Jan 2005 18:07:45 GMT |
|
|
 | Hi,
I want to use IMAP with mutt. But I do not want to enter my password each time. So I defined an account-hook as mentioned in the manual.
account-hook imap://sout.de/ 'set imap_user=user@server.de imap_pass=geheim'
But I always have to enter my password. Even if I split the above in two account-hooks. Am I doing something wrong? BTW: I am using mutt 1.5.6.
Regards Marco -- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
|
|
 | | From: | Jochen Schulz | | Subject: | Re: account-hook | | Date: | Fri, 14 Jan 2005 14:43:42 +0100 |
|
|
 | * Marco Herrn: > > I want to use IMAP with mutt. But I do not want to enter my password > each time. So I defined an account-hook as mentioned in the manual. > > account-hook imap://sout.de/ 'set imap_user=user@server.de imap_pass=geheim'
'set imap_pass=geheim' should do it. But make sure the permissions of this configuration file are restrictive enough.
J. -- I use a Playstation to block out the existence of my partner. [Agree] [Disagree]
|
|
 | | From: | Alan Connor | | Subject: | Re: account-hook | | Date: | Thu, 13 Jan 2005 19:25:18 GMT |
|
|
 | On 13 Jan 2005 18:07:45 GMT, Marco Herrn wrote:
> Hi, > > I want to use IMAP with mutt. But I do not want to enter my > password each time. So I defined an account-hook as mentioned > in the manual. > > account-hook imap://sout.de/ 'set imap_user=user@server.de > imap_pass=geheim' > > But I always have to enter my password. Even if I split the > above in two account-hooks. Am I doing something wrong? BTW: I > am using mutt 1.5.6. > > Regards Marco -- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed > and crypted mail preferred) Key ID: 0x94620736 >
Use fetchmail to retrieve your mail.
Not Mutt's internal fetch mail.
AC
|
|
 | | From: | Brendan Cully | | Subject: | Re: account-hook | | Date: | Sat, 15 Jan 2005 01:03:48 GMT |
|
|
 | Alan Connor writes:
> On Fri, 14 Jan 2005 03:46:39 GMT, Brendan Cully > wrote: > Thanks for setting me and the record straight, Brendan > > My apologies. Never used IMAP and didn't realize it was that > different from POP. > > But Marco is still fetching his mail, isn't he? What else?
Think of IMAP as the network version of maildir. You can set flags, selectively read mail, move it between folders, etc. The protocol also supports things like server-side threading, sorting and searching, but mutt hasn't picked up on that yet.
The big advantage is you can manipulate your mail from lots of different places.
|
|
 | | From: | Larry Alkoff | | Subject: | Re: account-hook | | Date: | Mon, 17 Jan 2005 06:04:51 GMT |
|
|
 | On Sat, 15 Jan 2005 01:03:48 GMT, Brendan Cully wrote:
>Think of IMAP as the network version of maildir. You can set flags, >selectively read mail, move it between folders, etc. The protocol >also supports things like server-side threading, sorting and >searching, but mutt hasn't picked up on that yet. > >The big advantage is you can manipulate your mail from lots of >different places.
PMFJI Brendan but I have gotten very interested in IMAP since I realized that maildir does not work with my system of nested mail folders on PMMail a Windows client.
I would really prefer to use Mutt with nested mail directories.
Is it possible to set up an IMAP server on my Slackware 10 system and "serve myself"? Any programs you would recommend?
Larry Alkoff
|
|
 | | From: | Paul Walker | | Subject: | Re: account-hook | | Date: | Wed, 19 Jan 2005 00:25:59 +0000 (UTC) |
|
|
 | On Mon, 17 Jan 2005 06:04:51 GMT, Larry Alkoff wrote:
> Is it possible to set up an IMAP server on my Slackware 10 > system and "serve myself"? Any programs you would recommend?
Should be perfectly possible; I use the uwimapd (University of Washington IMAP daemon) on my Debian box. Works fine.
-- Paul
Don't underestimate the ability of politicians to find alibis. -- Michael Heseltine MP
|
|
 | | From: | Jochen Schulz | | Subject: | Re: account-hook | | Date: | Wed, 19 Jan 2005 09:26:57 +0100 |
|
|
 | * Larry Alkoff: > > Is it possible to set up an IMAP server on my Slackware 10 > system and "serve myself"? Any programs you would recommend?
I'd recommend dovecot. It is very small, easy to configure and it can serve mails from Maildir and mboxes (AFAIK you have to choose a system-wide default). You can authenticate via normal system accounts, LDAP, MySQL or PostgreSQL. If you wanted, you could also use it as a POP3 server. See http://dovecot.org for details.
J. -- I want to keep my skin looking good but I believe all computers do the same job. [Agree] [Disagree]
|
|
 | | From: | Alan Connor | | Subject: | Re: account-hook | | Date: | Sat, 15 Jan 2005 06:29:29 GMT |
|
|
 | On Sat, 15 Jan 2005 01:03:48 GMT, Brendan Cully wrote:
> Alan Connor writes: > >> On Fri, 14 Jan 2005 03:46:39 GMT, Brendan Cully >> wrote: Thanks for setting me and the >> record straight, Brendan >> >> My apologies. Never used IMAP and didn't realize it was that >> different from POP. >> >> But Marco is still fetching his mail, isn't he? What else? > > Think of IMAP as the network version of maildir. You can set > flags, selectively read mail, move it between folders, etc. The > protocol also supports things like server-side threading, > sorting and searching, but mutt hasn't picked up on that yet. > > The big advantage is you can manipulate your mail from lots of > different places.
Okay. That's pretty clear. I think it is time for me to sit down with the relevant RFCs and really learn about IMAP.
Just out of curiosity, I took a look at my local apt-get/dpkg list. These are some of the imap-clients offered as packages by Debian:
spruce, mozilla-mailnews, imp, althea, postilion, im, wl
Mutt's there, but not listed as an imap-client.
Thanks again, Brendan.
AC
|
|
 | | From: | Paul Walker | | Subject: | Re: account-hook | | Date: | Mon, 17 Jan 2005 00:05:55 +0000 (UTC) |
|
|
 | On Sat, 15 Jan 2005 06:29:29 GMT, Alan Connor wrote:
> spruce, mozilla-mailnews, imp, althea, postilion, im, wl > Mutt's there, but not listed as an imap-client.
mutt will work with IMAP, but despite Brendan's excellent work on it still works much better with local files. At least IMO. :)
-- Paul
|
|
 | | From: | Brendan Cully | | Subject: | Re: account-hook | | Date: | Sat, 22 Jan 2005 03:32:52 GMT |
|
|
 | Marco Herrn writes:
> Yes that is the case. I have several accounts I want to use. But for > testing now I want to start with only once. The only problem I see is > that my multiple accounts all reside on the same server and > differentiate only in the user credentials. That would lead to the > problem that I can't use account-hooks correctly, I think. Any ideas > if this is still possible?
Instead of setting imap_user in your account hook, you might try something like:
account-hook 'imap://imap_user@host/' 'set imap_pass=foo'
and then using that same format when you change folders.
|
|
 | | From: | Marco Herrn | | Subject: | Re: account-hook | | Date: | 22 Jan 2005 13:52:32 GMT |
|
|
 | On 2005-01-22, Brendan Cully wrote: > Marco Herrn writes: > >> Yes that is the case. I have several accounts I want to use. But for >> testing now I want to start with only once. The only problem I see is >> that my multiple accounts all reside on the same server and >> differentiate only in the user credentials. That would lead to the >> problem that I can't use account-hooks correctly, I think. Any ideas >> if this is still possible? > > Instead of setting imap_user in your account hook, you might try > something like: > > account-hook 'imap://imap_user@host/' 'set imap_pass=foo' > > and then using that same format when you change folders.
I have tried with it with this, but the imap_pass is still ignored and I have to enter it again.
BTW: Is there a way to define something like aliases for accounts? So that I can enter a shorter name insstead of imap://imap_user@host.tld to connect to imap mailboxes?
Regards Marco
-- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
|
|
 | | From: | Marco Herrn | | Subject: | Re: account-hook | | Date: | 22 Jan 2005 13:57:02 GMT |
|
|
 | On 2005-01-22, Marco Herrn wrote: > I have tried with it with this, but the imap_pass is still ignored and > I have to enter it again.
I found out what the error was. The password I use seems to use unusual characters. After enclosing the password with double quotes, it works.
> BTW: Is there a way to define something like aliases for accounts? So > that I can enter a shorter name insstead of imap://imap_user@host.tld > to connect to imap mailboxes?
This is still what I would like to use. A shorter name for accessing such mailboxes. Is there a way to do it? I didn't find anything in the mutt manual.
Regards Marco
-- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
|
|
 | | From: | Brendan Cully | | Subject: | Re: account-hook | | Date: | Sat, 22 Jan 2005 17:38:42 GMT |
|
|
 | Marco Herrn writes:
> > BTW: Is there a way to define something like aliases for accounts? So > > that I can enter a shorter name insstead of imap://imap_user@host.tld > > to connect to imap mailboxes? > > This is still what I would like to use. A shorter name for accessing > such mailboxes. Is there a way to do it? I didn't find anything in the > mutt manual.
Macros are the usual solution.
|
|
 | | From: | Brendan Cully | | Subject: | Re: account-hook | | Date: | Fri, 14 Jan 2005 03:46:39 GMT |
|
|
 | Alan Connor writes:
> On 13 Jan 2005 18:07:45 GMT, Marco Herrn wrote: > > > Hi, > > > > I want to use IMAP with mutt. But I do not want to enter my > > password each time. So I defined an account-hook as mentioned > > in the manual. > > > > account-hook imap://sout.de/ 'set imap_user=user@server.de > > imap_pass=geheim' > > > > But I always have to enter my password. Even if I split the > > above in two account-hooks. Am I doing something wrong? BTW: I > > am using mutt 1.5.6.
It doesn't look like it. I use a similar set-up myself. The hook has to match the folder you're entering fairly exactly though. Try
cimap://sout.de/
in mutt, if you're using something else. Also, you might want to clear out any other hooks that could be overriding that one, just for testing. Finally, it may be obvious, but account-hooks are designed for users that have multiple accounts. If you only have one, just set the variables directly.
You can also test by putting other nonsense into the hook just to see if it causes an error when you connect. If not, the hook must not be firing. If so, some other hook is likely overriding your settings afterwards.
> > Use fetchmail to retrieve your mail. > > Not Mutt's internal fetch mail.
This bad advice gets posted frequently. IMAP is designed for interactive use by MUAs. Using fetchmail for IMAP is more broken than using mutt for POP.
|
|
 | | From: | Alan Connor | | Subject: | Re: account-hook | | Date: | Fri, 14 Jan 2005 05:48:41 GMT |
|
|
 | On Fri, 14 Jan 2005 03:46:39 GMT, Brendan Cully wrote:
> Alan Connor writes: > >> On 13 Jan 2005 18:07:45 GMT, Marco Herrn >> wrote: >> >> > Hi, >> > >> > I want to use IMAP with mutt. But I do not want to enter >> > my password each time. So I defined an account-hook as >> > mentioned in the manual. >> > >> > account-hook imap://sout.de/ 'set imap_user=user@server.de >> > imap_pass=geheim' >> > >> > But I always have to enter my password. Even if I split >> > the above in two account-hooks. Am I doing something >> > wrong? BTW: I am using mutt 1.5.6. > > It doesn't look like it. I use a similar set-up myself. The > hook has to match the folder you're entering fairly exactly > though. Try > > cimap://sout.de/ > > in mutt, if you're using something else. Also, you might want > to clear out any other hooks that could be overriding that one, > just for testing. Finally, it may be obvious, but account-hooks > are designed for users that have multiple accounts. If you only > have one, just set the variables directly. > > You can also test by putting other nonsense into the hook just > to see if it causes an error when you connect. If not, the hook > must not be firing. If so, some other hook is likely overriding > your settings afterwards. > > >> Use fetchmail to retrieve your mail. >> >> Not Mutt's internal fetch mail. > > This bad advice gets posted frequently. IMAP is designed for > interactive use by MUAs. Using fetchmail for IMAP is more > broken than using mutt for POP.
Thanks for setting me and the record straight, Brendan
My apologies. Never used IMAP and didn't realize it was that different from POP.
But Marco is still fetching his mail, isn't he? What else?
AC
|
|
 | | From: | Marco Herrn | | Subject: | Re: account-hook | | Date: | 20 Jan 2005 06:58:28 GMT |
|
|
 | Hi,
On 2005-01-14, Brendan Cully wrote: > Alan Connor writes: > >> On 13 Jan 2005 18:07:45 GMT, Marco Herrn wrote: >> >> > account-hook imap://sout.de/ 'set imap_user=user@server.de >> > imap_pass=geheim' >> > >> > But I always have to enter my password. Even if I split the >> > above in two account-hooks. Am I doing something wrong? BTW: I >> > am using mutt 1.5.6. > > It doesn't look like it. I use a similar set-up myself. The hook has > to match the folder you're entering fairly exactly though. Try > > cimap://sout.de/
I enter it exactly as I defined it in the config file.
> in mutt, if you're using something else. Also, you might want to clear > out any other hooks that could be overriding that one, just for > testing.
I tested it, the hook is firing. The variable imap_user is also correctly set, I do not have to enter it again. But I still have to enter the imap_pass. I also changed the account-hook to:
account-hook imap://sout.de/ 'set imap_user=user@server.de; set imap_pass=geheim'
but that doesn't help. But mutt also doesn't complain about it. If i enter nonsene in the account-hook mutt complains about it.
> Finally, it may be obvious, but account-hooks are designed > for users that have multiple accounts. If you only have one, just set > the variables directly.
Yes that is the case. I have several accounts I want to use. But for testing now I want to start with only once. The only problem I see is that my multiple accounts all reside on the same server and differentiate only in the user credentials. That would lead to the problem that I can't use account-hooks correctly, I think. Any ideas if this is still possible?
Regards Marco -- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
|
|
 | | From: | Marco Herrn | | Subject: | Re: account-hook | | Date: | 13 Jan 2005 21:52:44 GMT |
|
|
 | On 2005-01-13, Alan Connor wrote: > Use fetchmail to retrieve your mail. > > Not Mutt's internal fetch mail.
Well, I do *not* want to fetch my mail, but rather store it on the server side and connect via IMAP.
-- Marco Herrn herrn@gmx.net (GnuPG/PGP-signed and crypted mail preferred) Key ID: 0x94620736
|
|