frieky / imapcopy

Automatically exported from code.google.com/p/imapcopy
0 stars 0 forks source link

Authentication failed with special characters in password #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. source server is imap.1und1.de
2. target-server is localhost
3. Authentication with email (name%40domain.tdl) and passwort containing some 
specialchars (i.e.: + - & $ !) for both servers

What is the expected output? What do you see instead?
Output:
2013-01-25 11:54:24,786  INFO ImapCopier - Starting
2013-01-25 11:54:24,786 DEBUG ImapCopier - Parameters length:2
2013-01-25 11:54:24,786 DEBUG ImapCopier - opening conections
2013-01-25 11:54:24,788 DEBUG ImapCopier - opening imap conection to 
imap.1und1.de
Exception in thread "main" javax.mail.AuthenticationFailedException: 
authentication failed
        at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:566)
        at javax.mail.Service.connect(Service.java:288)
        at javax.mail.Service.connect(Service.java:169)
        at javax.mail.Service.connect(Service.java:118)
        at com.fisbein.joan.model.ImapCopier.openConnection(ImapCopier.java:133)
        at com.fisbein.joan.model.ImapCopier.openSourceConnection(ImapCopier.java:70)
        at com.fisbein.joan.model.ImapCopier.main(ImapCopier.java:33)

What version of the product are you using? On what operating system?
0.3.1 on Debian Squeeze kernel 2.6.32-5-amd64

Please provide any additional information below.
Removing the specialchar from the password on the source-server worked well. 
Maybe the specialchar must be masked or URL-converted or whatever.
If it is it should be mentioned in wiki or ReadMe.

Original issue reported on code.google.com by michael....@googlemail.com on 25 Jan 2013 at 11:06

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Seems URL-encoding special chars work. Use 
http://www.w3schools.com/tags/ref_urlencode.asp to find out how. A % in 
username becomes %25.

Original comment by copyleft...@gmail.com on 20 Feb 2015 at 1:21