mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -05:00
Create proper ImapStore URI when an empty path prefix is imported
Fixes issue 3986
This commit is contained in:
parent
0ba525868a
commit
03eefaab95
@ -280,7 +280,8 @@ public class ImapStore extends Store {
|
||||
String userInfo = authType.toString() + ":" + userEnc + ":" + passwordEnc;
|
||||
try {
|
||||
Map<String, String> extra = server.getExtra();
|
||||
String path = (extra != null) ? "/" + extra.get(ImapStoreSettings.PATH_PREFIX_KEY) : null;
|
||||
String prefix = (extra != null) ? extra.get(ImapStoreSettings.PATH_PREFIX_KEY) : null;
|
||||
String path = (prefix != null) ? "/" + prefix : null;
|
||||
return new URI(scheme, userInfo, server.host, server.port,
|
||||
path,
|
||||
null, null).toString();
|
||||
|
Loading…
Reference in New Issue
Block a user