<<< 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. :)

well ok then, i probably need to escape the user credentials, since the login name is the complete mail address with @ sign. trying that and saying thanks for the hint :)

frank