Closed Bug 12390 Opened 25 years ago Closed 24 years ago

Problem with '@' in POP3 & IMAP4 mail server username

Categories

(MailNews Core :: Backend, defect, P3)

x86
Windows 98
defect

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 41661

People

(Reporter: phil, Assigned: alecf)

References

Details

(Keywords: crash)

Subject: problem with @ in imap username
        Date: Tue, 24 Aug 1999 12:14:38 +0200
        From: Henrik Gemal <gemal@dk.net>
Organization: Tele Danmark Internet
  Newsgroups: netscape.public.mozilla.mail-news

I'm using today's build (1999082316) and having problems with using a @
in the Imap username.
Whenever I use @ in the username the account doesn't show i side under
Messenger Folders. Actually all accounts doesn't show including my news
account.

Are @ not valid in Imap usernames?

--
Henrik Gemal, gemal@dk.net
Network Innovator
Tele Danmark Internet
Adding myself to the cc list. I'm also adding alecf to the cc list as the
problem may be in our uri parsing code which I think he is the most familiar
with now.
oh no! @ in the username?
I never really thought about that.
We're going to have to escape this character, as well as "/" before storing it
in the URI, and remember to unescape it when we actually need it for something.
Sounds like the same solution chrisf had in
http://scopus/bugsplat/show_bug.cgi?id=300646
Alec, is the fix for this in the imap code, or the account manager code?
probably a bit of both.
We have to encode/decode it in the account manager, but if there are any cases
where a protocol extracts the username from the URI, then the protocol has to
fix that.
Assignee: bienvenu → alecf
OK, please reassign to me when the account manager stuff is done so I can diddle
imap.- also note that we want to do the same thing for pop, i.e., allow '@' in
user names...I think you can do the account manager stuff without the individual
protocols doing their stuff because unless the user name has escapable
characters in it, it should be a noop to the protocols/uri parsing code.
Status: NEW → ASSIGNED
Target Milestone: M12
Adding nbaca to CC: list.
Blocks: 11091
(target milestone is M11 or M12 - add to beta tracking bug)
Summary: Problem with '@' in IMAP username → Problem with '@' in mail server username
In early versions of Netscape mail, we found that users typed their full email
address when they should have typed their mail server user name. In response, we
had code which stripped the '@' and all of the characters following it.

In 4.5, we found that some organizations legitimately require the whole email
address *as* the mail server user name. In response, we added the pref
"mail.allow_at_sign_in_user_name" which controls whether we strip the username
or not.

John Friend makes this good suggestion:

> At thought just occurred to me.  Maybe this "mail.allow_at_sign_in_user_name"
> setting could be autodetected.  The really awesome way to solve this problem
> would be to just try the exact string the user enters as the user name.  If
> it works use it.  If it doesn't work (e.g. auth fails), then strip off the @
> stuff and try again.  If it works that time, make some note in prefs that
> next time you should do the stripping.  If the user ever changes their user
> name, then clear the bit that says you should do the stripping so you try the
> full name again.  The only downside I can see is that if a user enters the @
> sign, we have one failed auth try before realizing that they shouldn't have
> put the @ sign in.
>
> This would let both old users who have gotten used to our tolerance of this
> work and new users who need the @ sign in their user name without any support
> calls or custom prefs.
*** Bug 15467 has been marked as a duplicate of this bug. ***
Target Milestone: M12 → M15
M15
*** Bug 22436 has been marked as a duplicate of this bug. ***
QA Contact: lchiang → nbaca
have we tried this lately? seems like bienvenu may have fixed this a while back,
but maybe he was just doing folder names.
Build 2000-03-07-08M15: NT4

Henrik: Can you try using the "@" sign for you IMAP Username with a newer build 
to see if you are able to send and receive a message? 

Using the Account Wizard I've created POP, IMAP and News accounts using "@" and 
"/" and the accounts are created and display in the folder pane. 
Hurra...

I was able to login with a IMAP user name with a "@" in it.
Everything seems to work!
Great! Marking Worksforme.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Verified Worksforme.
Status: RESOLVED → VERIFIED
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
If you have @ in the username for a POP3 account Mozilla will crash with todays 
build 20000525!!!
henrik - can you file a new bug for that crash and include a talkback report?

Thanks
Talkback Incident ID:
TB11262650H
Mass moving old milestone bugs to M16.
Target Milestone: M15 → M16
This seems to happens only in my POP3 account.
Summary: Problem with '@' in mail server username → Problem with '@' in POP3 mail server username
I've created a POP3 account using the '@' sign and a crash is not occuring with 
the 5/31 build using Win95 and Win98. When does the crash occur? In Account 
Wizard, after selecting something in Account Settings or after getting messages?
Ninoschka, are you talking about the account name in the Seamonkey Account
Settings? Or the user ID for the mail server? Do you have a POP server that you
can add a new user ID for? I think that's what this bug is about.
I entered the '@' sign for the mail server user ID. If it's a matter of just 
entering the '@' sign then I can try and duplicate the problem. If it requires 
me to actually have an account with an '@' sign then I'm not setup for this 
scenario, at this time.
Ok the problems is this:
Create a POP3 account where you have a @, like "gemal@dk.net", in the username. 
Creating the account works just fine.
After creating this account go to the account and press "Get Msg" and your 
mozilla will crash and burn!

Mozilla build 2000060120
From bug http://bugzilla.mozilla.org/show_bug.cgi?id=41661, % in username will 
also cause a crash.

Alec - do you want them all to be part of this bug?
Severity: normal → critical
Keywords: crash
hrm.. might be different bugs actually. let's just keep them seperate for now,
but maybe the fix for one might fix the other..
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
sure enough, it is a dupe... (at first I was doubtful since the FIRST part of 
the bug mentions IMAP, which is fixed)

*** This bug has been marked as a duplicate of 41161 ***
Are you for real????
The other bug that nothing to do with @ in POP username!
alec just put in the wrong number, that's all.   I'll correct.
http://bugzilla.mozilla.org/show_bug.cgi?id=41661
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

*** This bug has been marked as a duplicate of 41661 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
verified duplicate then.
Status: RESOLVED → VERIFIED
I saw this discussion in MailConnect6 from John comments:

http://www.imc.org/imc-mailconnect/mail-archive/msg00360.html

* Clients which mishandle userids which have '@' characters in them.

I don't think this is dup of bug 41161 either -- reopening this bug.

Ccing myself and John.
Adding POP and IMAP on the summary since problem are occurring on both.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Summary: Problem with '@' in POP3 mail server username → Problem with '@' in POP3 & IMAP4 mail server username
I think that I have conflict when I am sending this email.
Lisa is right that it should be dup of bug 41661.

*** This bug has been marked as a duplicate of 41661 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
verified dup again.
Status: RESOLVED → VERIFIED
thanks for finding the right dupe karen!
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.