Re: account-hook with same imap server but different authentication
- To: mutt-users@xxxxxxxx
- Subject: Re: account-hook with same imap server but different authentication
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 9 Jan 2008 14:59:12 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=/t8PY1s5CTZ2kfS93YpnnmCJ3z4=; b=VOpBhxtx5/rHV+AItHw8Wx8xHGYg05wxKcKaozONu/XwZLpOAma13B4Imbl9P9esYDq6ayN89EAJX4ungpS8xtdHQaJVP9wHG96Uf69ow6YkTVdKAJI70Jc+87SrG+Xh8GYsDwI8XxGP3GU6/9eMnTCTPv3ufnTboVMVnzsK5m4=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=haCX37dK3jBXsRTJAdeXi7VVQ62917m2Uk5TbIN/DUn5Gcyj4Yz7d4460NueVFxeQwC1cltMGCKUSLozOgYk741s+Hj9BJyxRzaTzRt3w4kKe6ncQ5s277lB74pp7trKsEdOidlqPipriT9y5cWwldZK8nBOKdnNYIIROVlV9jE=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <5B98E8FA-8BE2-4952-8D6D-6A9354708DEF@xxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <5B98E8FA-8BE2-4952-8D6D-6A9354708DEF@xxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2007-12-11)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, January 9 at 09:40 PM, quoth spekul:
> is it possible to use two different account hooks for the same imap
> server but with different login credentials?
Yes; because the login credentials CAN be part of the IMAP URI, they
just don't have to be.
> what i would like to do is something like the following, what seems
> to be impossible to me since path-regexp is the same in both cases:
>
> account-hook imaps://server1.com 'set folder=imaps://server1.com
> imap_user=user1 imap_pass=pass1 "
> account-hook imaps://server1.com 'set folder=imaps://server1.com
> imap_user=user2 imap_pass=pass2
You could also make those URIs look like this:
imaps://user1:pass1@xxxxxxxxxxx
imaps://user2:pass2@xxxxxxxxxxx
When you do that, you don't have to define imap_user or imap_pass. :)
~Kyle
- --
If Mr. Einstein doesn't like the natural laws of the universe, let him
go back to where he came from.
-- Robert Benchley (1889-1945)
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHhTWgBkIOoMqOI14RAm51AJ9Y8SlCje8/kaQfsOdMt473JMEROwCgmfwL
urSCQ/3vbriR8VTDi2rO3bo=
=PYF4
-----END PGP SIGNATURE-----