D
Daniel Rimmelzwaan
We have a problem with outlook integration in an ERP system. The system
basically runs a service that polls an outlook folder. When an email is
received, it logs the email internally and moves the email to a user defined
outlook folder. All the email address fields in this system are 80
characters long, and when it receives an email with a from address longer
than 80 characters, we're in trouble. Rather than handle exceptions
properly, the system doesn't know what to do and tries it again, ad
infinitum. After a while, it shuts down the email logging feature altogether
and someone has to go in, remove the culprit email, and start the service
back up again.
I tried to see if I can create a rule that moves emails with a from address
longer than 80 characters to a Review folder, but that does not seem to be
available. So, I guess the next step is to create a VBA routine that checks
the length of the from address and moves the email to a non-polling folder.
My question is two-fold:
1: Can I run a macro or something from a rule, or any other VBA program? I
saw where it says 'Run a script', but that does not display my macro for
selection. I need to know how to make my script/macro/module show up in that
selection screen.
2: Could anyone give me a code sample of how to do this?
Thanks for your time,
Daniel
basically runs a service that polls an outlook folder. When an email is
received, it logs the email internally and moves the email to a user defined
outlook folder. All the email address fields in this system are 80
characters long, and when it receives an email with a from address longer
than 80 characters, we're in trouble. Rather than handle exceptions
properly, the system doesn't know what to do and tries it again, ad
infinitum. After a while, it shuts down the email logging feature altogether
and someone has to go in, remove the culprit email, and start the service
back up again.
I tried to see if I can create a rule that moves emails with a from address
longer than 80 characters to a Review folder, but that does not seem to be
available. So, I guess the next step is to create a VBA routine that checks
the length of the from address and moves the email to a non-polling folder.
My question is two-fold:
1: Can I run a macro or something from a rule, or any other VBA program? I
saw where it says 'Run a script', but that does not display my macro for
selection. I need to know how to make my script/macro/module show up in that
selection screen.
2: Could anyone give me a code sample of how to do this?
Thanks for your time,
Daniel