Operating system:: Windows 11
Outlook version: Outlook 2019
Email type or host: IMAP
Outlook version: Outlook 2019
Email type or host: IMAP
Hi everyone,
I was trying to set up an automatic archiving system in Outlook using VBA. The goal was:
I was trying to set up an automatic archiving system in Outlook using VBA. The goal was:
- Capture all emails from a single IMAP mailbox.
- Automatically copy them into a local PST file.
- Preserve the same folder structure as the IMAP mailbox.
- Avoid duplicates.
- Handle new folders and subfolders dynamically.
- The IMAP account will be used on two different computers, so each new email must be copied into the local PST on both computers, maintaining the same folder structure.