我正在使用 imapIdle 配置我的電子郵件接收通道,我的電子郵件帳戶密碼中包含字符“@”。我注意到代碼 store-uri 中斷了,因為它根據(jù)“@”字符拆分字符串。我讀了 Gary Russel 的評論,他說這個角色需要逃避。我嘗試通過鍵入“\@”來轉義“@”字符,但這沒有用。store-uri 字符串仍在第一個“@”字符處拆分。因此我得到我嘗試用它的 unicode 表示“U+0040”替換“@”,但這也不起作用store-uri="imaps://${email.username}:${email.password.contains("@")}@outlook.office365.com"08:38:24.536 WARN [task-scheduler-1][org.springframework.integration.mail.ImapIdleChannelAdapter] error occurred in idle taskcom.sun.mail.util.MailConnectException: Couldn't connect to host, port: PASSWORDCHARACTERSAFTER"@"SYMBOL@imap.HOSTDOMAIN, 993; timeout -1 at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:740) ~[javax.mail-1.6.2.jar:1.6.2] at javax.mail.Service.connect(Service.java:366) ~[javax.mail-api-1.6.2.jar:1.6.2] at javax.mail.Service.connect(Service.java:246) ~[javax.mail-api-1.6.2.jar:1.6.2] at javax.mail.Service.connect(Service.java:195) ~[javax.mail-api-1.6.2.jar:1.6.2] at org.springframework.integration.mail.AbstractMailReceiver.connectStoreIfNecessary(AbstractMailReceiver.java:332) ~[spring-integration-mail-5.2.0.M2.jar:5.2.0.M2] at org.springframework.integration.mail.AbstractMailReceiver.openFolder(AbstractMailReceiver.java:339) ~[spring-integration-mail-5.2.0.M2.jar:5.2.0.M2] at org.springframework.integration.mail.ImapMailReceiver.waitForNewMessages(ImapMailReceiver.java:170) ~[spring-integration-mail-5.2.0.M2.jar:5.2.0.M2] at org.springframework.integration.mail.ImapIdleChannelAdapter$IdleTask.run(ImapIdleChannelAdapter.java:289) [spring-integration-mail-5.2.0.M2.jar:5.2.0.M2] at org.springframework.integration.mail.ImapIdleChannelAdapter$ReceivingTask.run(ImapIdleChannelAdapter.java:254) [spring-integration-mail-5.2.0.M2.jar:5.2.0.M2]
添加回答
舉報
0/150
提交
取消