mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
582 stars 86 forks source link

Cannot add multiple categories to a task #372

Open KomtGoed opened 4 days ago

KomtGoed commented 4 days ago

Hi,

I'm using davmail through Thunderbird.

When creating a task, I usually assign two categories, i.e. a priority and a type of category. This worked fine while I was using TbSync to connect to Exchange.

Since using davmail, I cannot assign two categories anymore. Thunderbird displays both categories before saving but after saving, only one of the two categories is included on the task. The second category can be added through OWA.

Interestingly enough, retrieving and displaying multiple categories from existing (pre-davmail) tasks works fine, as with tasks "enhanced" through OWA.

Is this potentially related to the following issue: #178 ?

Thanks!

esabol commented 4 days ago

Is this potentially related to the following issue: https://github.com/mguessan/davmail/issues/178 ?

It sure seems like it to me, @KomtGoed. Would you be up to compiling a modified version of DavMail yourself to test this?

The change seems super-easy to implement. Just edit src/java/davmail/exchange/VProperty.java, go to line 36, and insert the following lines:

        MULTIVALUED_PROPERTIES.add("CATEGORIES");
        MULTIVALUED_PROPERTIES.add("FREEBUSY");
        MULTIVALUED_PROPERTIES.add("RECUR");
KomtGoed commented 4 days ago

Thanks for the quick response.

I tried but it didn't seem to fix the issue.

Do you have any other ideas? Thanks a lot!

esabol commented 3 days ago

@KomtGoed wrote:

Do you have any other ideas?

Not really. I'm surprised that didn't work, tbh. You'll need to wait for someone more knowledgeable, i.e. @mguessan, to take a look, I think.

esabol commented 3 days ago

A WIRE debug log of the interaction between your modified version of DavMail and Thunderbird might help. Check the first FAQ here:

https://davmail.sourceforge.net/faq.html#Feedback

Edit your ~/.davmail.properties file and add the following lines to the file:

log4j.logger.httpclient.wire=DEBUG
log4j.logger.org.apache.http.wire=DEBUG

Quit and restart the DavMail application. Then have your mail program connect to DavMail and try to create another task with multiple categories. DavMail will then create a detailed log of what it is doing. This log will be stored in a davmail.log file. By default, it will be located in DavMail's current working directory on Linux and Windows. This log file might include authentication information like your password and other account details that you should not share online. If you are confident you can remove those things from the davmail.log file, feel free to post the sanitized file here. Otherwise, send the log file to mguessan@free.fr along with the URL of this GitHub issue. I hope this helps!