[evolution-activesync/for-master/pohly] daemon connection: force X-MS-PolicyKey to always be included



commit dc546465ef7b9aee79a77b5112d8283ce0190eea
Author: Graham R. Cobb <g+syncevolution cobb uk net>
Date:   Mon Feb 4 22:55:05 2013 +0000

    daemon connection: force X-MS-PolicyKey to always be included
    
    Exchange 2010 was always returning error 403.  The solution was to always
    include X-MS-PolicyKey: 0 if the policy key is not currently set.  This
    triggered provisioning and the server was happy.

 eas-daemon/libeas/eas-connection.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/eas-daemon/libeas/eas-connection.c b/eas-daemon/libeas/eas-connection.c
index 52d58fe..02841fe 100644
--- a/eas-daemon/libeas/eas-connection.c
+++ b/eas-daemon/libeas/eas-connection.c
@@ -1127,6 +1127,12 @@ eas_connection_send_request (EasConnection* self,
                                                     "X-MS-PolicyKey", 
                                                     policy_key);
                }
+               else
+               {
+                       soup_message_headers_append (msg->request_headers,
+                                                    "X-MS-PolicyKey", 
+                                                    "0");
+               }
        }
        
 //in activesync 12.1, SendMail uses mime, not wbxml in the body


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]