1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Caldav: Improve principal -> actualPrincipal detection: use session alias instead of login

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@642 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-08-03 23:04:11 +00:00
parent ecffaed107
commit 9a3d3c2de9

View File

@ -686,7 +686,7 @@ public class CaldavConnection extends AbstractConnection {
public void sendPrincipal(CaldavRequest request, String prefix, String principal) throws IOException {
// actual principal is email address
String actualPrincipal = principal;
if ("users".equals(prefix) && userName.equals(principal)) {
if ("users".equals(prefix) && session.getAlias().equalsIgnoreCase(principal)) {
actualPrincipal = session.getEmail();
}