Vandelay Export drops calendar tasks (VTODO) and journals (VJOURNAL); only VEVENT is exported

Issue Description

When migrating a CalDAV source into a JMAP target, calendar tasks are read into the archive during import but are silently skipped during export. The same appears to apply to journal entries.

Environment

vandelay 1.0.12 (
Source: SOGo/Mailcow CalDAV
Target: Stalwart 0.16.25 (JMAP)

Expected Behavior

Either tasks are exported as well, or (if the JMAP target cannot represent them) inspect and the export summary report them as a distinct type so the discrepancy is visible, rather than the count just silently differing.

Actual Behavior

tasks & journals are skipped by vandelay export

Reproduction Steps

vandelay import caldav --url --auth-basic acct.sqlite on a calendar that contains VEVENTs and VTODOs.
vandelay inspect acct.sqlite → calendarevent count includes the tasks (e.g. 3843).
vandelay export --dry-run --url … acct.sqlite → CalendarEvent CREATE is lower by exactly the number of tasks (e.g. 3826).

Relevant Log Output

/migration ./migrate-mailbox.sh [email protected] inspect
Archive: /migration/archives/[email protected]
Source: imap imaps://xxx:993 (account [email protected] / [email protected])

mailbox 13
email 25,705
identity 0
sievescript 0
addressbook 2
contactcard 5
calendar 1
calendarevent 3,843
participantidentity 0
filenode 0

blobs 25,705 (1.9 GB)

2026-10-12 14:14:28 === export DRY RUN [email protected] → https://stalwart.xxx.eu (use --commit to write) ===
export: Mailbox …
export: AddressBook …
export: Calendar …
export: Email …
export: ContactCard …
export: CalendarEvent …
TYPE CREATE MATCHED
Mailbox 7 6
AddressBook 2 0
Calendar 1 0
Email 25705 0
ContactCard 5 0
CalendarEvent 3826 0

2026-10-12 14:14:30 === export finished ===
sqlite3 /root/migration/archives/[email protected]
“SELECT data_type, count(*) FROM calendar_events GROUP BY 1;”
Event|3826
Task|17

Stalwart Version

v0.16.x

Installation Method

Binary (Linux)

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

Let me check the vandelay import/export tool itself in the server repo for how it handles calendar event types.

This isn’t covered in the current docs. A community member or staff member will follow up.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

The 17 tasks and journals are in the archive. Vandelay stores every VTODO and VJOURNAL it pulls over CalDAV, and inspect counts them, which is where 3843 comes from. Export only writes events because it goes through JMAP CalendarEvent, and Stalwart has no JMAP object for tasks it could write them to (JMAP for Calendars is just for calendars, it has no Todo or Journal support).

Skipping them without a word is not OK, though. Inspect and export should list tasks and journals as their own type and say they were skipped, and the docs should say so too. I’ll fix both.

To move those 17 now, export them as .ics from the source with any CalDAV client and import that file into Stalwart over CalDAV, which accepts VTODO and VJOURNAL.

Thanks for the quick and clear explanation, that makes sense.

I’d already worked around it on my side with a small script that pushes the VTODOs to Stalwart over CalDAV, so the migration itself isn’t blocked. Good to hear inspect/export will report them as skipped, that would have saved me some head-scratching.

One thing worth adding to the docs: the same limitation applies to restores. If someone uses vandelay archives as a per-mailbox backup (which I do), restoring via export won’t bring tasks and journals back either. They’d have to be re-imported over CalDAV. A short note on that next to the export caveat would help anyone relying on vandelay for backups.

Thanks again for the tool and the fast response.