Closed Bug 274995 Opened 20 years ago Closed 20 years ago

Can't use same user name with different IMAP servers on different ports on the same host

Categories

(Thunderbird :: Account Manager, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 41929

People

(Reporter: tzs, Assigned: mscott)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: 

Setup: server S is running two IMAP servers, one on port P1 and one on port P2.
 (The one on P2 is actually being tunneled over SSH to another server, in case
you are wondering *why* anyone would do this).

Thunderbird will not allow you to set up two accounts to access these two IMAP
servers, if the two accounts use the same user name.  After setting up the
first, when you try to set up the second, it says you already have one with that
user name on that host (same thing happens if you set it up with a dummy name,
and then try to change the name).

Suggested fix: the check to see if you already have an account with that name
should be checking both the server and port, not just the server.

Actually...you should even consider going farther, and looking at the IMAP
server directory setting for the account--even on a host that is only running a
single IMAP server, someone might want to set up different Thunderbird accounts
for different directory trees.  For example, they might have mail going to a
catch-all mailbox on the server, and then they filter it out into separate
directory trees, depending on the address it was delievered to, and might want
different Thunderbird accounts for each of those.  Probably not too common, but
why restrict it?  With POP3 this would not be a good idea, but IMAP should be
fine with it. 

Reproducible: Always

Steps to Reproduce:
1. Find a host H that has different IMAP servers running on ports P1 and P2.
2. Set up a Thunderbird IMAP email account for host H, port P1, user U.
3. Try to set up another email account for host H, port P2, user U.

Actual Results:  
Thunderbird won't allow it, because (H,U) is not unique among all the email
accounts.

Expected Results:  
Instead of requiring (H,U) to be unique for each IMAP account, it should only
require (H,P,U) to be unique, where H is the host, P is the port, and U is the
user name.  Perhaps it should be even less restrictive than that, and only
require (H,P,U,F) to be unique, where F is the location of the IMAP folders.

*** This bug has been marked as a duplicate of 41929 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.