Menu

#100 iCal Property CLASS:PRIVATE for tasks and events

Backlog
open
nobody
3
2019-04-17
2015-03-20
Khaos
No

When using DavMail to sync with Exchange Server via CalDAV, the iCal property CLASS is not mapped to a tasks private status.

CLASS can be PUBLIC, PRIVATE or CONFIDENTIAL.
DavMail should at least react to CLASS:PRIVATE and return this in case of a private task/event.

Discussion

  • Khaos

    Khaos - 2015-07-01

    Shouldn't this work already?

     
  • Khaos

    Khaos - 2015-10-14

    I just had a look into the sources because of an other bug and there is no mapping for the CLASS property jet =/

     
  • Mickael Guessant

    • Group: Next Release (example) --> Backlog
     
  • Mickael Guessant

    Moving to backlog

     
  • Khaos

    Khaos - 2019-04-17

    Not sure how SourceForge handles pulls, so I write the solution right here ;)
    EwsExchangeSession.java
    + 1573 updates.add(Field.createFieldUpdate("sensitivity", convertClassToSensitivity(vCalendar.getFirstVeventPropertyValue("CLASS"))));

    somewhere at the bottom

    protected static final Map<String, String> classToSensitivityMap = new HashMap<String, String>();
    
        static {
            classToSensitivityMap.put("PUBLIC", "0");
            classToSensitivityMap.put("PRIVATE", "2");
            classToSensitivityMap.put("CONFIDENTIAL", "3");
        }
    
        protected String convertClassToSensitivity(String clazz) {
            String value = null;
            if (clazz != null) {
                value = classToSensitivityMap.get(clazz);
            }
            return value;
        }
    
     

    Last edit: Khaos 2019-04-17
  • Mickael Guessant

    Thanks for your contribution, if you prefer pull requests you can create one at:
    https://github.com/mguessan/davmail

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.