SUMMARY Ran the kmail expire function on a folder to move all emails in a courier-imap folder older than 1095 day (3 Years) to another folder "OLD". OBSERVED RESULT I now have thousands of emails listed both in my Inbox and "OLD" folders as: Subject: "message unavailable" Sender: "System Administrator root@localhost" Date: 1/1/70 12:00 AM Inbox Folder Properties -> Maintenance now shows Total Items: 5609 Unread Items: 17 OLD Folder Properties -> Maintenance now shows Total Items: 13064 Unread Items: 13058 Logging into my courier-imap server, listing files in inbox/cur shows: $>ls -l cur|wc -l 5612 listing files in OLD/cur shows: $>ls -l .OLD/cur|wc -l 13065 Roundcube now shows 4663 Inbox emails and they're all visible Also now shows total of 13064 all unreadable but for 2. All the moved emails now show in "OLD" folder as: Sender: "System Administrator root@localhost" Subject: "message unavailable" Date: 1/1/70 12:00 AM So apparently messages were lost. Logging in to the imap server and looking at a an email: $ .maildir/.OLD/cur # cat 1611159631.M331669P27922V000000000000FD07I0000000000126AC5_6563.apps\,S\=414\:2\, X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on jaj.acjlaw.net X-Spam-Level: **** X-Spam-Status: No, score=4.2 required=5.0 tests=MISSING_DATE,MISSING_HEADERS, MISSING_MID,NO_HEADERS_MESSAGE,NO_RECEIVED,NO_RELAYS autolearn=no autolearn_force=no version=3.4.4 X-Virus-Flag: no From: System Administrator <root@localhost> Subject: message unavailable This message is no longer available on the server. apps /home/anita/.maildir/.OLD/cur EXPECTED RESULT should show correct number of emails now in both my "Inbox" and "OLD" folders and should also display the subject, sender, and date correctly. I can't see any of my moved emails using kmail even though they are clearly there in the courier-imap folder on the server. I've deleted the courier-imap account in kmail and re-added the account to no avail. All my emails are now "gone" but they're there on the server. They were indeed properly moved from "Inbox" to ".OLD/cur" I've also run "akonadictl fsck" and "akonadictl vacuum" to no avail. SOFTWARE/OS VERSIONS Ubuntu: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Will restore from backup and try another program to move old emails.