downloadMail Plugin: Archive Setting
I would like the downloadMail plugin to archive emails instead of deleting them. I am using IMAP and have created a folder in the email account called "archive". I have specified the folder in the settings as:
'archive' => 'archive', // IMAP Only, move messages to this folder instead of deleting them
However the emails are still being deleted. I guess the folder path is incorrect... how can I confirm what the folder path is?
The folder name format may differ depending on mail client, but two that I'm aware of will prefix them with "INBOX." or "INBOX/" so in your case, you can try "INBOX.archive" and "INBOX/archive".
You can also try looking in your background task log - I believe that if the plugin fails to archive it will output a list of available folders in its task log output.
Let me know if you're able to make any progress; there may be some alternate options to find the folder name if the above doesn't work.
Thank you for your reply. In the end, I switched to a Microsoft 365 account and there seems to be no prefix applied so "archive" worked!
.... there may be some alternate options to find the folder name if the above doesn't work
However I would be very grateful if you could share these alternative options as I often seem to go round in circles with this!