huytmb / mail-receiver

Mail Receiver - Using Spring Boot with Spring Integration
28 stars 17 forks source link

Password in imap url #1

Open iGaurav4 opened 2 years ago

iGaurav4 commented 2 years ago

When user is having password with spl char like @ , it parse the character after @ as host. For example,

imaps://something@outlook.com:soeme@123!!@outlook.office365.com:993/Inbox

It will be parsed as

protocol : "imaps" username: "something@outlook.com" password : "soeme" host: "123!!@outlook.office365.com"

Expected :- protocol : "imaps" username: "something@outlook.com" password : "soeme@123!!" host: "outlook.office365.com"

huytmb commented 2 years ago

Sorry for late reply. You can manually parse URI before injecting to MailReceiver bean. Ref source code