This forum is for discussions about developing add-ons, not for
end-user add-on questions. In the future you should go to
for end-user
support for add-ons.
Having said that…
How did you migrate the emails from Outlook to iCloud? Did you
literally forward the emails to your iCloud account, which seems
unlikely, or did you connect both accounts to Outlook and drag and
drop the messages from the Exchange account to the IMAP account?
If the latter, then dragging and dropping would not add new
“Received” header lines to messages.
If I'm correct, then the sort order that's being used is not
dates pulled from “Received” lines of messages, but rather most
likely the “order received” metadata stored on the IMAP server.
This cannot be modified by IMAP clients, so there’s no way a
Thunderbird add-on could change it. However, what I think you can
do, which won’t require an add-on at all, is the following:
- Add your iCloud IMAP account to Thunderbird.
-
In Thunderbird, sort the messages in ascending order (i.e.,
newest messages at the bottom) by date.
-
Create a new empty folder, select all the messages, and drag
them into the new folder.
I’m pretty sure that Thunderbird will move them into the new
folder in the order in which they were sorted when you dragged
them, which means that the “order received” field will reflect the
date order of the messages. You can test this out on a small
subset of the messages before moving all of them, i.e., move a
small subset in Thunderbird then check the Mail app or iCloud web
interface to make sure they’re sorted as expected, just to make
sure.
Regards,
Jonathan Kamens