To test the process, select the message and run the ProcessAttachments macro which runs the main macro on the selected message. The main script associated with the rule acts on messages as they arrive in the inbox.