<<< Date Index >>>     <<< Thread Index >>>

Re: account-hook with same imap server but different authentication



-----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-----