PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming newbie request: how to build a macro to move messages into a folder based on a message custom field content

Reply

newbie request: how to build a macro to move messages into a folder based on a message custom field content

 
Thread Tools Rate Thread
Old 25-02-2005, 11:22 AM   #1
Cristi@n
Guest
 
Posts: n/a
Default newbie request: how to build a macro to move messages into a folder based on a message custom field content


Hi Group,

I know it is never the case to post a request for source code to a
newsgroup, but I am a total newbie in Outlook programming and I have a
serious issue with SPAM over here. I'd like to send all the messages
that I receive to a specific folder based on the property value
(External) of a custom field called 'Message Type'.

Thank you for reading this message and for any time you'd like to
dedicate to help me.

Ciao,
Cristian

  Reply With Quote
Old 25-02-2005, 02:04 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: newbie request: how to build a macro to move messages into a folder based on a message custom field content

Where is this property? Is it inside the Internet headers as an X-header or
is it an actual Outlook UserProperty or MAPI property in the items?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Cristi@n" <nt00927@gmail.com> wrote in message
news:1109330555.739906.248440@o13g2000cwo.googlegroups.com...
> Hi Group,
>
> I know it is never the case to post a request for source code to a
> newsgroup, but I am a total newbie in Outlook programming and I have a
> serious issue with SPAM over here. I'd like to send all the messages
> that I receive to a specific folder based on the property value
> (External) of a custom field called 'Message Type'.
>
> Thank you for reading this message and for any time you'd like to
> dedicate to help me.
>
> Ciao,
> Cristian
>


  Reply With Quote
Old 25-02-2005, 02:49 PM   #3
Cristi@n
Guest
 
Posts: n/a
Default Re: newbie request: how to build a macro to move messages into a folder based on a message custom field content

It's in the Message Property Tage 0x8203 which is set by the Exchange
Server to "External" for messages coming from Internet. I would like to
build a script to redirect these messages to folder "Junk Mail".

Thanks for the help!

Regards,
Cristi@n

  Reply With Quote
Old 25-02-2005, 08:53 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: newbie request: how to build a macro to move messages into a folder based on a message custom field content

Please post parts of the preceding thread so it can be followed. You aren't
doing that and it makes it hard to follow a conversation.

You can't use the Outlook object model for that, you'd have to use CDO 1.21
(optional installation for Outlook 2000 and later) or Redemption
(www.dimastr.com/redemption) for that. You cannot use Extended MAPI in
VBA/VB code.

You will need to generate a property tag for that field and access it from a
CDO Message item's Fields collection or the equivalent Redemption item. I'm
not familiar with that property, my Exchange server doesn't add it to emails
coming in over the Internet.

One suggestion, why not just use PR_TRANSPORT_MESSAGE_HEADERS (0x007D001E),
which is a standard MAPI property (you'd still need CDO or Redemption).
Items sent within an Exchange org don't have that property, items from
external sources do have it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Cristi@n" <nt00927@gmail.com> wrote in message
news:1109342947.548685.104590@o13g2000cwo.googlegroups.com...
> It's in the Message Property Tage 0x8203 which is set by the Exchange
> Server to "External" for messages coming from Internet. I would like to
> build a script to redirect these messages to folder "Junk Mail".
>
> Thanks for the help!
>
> Regards,
> Cristi@n
>


  Reply With Quote
Old 25-02-2005, 11:39 PM   #5
Cristi@n
Guest
 
Posts: n/a
Default Re: newbie request: how to build a macro to move messages into a folder based on a message custom field content

Thank you very much, Ken! I shall try this out.

>One suggestion, why not just use PR_TRANSPORT_MESSAGE_HEADERS
>(0x007D001E), which is a standard MAPI property (you'd still need CDO

or
>Redemption).


  Reply With Quote
Old 02-03-2005, 04:18 AM   #6
Guest
 
Posts: n/a
Default newbie request: how to build a macro to move messages into a folder based on a message custom field content

CONSULT GOOGLE, THERE IS NO WAY TO FIX THAT.
>-----Original Message-----
>Hi Group,
>
>I know it is never the case to post a request for source

code to a
>newsgroup, but I am a total newbie in Outlook programming

and I have a
>serious issue with SPAM over here. I'd like to send all

the messages
>that I receive to a specific folder based on the property

value
>(External) of a custom field called 'Message Type'.
>
>Thank you for reading this message and for any time you'd

like to
>dedicate to help me.
>
>Ciao,
>Cristian
>
>.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off