My problem is to save a message in a format that can be opened with Outlook (for example *.msg).
In Outlook this is done with the function "File>Save".
The problem is that this must be done with a script running on the server.
Therefore I have installed the perl module "Mail::IMAPClient".
With this module I can connect to a mailbox and select the messages.
I can also save a message in a file with the function "$imap->fetch($msg,'RFC822') but Outlook cannot open this file.
Same problem with "$imap->message_to_file()".
Any help is appreciated.
Michelangelo