3,441 apps tracked 0 new today 15 updated today Synced 20m ago

DavMail

Office 365 and Exchange gateway

Mickaël Guessant

org.davmail.DavMail
View on Flathub ↗

Ever wanted to get rid of Outlook? DavMail is a POP/IMAP/SMTP/CalDAV/CardDAV/LDAP Exchange and Office 365 gateway allowing users to use any mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an Exchange server. DavMail now includes an LDAP gateway to Exchange global address book and user personal contacts to allow recipient address completion in the mail compose window and full calendar support with attendee free busy display. The main goal of DavMail is to provide standard compliant protocols in front of proprietary Exchange. This means LDAP for address book search, SMTP to send messages, IMAP to browse messages on the server in any folder, POP to retrieve inbox messages only, CalDAV for calendar support and CardDAV for contact synchronization. Thus, any standard compliant client can be used with Microsoft Exchange and Office 365. DavMail gateway is implemented in java and should run on any platform. Releases are tested on Windows, Linux (Fedora, Debian, Ubuntu, OpenSUSE) and macOS.

Screenshots

DavMail architecture
DavMail architecture
DavMail main window
DavMail main window
DavMail Settings
DavMail Settings
DavMail O365 Signin
DavMail O365 Signin

Observed history

App ChangeVersionWhen ↓
updated7.0.0 → 7.1.019 Oct 2026
updated7.0.020 Sept 2026

Upstream releases

Release notes supplied by the developer. These dates are not Flathub package publication times.

7.1.017 Oct 2026

Maintenance release focused on Graph API improvements and network resilience. Implemented native people search for GAL, room booking support, and improved recurrence/timezone handling. Enhanced IMAP with UID EXPUNGE, UNKEYWORD and RFC 3501 date compliance. Added self-signed certificate generation, improved SWT stability, and hardened error handling across all protocols.

