flok99

kopano rrule

Dec 16th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. $ diff -uNrBbd libicalmapi/vconverter.cpp.org libicalmapi/vconverter.cpp
  2. --- libicalmapi/vconverter.cpp.org      2016-12-16 09:56:35.782499500 +0100
  3. +++ libicalmapi/vconverter.cpp  2016-12-16 09:57:38.417999500 +0100
  4. @@ -1551,9 +1551,10 @@
  5.                 return hrSuccess;
  6.         }
  7.  
  8. -       if (m_iCurrentTimeZone == m_mapTimeZones->end())
  9.                 // if we have an RRULE, we must have a timezone
  10. -               return MAPI_E_CORRUPT_DATA;
  11. +       // some clients, like thunderbird 45.5.1 don't add it so then work around it by assuming UTC
  12. +       if (m_iCurrentTimeZone == m_mapTimeZones->end())
  13. +               m_iCurrentTimeZone = m_mapTimeZones->begin();
  14.  
  15.         HRESULT hr = icRecClass.HrParseICalRecurrenceRule(m_iCurrentTimeZone->second, lpicEventRoot, lpicEvent, bIsAllday, m_lpNamedProps, lpIcalItem);
  16.         if (hr != hrSuccess)
Advertisement
Add Comment
Please, Sign In to add comment