Graph

  • Graph: fix for https://github.com/mguessan/davmail/issues/522 user reports transactionId is not always unique, reimplement EWS approach based on calendaruid, keep transactionId to block duplicate creation over Graph
  • Graph: merge https://github.com/mguessan/davmail/pull/527, Use transactionId as backup in getCalendarUid - #527
  • Graph: merge https://github.com/mguessan/davmail/pull/528 Unilaterally set calendaruid for events
  • Graph: prepare orderBy in GraphRequestBuilder
  • Graph: implement workaround for out of sync calendar by fetching event by iCalUid, force isExpired check on session creation to validate token, use caldavPastDelay to build search task filter
  • Graph: cleanup from audit
  • Graph: fix https://github.com/mguessan/davmail/issues/532 O365Graph: refreshToken requests Outlook resource when enableOidc=false
  • Graph: fix for https://github.com/mguessan/davmail/issues/535, change urlcompnameToIdMap cache key to use EML form, fixes task GET/PUT/DELETE by client item name
  • Graph: fix for https://github.com/mguessan/davmail/issues/536, set X-MICROSOFT-SKYPETEAMSMEETINGURL from onlineMeeting joinUrl
  • Graph: fix for https://github.com/mguessan/davmail/issues/536, preserve link href in convertHtmlToText
  • Graph: improve timezone conversion in DateUtil to avoid unwanted warnings
  • Graph: ensure permanentUrlToImapUidMap is always populated
  • Graph: detect closed http client in isExpired()
  • Graph: initiate room booking implementation, change paging size on event search
  • Graph: fix https://github.com/mguessan/davmail/issues/548, do not lookup inbox for event messages over graph, rely on O365 to handle auto scheduling automatically
  • Graph: check token before returning session, detect invalid token (edge case after an EWS -> Graph switch and clear stored refresh token
  • Graph: improve handleThrottling, retry on transient graph endpoint errors
  • Graph: Change isExpired logic to rethrow exception on network error
  • Graph: randomize retry delay to avoid thundering herd on concurrent retries
  • Graph: fix recurrence UNTIL value, use timezone already fixed in DTSTART to match original event timezone instead of user timezone, see https://github.com/mguessan/davmail/issues/549
  • Graph: rename X-MICROSOFT-ISRESPONSEREQUESTED, see https://github.com/mguessan/davmail/issues/549
  • Graph: use native graph field for CLASS/sensitivity instead of the MAPI property see https://github.com/mguessan/davmail/issues/549
  • Graph: fetch PidLidOwnerCriticalChange on meetings to get correct owner timestamp see https://github.com/mguessan/davmail/issues/549
  • Graph: Fix for https://github.com/mguessan/davmail/issues/558 IMAP Connection Closes when Trying to Delete Mail Item that is Already Gone, workaround for Graph bug returning 403 forbidden for deleted messages
  • Graph: interim fix for https://github.com/mguessan/davmail/issues/556 Support Exchange Online Archive in O365Graph mode
  • Graph: handle isCancelled property on events, set STATUS to CANCELLED on occurrence
  • Graph: update checkConfig to hit Graph endpoint instead of legacy EWS endpoint
  • Graph: replace legacy A-Z search with native people search
  • Graph: set size limit in galFind matching ldap size limit
  • Graph: improve galFind search, leverage people search api to reduce redundant API calls
  • Graph: Use Directory source only to avoid duplicates with personal contacts which are already returned separately by the LDAP layer via searchContacts
  • Graph: fix https://github.com/mguessan/davmail/issues/566 normalize display name to short constants for consistency across backends
  • Graph: fix for https://github.com/mguessan/davmail/issues/563, force old VCARD 3 content with outdated macOS 27 Contacts application
  • Graph: grabbed fix from https://github.com/mguessan/davmail/pull/568, rename optString to optSectionString and fix issue on item name map

EWS

  • EWS: Detect EWS disabled on tenant
  • EWS: merge https://github.com/mguessan/davmail/pull/530, rebuild occurrences from occurrence items, do not trust Exchange to properly update MIME content
  • EWS: drop urlcompname on contacts, prefer itemId instead as more reliable id
  • EWS: implement room booking handling over EWS, based on Resources collection and cutype
  • EWS: fetch startTimeZone to provide a failover for localized tzid not available in timezones map, should fix https://github.com/mguessan/davmail/issues/542
  • EWS: make default CUTYPE room on attendee resources
  • EWS: implement null filtering on specific EWS calls that request starttimezone, remove � and � from xml content
  • EWS: improve null character filtering implementation, add unit tests
  • EWS: initiate davmail.caldavAutoSchedule deprecation, Exchange always handle scheduling events automatically
  • EWS: fix for https://github.com/mguessan/davmail/issues/564 do not send ChangeKey in SavedItemFolderId, not needed and may cause ErrorCannotCreateContactInNonContactFolder, ErrorCannotCreateCalendarItemInNonCalendarFolder

O365

  • O365: fix https://github.com/mguessan/davmail/issues/520, print number matching in headless mode
  • O365: just rethrow UnknownHostException in refresh token, do not convert to NetworkDownException

CalDAV

  • Caldav: refactor ICSBufferedWriter to remove recurion and avoid stack overflow with very long lines
  • CalDAV: fix https://github.com/mguessan/davmail/issues/533 update ICSCalendarValidator, drop invalid characters instead of replacing with space
  • Caldav: fix https://github.com/mguessan/davmail/issues/550, default event participant to required per RFC 5545 section 3.2.16
  • Caldav: merge https://github.com/mguessan/davmail/pull/540 report sub calendars as httpd/unix-directory in calendar listings
  • Caldav: improve network error handling
  • Caldav: fix nested response end
  • Caldav: over both Graph and EWS, do not fail on missing occurrence id, may just be a cancelled occurrence, see https://github.com/mguessan/davmail/issues/559
  • Caldav: merge change ICSCalendarValidator from https://github.com/mguessan/davmail/pull/560
  • Caldav: send empty response on root HEAD request
  • Caldav: avoid warning on Thunderbird caldav probing
  • Caldav: no need to dump stack trace on client connection closed
  • Caldav: fix for https://github.com/mguessan/davmail/issues/562, send principal-URL property if requested on root, drop old isIcal5 check
  • Caldav: fix https://github.com/mguessan/davmail/issues/543 invalid duration value in alarm

LDAP

  • LDAP: lookup LDAP_TO_CONTACT_ATTRIBUTE_MAP before CONTACT_ATTRIBUTES

IMAP

  • IMAP: improve message thread error handling
  • IMAP: improve network down detection over IMAP, return *BYE instead of *BAD
  • IMAP: force refresh on MOVE to send EXPUNGE notifications, see https://github.com/mguessan/davmail/issues/546
  • IMAP: merge https://github.com/mguessan/davmail/pull/545 implement UID expunge
  • IMAP: merge changes from https://github.com/mguessan/davmail/pull/521, implement UNKEYWORD
  • IMAP: remove unnecessary IMAP messages content debug logging
  • IMAP: merge changes from https://github.com/mguessan/davmail/pull/521, align SINCE/BEFORE/ON with RFC 3501 INTERNALDATE
  • IMAP: merge changes from https://github.com/mguessan/davmail/pull/521, additional test cases
  • IMAP: ensure we don't silently network error during fetch
  • IMAP: Avoid infinite loop waiting on IDLE when client disconnects
  • IMAP: properly send * BYE on UnknownHostException
  • IMAP: cleanup from audit
  • IMAP: improve message fetch logging

SMTP

  • SMTP: improve network issues error handling

SWT

  • SWT: fix race condition in display initialization, see https://github.com/mguessan/davmail/issues/544
  • SWT: fix deadlock in switchIcon and resetIcon methods, use asyncExec

Enhancements

  • Merge https://github.com/mguessan/davmail/pull/531, Prefer NTLM over Basic auth against on-prem Exchange when both are offered
  • Implement HttpClientAdapter.isClosed()
  • Log which network interface is up in network down detection logic
  • Revert unwanted change in winrun4j config
  • Implement a new -generateCert command line option to generate a self-signed PKCS12 certificate
  • Add generate certificate button to settings window, will help users setup TLS with self-signed certificates.
  • Cleanup from audit

Documentation

  • Doc: update README contribute section to point to GitHub, we receive all user contributions there anyway
  • Doc: remove review no longer online, add newer reviews and articles

Test

  • Test: need to force O365Graph mode in AbstractDavMailTestCase
7.0.019 Sept 2026

Major release focused on Graph API stability and performance, implemented folder delta sync with caching for efficient IMAP synchronization, also added Distribution list support, improved recurrence handling on events including per-instance meeting response. Reworked attendee and organizer, shared calendar and exception occurrences handling in EWS backend. Introduced a new read-only mode (davmail.caldavReadonly) for calendars, fixed timezone and phone number mappings.

Graph

  • Graph: implement maximum retry count on throttling
  • Graph: in executeGraphRequest rebuild request on retry
  • Graph: replace convertTimezoneFromExchange with DateUtil.getTimeZone
  • Graph: refactor convertUntilToEndDate to use DateUtil.convertDate, implement test for conversion
  • Graph: refactor date conversion methods buildUntilDate and convertOriginalStartDate
  • Graph: more date refactoring on originalStartTimeZone conversion
  • Graph: refactor isItemId to reuse compiled regex pattern
  • Graph: some more refactoring and cleanup, make sure throttling is detected on paging requests
  • Graph: remove responseTypeToPartstatMap in favor of responseTypeToPartstat method
  • Graph: nextLink must not be reencoded, replaces all other GraphRequestBuilder inputs
  • Graph: prepare delta synchronization, introduce deltaLink retrieval in GraphIterator
  • Graph: implement maxPageSize and deltaToken parameters in GraphRequestBuilder
  • Graph: implement getDeltaLink to retrieve current delta link value on folder, based on IMAP_MESSAGE_DELTA_ATTRIBUTES and getMessage to retrieve a message by id
  • Graph: unit test for delta sync
  • Graph: introduce refreshMessages to prepare delta sync
  • Graph: initial implementation of folder delta sync support, enable with davmail.graph.deltaSync=true
  • Graph: set both size limit ($top) and max page size (odata.maxpagesize) in searchMessages, log item count in fetchNextPage
  • Graph: implement full folder caching on top of delta sync, based on ConcurrentHashMap and ReentrantLock
  • Graph: improve recurrence handling, firstDayOfWeek is required for weekly patterns in Graph
  • Graph: add missing datereceived mapping for receivedDateTime
  • Graph: log Acquire lock on folder
  • Graph: always return false in isExpired as access token is automatically refreshed
  • Graph: switch delta sync on by default
  • Graph: detect meeting response with missing event, abort to avoid creating an invalid duplicate event
  • Graph: document davmail.graph.deltaSync in reference davmail.properties, even if it's now enabled by default
  • Graph: Handle HttpTokenExpiredException error code with a specific exception
  • Graph: switch contact description field to personalNotes instead of 0x1000 MAPI property
  • Graph: add a test case on contact personalNotes
  • Graph: fix delta sync test case
  • Graph: refactor attendees status / send meeting response to properly handle individual occurrences response status update
  • Graph: even more strict check on meeting response with missing event
  • Graph: adjust recursive multicondition handling to detect inner empty conditions, map personalnotes to standard field and separate description field
  • Graph: cleanup and avoid loop in getVTimezone
  • Graph: restore isExpired check, helps detect network down issues before trying to actually calling graph
  • Graph: cleanup partstatToResponseMap, remove unused map
  • Graph: review attributes retrieved on messages, drop changeKey, messageheaders, outlookmessageclass, should help with https://github.com/mguessan/davmail/issues/509
  • Graph: improve delta sync logging
  • Graph: improve getSubFolderByName logging
  • Graph: prepare distributionlist implementation
  • Graph: initial distribution list implementation, retrieve VCARD entries with members as KIND:group
  • Graph: implement distribution list lifecycle (create/update/delete), assume client takes into account returned item name
  • Graph: review distribution list attribute mapping to match EWS, and workaround for bug on the distribution list beta endpoint
  • Graph: make sure message count matches current list count
  • Graph: add missing Calendars.ReadWrite.Shared scope to access shared folders over graph
  • Graph: refactor task implementation to insert a TODO. prefix in item name and avoid not found / failover logic
  • Graph: fix searchTasksOnly, return empty list on shared folders
  • Graph: switch DateUtil to use java.time, make sure day is lower case
  • Graph: experimental recurrence support on todo items, fix TODO. based itemId implementation
  • Graph: fix https://github.com/mguessan/davmail/issues/515 Graph + O365DeviceCode: with davmail.enableOidc unset, device code requested on v1 endpoint but redeemed on v2 — no refresh_token, "Exception parsing token"
  • Graph: refactor event search to return minimal information by default, but full event content on timerange search, fix for https://github.com/mguessan/davmail/issues/514
  • Graph: do not search for tasks in shared folders
  • Graph: build imapFlagMap as part of loadMessages/computeAttributes to avoid ConcurrentModificationException on multiple connections to same folder
  • Graph: move computeAttributes to critical section to ensure imapFlagMap is properly refreshed
  • Graph: protect against potential npe when extracting alias
  • Graph: protect against potential npe in isMainCalendar and isMainContactFolder methods
  • Graph: make urlcompnameToIdMap and folderIdCach thread safe
  • Graph: handle malformed Retry-After header
  • Graph: avoid potential npe in executeJsonRequest and executeGraphRequest methods
  • Graph: adjust previous patch, make sure JsonResponseHandler never returns null
  • Graph: improve error logging
  • Graph: replace 102, 103, 104 with MAPI constants defined in ExchangeSession
  • Graph: simplify GraphIterator, remove dead code
  • Graph: introduce constants for 261, 262 replied and forwarded icons
  • Graph: fix another edge case on search for shared tasks
  • Graph: fix regression on urlcompnameToIdMap, id is null on meeting response and ConcurrentHashMap cannot store null values
  • Graph: merge https://github.com/mguessan/davmail/pull/517 keep origin of appended messages (date, Received, threading, read flag)
  • Graph: add unit test for https://github.com/mguessan/davmail/pull/517 keep origin of appended messages (date, Received, threading, read flag)
  • Graph: fix DavMailAuthenticationException check in O365Token, fail when Mail.ReadWrite is missing instead of EWS.AccessAsUser.All present, see https://github.com/mguessan/davmail/issues/518
  • Graph: fix https://github.com/mguessan/davmail/issues/519, property return well known folder id for deleted items
  • Graph: fix https://github.com/mguessan/davmail/issues/518 skip empty condition to avoid invalid filter

EWS

  • EWS: apply isItemId refactoring to EWS
  • EWS: reimplement recursive search with deep folder traversal, based on user contribution, see https://sourceforge.net/p/davmail/patches/60/
  • EWS: apply missing event over EWS, abort to avoid creating an invalid duplicate event
  • EWS: port new individual occurrence meeting response to EWS, also drop the davmailtemp logic that is no longer working (create timezone event in normal calendar)
  • EWS: map uid in default contact attributes
  • EWS: do not try to erase uid on update
  • EWS: convert user provided timezone id to Exchange
  • EWS: do not try to force PARTSTAT when building attendees, use Exchange provided value
  • EWS: Exchange does not properly build attendees on exception occurrences, it does not provide organizer either, rebuild both, see https://github.com/mguessan/davmail/issues/493
  • EWS: make sure the organizer information is also retrieved on master event
  • EWS: set folder type based on folderClass, adjust contact creation status handling, return null on empty contact photo retrieval, do not try to retrieve photo from AD with empty email
  • EWS: prepare getResponseItemFieldValue method to simplify code
  • EWS: impersonate only when caldavImpersonate is set, see https://github.com/mguessan/davmail/issues/512
  • EWS: When sending a meeting response on a shared calendar, ensure we impersonate shared mailbox, see https://github.com/mguessan/davmail/issues/512
  • EWS: Exchange does not properly set organizer property on shared calendars and exception occurrences, fix for https://github.com/mguessan/davmail/issues/512
  • EWS: get rid of davmail.caldavImpersonate setting and improve meeting management logging
  • EWS: change approach on attendees, do not trust Exchange created attendees, rebuild from EWS item information
  • EWS: more logging on attendee status management

O365

  • O365: fix scope check in O365Token, avoid resetting token when scope is null, see https://sourceforge.net/p/davmail/bugs/751/
  • O365: remove main method from O365InteractiveAuthenticator now that we have the -token command line option to check embedded browser interaction
  • O365: UnknownException means network is down in O365 refresh token handling
  • O365: move multicondition logic back to ExchangeSession
  • O365: make the decrypt token error more explicit, it's often a mismatch in passwords between CalDAV/CardDAV/IMAP clients
  • O365: send DavMailException instead of generic IOException on token parsing error
  • O365: force reauthentication after switching from EWS to Graph

CalDAV

  • Caldav: review error handling, report 400 error codes to client instead of generic error
  • Caldav: remove duplicate replaceIcal4Principal method
  • Caldav: fix potential null pointer in VCalendar.isCurrentUser()
  • CalDAV: add missing Europe/Amsterdam timezone mapping
  • CalDAV: review and add additional missing timezone mappings
  • Caldav: implement DavMail side Caldav read-only mode with davmail.caldavReadonly=true, see https://github.com/mguessan/davmail/issues/146
  • Caldav: review phone numbers mapping to support otherHomePhone and otherBusinessTelephoneNumber
  • Caldav: Remove obsolete TestCaldav unit tests
  • Caldav: fix America/Bahia timezone mapping, see https://github.com/mguessan/davmail/issues/508
  • Caldav: additional timezone mapping fixes
  • CalDAV: properly detect and handle empty credentials
  • CalDAV: fix searchTasksOnly on main calendar, should lookup in tasks folder, see https://github.com/mguessan/davmail/issues/511
  • CalDav: fix https://github.com/mguessan/davmail/issues/511, warn if start date is after due date, ignore value for DTSTART
  • Caldav: exclude distribution lists for Thunderbird, not yet supported
  • Caldav: fix for https://github.com/mguessan/davmail/issues/513, missing VCalendar version property
  • Caldav: improve log message when client requests non itemId based item name

CardDAV

  • CardDAV: adjust test case for Graph
  • CardDAV: refactor TestExchangeSessionContact unit tests
  • Carddav: drop urlcompname (client provided item name) for contacts, prefer more reliable id, adjust personalNotes case

Build

  • Build: exclude OpenJFX based interactive authentication only, SWT is still available
  • Build: review debian javafx flag
  • Build: switch Sonar scan to JDK25 in AppVeyor build script
  • Build: fix javafx path in appveyor
  • Build: fix appveyor javafx path check
  • Build: adjust jacoco.xml path to match Sonar configuration
  • Build: set sonar.java.test.binaries
  • Build: remove woodstox StreamScanner exclusion from sonar configuration, we no longer provide a patched version of this class

Documentation

  • Doc: fix getting started link in README.md
  • Doc: add a SECURITY.md security policy
  • Doc: additional README enhancements
  • Doc: improve README with getting started and What's new sections
  • Doc: improve README, fix url and add reference to license
  • Doc: Remove remaining Mac OS X references
  • Doc: update download instructions and remove outdated links
  • Doc: update donation link
  • Doc: fix Download page
  • Doc: Review DavMail description in appdata.xml for clarity
  • Doc: Update debian package description
  • Doc: Update project description on POM

Enhancements

  • Remove IllegalArgumentException from URIUtil
  • Switch to curl user agent for version check, not blocked by Sourceforge
  • Implement davmail.logConnectionFilePath to send connection logs to a separate file
  • Refactor DavMailIdleConnectionEvictor to avoid CPU spike waking up from sleep/hibernate, use scheduleWithFixedDelay instead of fixedRate
  • Log backend and authentication modes on startup

Linux

  • Linux: improve security, create token file with private permissions

Test

  • Test: use a separate test.properties file to provide credentials for unit tests
  • Test: drop obsolete SSL socket factory
  • Test: Additional testcase
  • Test: DateUtilTest test cases
  • Test: cleanup unit tests
  • Test: fetch jacoco report
  • Test: adjust target path for jacoco.xml download
  • Test: cleanup old test case code
  • Test: prepare automatic switch to ExchangeEWS mode
  • Test: Add O365EWS contact tests
  • Test: Adjust CardDav unit tests
  • Test: Add EWS test to jacoco coverage report
  • Test: update contact test case
  • Test: additional IMAP test cases
  • Test: include TestImap in jacoco report
  • Test: Review calendar unit tests
  • Test: add TestExchangeSessionCalendar to jacoco report
  • Test: additional contact unit test on distribution list
  • Test: force default unit tests to use O365Graph mode
  • Test: Additional test case on searching shared tasks through calendar
  • Test: Adjust testGetDayOfWeek to latest format change in DateUtil
  • Test: review SMTP unit tests
6.8.130 Jun 2026

Bugfix release with a fix for a long-standing bug on contact sync over EWS. Implemented davmail.folderFetchPageSize in graph mode to change the default message fetch page size. Fixed an issue with kerberos authentication, KRB5CCNAME environment variable is mandatory with recent Linux distributions to force file-based kerberos cache, introduced a new -kerberos command line option to validate token access.

Graph

  • Graph: bring back paging size with davmail.folderFetchPageSize, see https://github.com/mguessan/davmail/issues/500

O365

  • O365: merge java part of https://github.com/mguessan/davmail/pull/494
  • O365: set resource parameter on token request only if OIDC is explicitly set to false

EWS

  • EWS: merge https://github.com/mguessan/davmail/pull/496 Preserve UTC timezone when creating events with Zulu DTSTART/DTEND
  • EWS: cleanup unused ownerResponseReply variable
  • EWS: completely drop Exchange 2007 workaround on organizer response type, see https://github.com/mguessan/davmail/issues/493
  • EWS: usersmimecertificate and msexchangecertificate are readonly, do not try to remove them from contact properties, see https://sourceforge.net/p/davmail/bugs/749/

Kerberos

  • Kerberos: warn on linux on missing KRB5CCNAME environment variable
  • Kerberos: introduce -kerberos command line option to check Kerberos configuration
  • Kerberos: revert to static client login module creation and set empty credentials when kerberos is enabled to force JAAS authentication
  • Kerberos: build client login module dynamically with principal

Linux

  • Linux: exclude hamcrest-core dependency from build
  • Linux: switch SWT : version 4.40 on linux platform independent package
  • Linux: remove unused jars from RPM package

Documentation

  • Doc: update macOS instructions
  • Doc: drop references to legacy webapp package
  • Doc: improve Kerberos setup instructions, describe KRB5CCNAME environment variable usage
  • Doc: Add links to Flatpak and Docker on home page
  • Doc: Update project home page description
  • Doc: typo updates

SWT

  • SWT: log loaded SWT version

CalDAV

  • Caldav: map missing Europe/Kyiv standard timezone
  • Caldav: drop old ActiveSync related workaround, see https://github.com/mguessan/davmail/issues/493

Enhancement

  • Add proper warning on unknown command line option
  • Cleanup from audit
6.8.012 Jun 2026

First version with active Graph support available in GUI, refactored configuration to separate mode (Graph, EWS, ...) from authentication. Includes a lot of user contributions to Graph backend, mostly on calendar events handling. Improved macOS Tahoe support and fixed regressions on tray icon and hide from dock settings. Reviewed documentation to match recent changes.

Graph

  • Graph: new workaround attempt for https://github.com/mguessan/davmail/issues/491 ErrorIrresolvableConflict, check if message exists and retry update
  • Graph: Translate missing messages for new modes/authentication
  • Graph: Missing messages for new modes/authentication
  • Graph: https://github.com/mguessan/davmail/issues/404 refactor mode handling to separate authentication from protocol. Introduce O365EWS, O365Graph and ExchangeEWS modes. Authentication set separately in davmail.authentication setting.
  • Graph: implement davmail.caldav.enableOnlineMeeting to automatically create a Teams meeting
  • Graph: detect invalid_grant error on live.com accounts and force scope to openid profile offline_access Mail.ReadWrite
  • Graph: enable OIDC by default with Graph enabled when retrieving token
  • Graph: implement X-MICROSOFT-DISALLOW-COUNTER/allowNewTimeProposals
  • Graph: move exdate/exception handling after create to handle event import with exceptions
  • Graph: more refactoring on event createOrUpdate to prepare exdate handling on create
  • Graph: refactor event createOrUpdate to prepare exdate handling on create
  • Graph: allow reminder updates for existing meetings
  • Graph: try to protect against unwanted meeting updates when not organizer
  • Graph: add missing xmozsnoozetime and xmozlastack to event attributes
  • Graph: refactor folderId to improve readability
  • Graph: do not check etag on meeting responses or dismiss
  • Graph: fix Thunderbird snooze / dismiss, properly map xmozlastack/xmozsnoozetime with GraphObject
  • Graph: handle multilevel conditions, add parentheses
  • Graph: dump full JSON error in debug mode
  • Graph: refactor folderId IPF_CONTACT to avoid duplicate strings
  • Graph: switch to mailFolders root for isExpired check
  • Graph: workaround for https://github.com/mguessan/davmail/issues/488, missing id on folder
  • Graph: override isExpired check with a simple call to /me
  • Graph: implement well-known folder id cache on personal mailbox
  • Graph: Thunderbird snooze / dismiss, only update fields, do not call dismissReminder as this removes alarm completely
  • Graph: handle tzone://Microsoft/Utc specifically, see https://github.com/mguessan/davmail/issues/469
  • Graph: format recurrenceId to Zulu when original start timezone is not available
  • Graph: drop originalEndTimeZone
  • Graph: switch to isOrganizer to detect invites
  • Graph: map originalEndTimeZone and originalEnd fields
  • Graph: improve getAttendeeStatus, iterate over all Vevents to detect meeting response
  • Graph: https://github.com/mguessan/davmail/pull/486 refactor timezone conversion, parse originalStart as ISO8601 string
  • Graph: occurrences are deleted with explicit calls, not the cancelledOccurrences property
  • Graph: https://github.com/mguessan/davmail/pull/481 do not try to convert original start with unknown timezone
  • Graph: fix https://github.com/mguessan/davmail/issues/469 unsupported timezone value from originalStartTimeZone
  • Graph: fix regression in convertOriginalStartDate, originalStart is supposed to be in UTC
  • Graph: catch when originalStart is not in UTC format in getRecurrenceId
  • Graph: handle until recurrence rule in yyyyMMdd format
  • Graph: https://github.com/mguessan/davmail/pull/481 ignore provided timezone when date is already Zulu
  • Graph: https://github.com/mguessan/davmail/pull/481 apply the buildUntilDate patch, recurrenceTimeZone is irrelevant
  • Graph: restore original start timezone on recurring events, adjust recurrence id based on originalStart being always in UTC, see https://github.com/mguessan/davmail/issues/469
  • Graph: fix https://github.com/mguessan/davmail/issues/474 Update src/etc/davmail.properties with Graph override settings
  • Graph: merge https://github.com/mguessan/davmail/pull/485 Only set transactionId on create, not update, to avoid ErrorInvalidRequest
  • Graph: fix https://github.com/mguessan/davmail/issues/471 Cannot create event, regression introduced by event message implementation
  • Graph: merge https://github.com/mguessan/davmail/pull/478 Fix/improve nanosecond date conversion handling
  • Graph: implement unit tests for GraphExchangeSession.convertDateFromExchange()
  • Graph: merge https://github.com/mguessan/davmail/pull/476 send outlook.timezone Prefer header alongside IdType
  • Graph: Merge https://github.com/mguessan/davmail/pull/477 Add support for numbered recurrence type in CalDAV downloads.
  • Graph: push missing processed extended field
  • Graph: extract getSubfolderPath method to handle shared mailbox case in getSubfolders

O365

  • O365: improve token request logging
  • O365: fix ExchangeSessionFactory.getAuthenticatorClass()
  • O365: merge https://github.com/mguessan/davmail/pull/441 Allow sending HTTP origin header for token requests
  • O365: improve token check, a valid graph token may contain EWS scope

EWS

  • EWS: implement additional recurrence patterns in EWS mode
  • EWS: refactor rrule handling in EwsExchangeSession
  • EWS: fix https://github.com/mguessan/davmail/issues/149 do not try to fix attendees if Exchange provided them already
  • EWS: comment davmail.caldavImpersonate setting

Caldav

  • Caldav: all missing timezone mappings
  • Caldav: more missing timezone mappings
  • Caldav: add timezone mapping for Central Standard Time and Asia/Singapore
  • Caldav: prepare improved Standard to Exchange timezone mapping
  • Caldav: append both timezone objects on mixed timezone events
  • Caldav: merge https://github.com/mguessan/davmail/pull/480 Teach fixVCalendar to convert TZIDs individually

SWT

  • SWT: cleanup sync from audit
  • SWT: set AppName to avoid default icon with embedded browser window under Wayland
  • SWT: catch missing image
  • SWT: replace synchronized block with ReentrantLock
  • SWT: fix thread synchronization
  • SWT: review synchronization code around SWT thread initialization

Documentation

  • Documentation: update DavMail settings documentation with new modes and authentication options
  • Doc: new modern architecture diagram
  • Doc: merge https://github.com/mguessan/davmail/pull/490 Add more tips for configuring PKCS11

GUI

  • GUI: disable URL field when mode is O365
  • Fix https://github.com/mguessan/davmail/issues/170 O365 Interactive/Manual does not allow context menu/paste
  • GUI: switch to 128x128 icons and enable tray icon auto-size
  • GUI: properly dispose window on close in AboutFrame

OSX

  • OSX: do not log missing SWT on OSX
  • OSX: remove empty Logs menu
  • OSX: alternative way to locate Info.plist file
  • OSX: replace exec with open -a --args to ensure proper application context under macOS Tahoe
  • OSX: Revert to script based version of universalJavaApplicationStub, upgrade to latest 3.3.0 version
  • OSX: Provide instructions for embedding JDK inside application bundle
  • OSX: More troubleshooting instructions
  • OSX: Update setup instructions
  • OSX: add NSAppleEventsUsageDescription recommended by universalJavaApplicationStub
  • OSX: upgrade universalJavaApplicationStub to latest compiled version

Linux

  • Linux: merge https://github.com/mguessan/davmail/issues/465 libswt-webkit-4-jni dependencies does not exist
  • Linux: fix regression on Suse builds, move if check inside old init / userdel section

Build

  • Appveyor: add jdk25 as target
  • Flatpak: Fix appdata file format

Enhancements

  • Log code location at startup
  • Cleanup from audit
  • Add missing messages
  • Append line feed at end of file
  • Fix https://github.com/mguessan/davmail/issues/438 Davmail does not exit when socket bind failed, introduce davmail.exitOnBindFailed setting
  • Merge https://github.com/mguessan/davmail/pull/464/ Fix some typos (found by codespell)
  • Update AbstractExchangeSessionTestCase, use test.properties for credentials