OL 2003/2007: HOW allow me to see categories, but not let recipien

Status
Not open for further replies.
C

CuriousGeorge

I want to keep the categories so I could see them on my computer (sort my

Sent messages by category, for example), but that a recipient would NOT

see

it. So it appears the solution I found (the Item.Categories ="") does NOT

accomplish my goal.

Is there a way to do this in OL2003 or OL2007?

DOES OL2007 strip the categories out of emails I send such that a

recipient

will NOT see the categories (in Yahoo email headers, seen as "Keywords")

but

that I can still search the categories after its been sent in the Sent

Items

folder?

And, if OL2007 DOES do this, how can I 'build' such functionality into

OL2003?

(This link *suggests* OL2007 does this, but I question whether it's

correct...

http://blog.clearcontext.com/2007/01/outlook_2007_ca.html )

I had tried popping in this short VBA script in OL2003

Private Sub Application_ItemSend(ByVal Item As Object, _

Cancel As Boolean)

Item.Categories = ""

End Sub

and it took the 'keywords' (categories) out of the recipient's copy of the

email, but it removed the categories from the copy in my Sent folder.

In other words, I do NOT want my recipient to see the categories I assigned

to the email, but I DO want to see the categories assigned (so I can search

for it in my Sent folder later).

Any way to do what I want in OL2003?

Will OL2007 do it? (I really would like to stick with Office 2003!)
 
K

Ken Slovak - [MVP - Outlook]

Outlook 2007 has a rule to strip categories from outgoing emails but it

keeps them in the items in Sent Items, exactly what you want with no code

involved at all.

In Outlook 2003 you'd need to pull the existing categories from the outgoing

items before clearing the categories in the send event. Then you'd need to

handle the ItemAdd() event in the Sent Items folder's Items collection. In

that event you'd check for the subject to make a match to what you saved as

categories from the matching outgoing item and add back the categories.

"CuriousGeorge" <CuriousGeorge> wrote in message

news:767E371C-2633-47D9-90D3-7BDD6E477E99@microsoft.com...

> I want to keep the categories so I could see them on my computer (sort
> my
> Sent messages by category, for example), but that a recipient would NOT
> see
> it. So it appears the solution I found (the Item.Categories ="") does
> NOT
> accomplish my goal.

> Is there a way to do this in OL2003 or OL2007?

> DOES OL2007 strip the categories out of emails I send such that a
> recipient
> will NOT see the categories (in Yahoo email headers, seen as
> "Keywords")
> but
> that I can still search the categories after its been sent in the Sent
> Items
> folder?

> And, if OL2007 DOES do this, how can I 'build' such functionality into
> OL2003?

> (This link *suggests* OL2007 does this, but I question whether it's
> correct...

> http://blog.clearcontext.com/2007/01/outlook_2007_ca.html )

> I had tried popping in this short VBA script in OL2003

> Private Sub Application_ItemSend(ByVal Item As Object, _

> Cancel As Boolean)

> Item.Categories = ""

> End Sub

> and it took the 'keywords' (categories) out of the recipient's copy of the
> email, but it removed the categories from the copy in my Sent folder.

> In other words, I do NOT want my recipient to see the categories I
> assigned
> to the email, but I DO want to see the categories assigned (so I can
> search
> for it in my Sent folder later).

> Any way to do what I want in OL2003?

> Will OL2007 do it? (I really would like to stick with Office 2003!)
>
 
C

CuriousGeorge

Re: OL 2003/2007: HOW allow me to see categories, but not let reci

Thanks for your reply. It sounds like OL2007 automatically does exactly what

I want. But, since I don't have OL2007....

What code would I write to make OL2003 do what I want?

The code I posted removes the category(s). Is there a way to 1) store the

category(s); 2) set them to "" (as in the code I found on the web); 3) send

the email; 4) reattach the category(s) to the sent message?

I'm not a VBA coder, but I'm thinking the logic would be something like what

follows. Could you write it out as it should be??? Thanks!

Logic, I'm thinking:

Item.Categories = Item.Categories.Old

Item.Categories = ""

Something saying, 'Send email'.

Then, something saying, for the email sent, set

Item.Categories=Item.Categories.Old

I just don't know how to do this. Thanks in advance!
wrote:


> Outlook 2007 has a rule to strip categories from outgoing emails but it
> keeps them in the items in Sent Items, exactly what you want with no code
> involved at all.

> In Outlook 2003 you'd need to pull the existing categories from the outgoing
> items before clearing the categories in the send event. Then you'd need to
> handle the ItemAdd() event in the Sent Items folder's Items collection. In
> that event you'd check for the subject to make a match to what you saved as
> categories from the matching outgoing item and add back the categories.

> >

>

> "CuriousGeorge" <CuriousGeorge> wrote in message
> news:767E371C-2633-47D9-90D3-7BDD6E477E99@microsoft.com...
> > I want to keep the categories so I could see them on my computer (sort
> > my
> > Sent messages by category, for example), but that a recipient would NOT
> > see
> > it. So it appears the solution I found (the Item.Categories ="") does
> > NOT
> > accomplish my goal.
> > Is there a way to do this in OL2003 or OL2007?
> > DOES OL2007 strip the categories out of emails I send such that a
> > recipient
> > will NOT see the categories (in Yahoo email headers, seen as
> > "Keywords")
> > but
> > that I can still search the categories after its been sent in the Sent
> > Items
> > folder?
> > And, if OL2007 DOES do this, how can I 'build' such functionality into
> > OL2003?
> > (This link *suggests* OL2007 does this, but I question whether it's
> > correct...
> > http://blog.clearcontext.com/2007/01/outlook_2007_ca.html )
> > I had tried popping in this short VBA script in OL2003
> > Private Sub Application_ItemSend(ByVal Item As Object, _
> > Cancel As Boolean)
> > Item.Categories = ""
> > End Sub
> > and it took the 'keywords' (categories) out of the recipient's copy of the
> > email, but it removed the categories from the copy in my Sent folder.
> > In other words, I do NOT want my recipient to see the categories I
> > assigned
> > to the email, but I DO want to see the categories assigned (so I can
> > search
> > for it in my Sent folder later).
> > Any way to do what I want in OL2003?
> > Will OL2007 do it? (I really would like to stick with Office 2003!)
> >


>
 
K

Ken Slovak - [MVP - Outlook]

Re: OL 2003/2007: HOW allow me to see categories, but not let reci

I told you what would have to be done:


> In Outlook 2003 you'd need to pull the existing categories from the
> outgoing
> items before clearing the categories in the send event. Then you'd need to
> handle the ItemAdd() event in the Sent Items folder's Items collection. In
> that event you'd check for the subject to make a match to what you saved
> as
> categories from the matching outgoing item and add back the categories.


You can look at various code samples at www.outlookcode.com to see how to

handle ItemAdd() events for a folder (see the ZapHTML sample among others)

and to handle the other things I mentioned. For storage just set up global

variables in a code module.

"CuriousGeorge" <CuriousGeorge> wrote in message

news:6166B8A2-A0DE-4E46-A3F1-BAD5E7EF58DE@microsoft.com...
> Thanks for your reply. It sounds like OL2007 automatically does exactly
> what
> I want. But, since I don't have OL2007....

> What code would I write to make OL2003 do what I want?

> The code I posted removes the category(s). Is there a way to 1) store the
> category(s); 2) set them to "" (as in the code I found on the web); 3)
> send
> the email; 4) reattach the category(s) to the sent message?

> I'm not a VBA coder, but I'm thinking the logic would be something like
> what
> follows. Could you write it out as it should be??? Thanks!

> Logic, I'm thinking:

> Item.Categories = Item.Categories.Old
> Item.Categories = ""

> Something saying, 'Send email'.

> Then, something saying, for the email sent, set
> Item.Categories=Item.Categories.Old

> I just don't know how to do this. Thanks in advance!
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D outlook 2003/2007 macro query Using Outlook 2
D Calendar Permissions Outlook 2003, 2007 and 2010 Exchange Server Administration 2
G Is there any way to convert outlook 2003 to outlook 2007 Using Outlook 5
D Outlook 2007 contacts do not show up in address book - 97-2003 pst file Using Outlook 0
J Outlook 2003/2007 IMAP emails dont show in inbox Using Outlook 0
K Outlook 2007 vs Outlook 2003 Using Outlook 1
V Outlook Connector not syncing to Outlook 2003 AND 2007 Using Outlook.com accounts in Outlook 1
Y upgrading from 2003 to 2007 /forms Outlook VBA and Custom Forms 1
M Iterating a Contacts folder for Outlook 2003 and 2007 in C# Outlook VBA and Custom Forms 8
M Upgrading from Office 2003 to 2007 Ent, calendar permissions lost? BCM (Business Contact Manager) 1
J Upgrade from 2003 to 2007 Outlook VBA and Custom Forms 14
D Using VBA to send Word document as body of message works in 2007, but not in 2003 Outlook VBA and Custom Forms 9
S Import Data from 2003 BCM to 2007 BCM (on Windows 7) BCM (Business Contact Manager) 1
D Connecting BCM 2007 to a shared BCM 2003 Database BCM (Business Contact Manager) 3
J 2007 Form Design loads 2003 Form Outlook VBA and Custom Forms 12
F Outlook 2003 form cannot be loaded in 2007 Outlook VBA and Custom Forms 1
M Business contact manager 2003 on outlook 2007 BCM (Business Contact Manager) 1
K Outlook 2003 to 2007 data transfer Using Outlook 3
A COM add-in causes Outlook 2007 to periodically crash where it did not in Outlook 2003 Outlook VBA and Custom Forms 3
L Oulook 2003 Form upgraded to 2007 Outlook VBA and Custom Forms 3
K Is it possible to use BCM 2003 with Outlook 2007? BCM (Business Contact Manager) 4
B Upgrade 2003 BCM to 2007 BCM BCM (Business Contact Manager) 3
C Installing BCM 2007 on Remote Server with MS Server 2003 BCM (Business Contact Manager) 1
S Can Outlook 2007 calendar match the Outlook 2003 calendar? Using Outlook 3
U Installing Outlook 2003 instead of 2007 Using Outlook 2
C Copy email to different folder, works in 2003 but not 2007 Outlook VBA and Custom Forms 3
T Custom form created in 2003 won't print since upgrade to 2007 Outlook VBA and Custom Forms 1
T Custom form created in 2003 won't print since upgrade to 2007 Outlook VBA and Custom Forms 13
C Outlook 2003 Add-in doesn't work on Outlook 2007 Outlook VBA and Custom Forms 1
B Re: Outlook 2003 Add-in doesn;t work on Outlook 2007 Outlook VBA and Custom Forms 2
B Outlook 2003/2007 and New Mail Desktop Alerts Outlook VBA and Custom Forms 4
T How to export custom form from exchange 2003 to exchange 2007 Outlook VBA and Custom Forms 2
R Outlook 2003/2007 Rule and Conditions for InBox VBA customization Outlook VBA and Custom Forms 3
J Outlook 2007 using custom form created for Outlook 2003 Outlook VBA and Custom Forms 2
B Outlook 2007 Custom Form does not display in 2003 Outlook VBA and Custom Forms 3
D Wishlist How to use 'app password' in Outlook 2003 after Google pulled plug on "less secure apps" Using Outlook 1
J Outlook 2003 .pst Will Not Restore Completely to Outlook 2019 Using Outlook 5
D Outlook 2003 Mail Fails Using Outlook 1
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
V Outlook 2003 and Windows 11 Using Outlook 4
glnz Moving from Outlook 2003 to MS365 Outlook - need basics Using Outlook 4
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Outlook 2003 email sending & receiving suddenly stopped working Using Outlook 3
H Outlook 2003 find by "has attachment" Using Outlook 1
glnz How set up new IMAP on Outlook-Office 365 and merge in pst from Outlook 2003 for same two email accounts? Using Outlook 5
P Import Categories from Outlook 2003 Using Outlook 8
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
M Outlook 2003 pictures - some visible, some not Using Outlook 0
S Outlook 2003 to Outlook 2013 pst file Using Outlook 5
O Memory Leak in Outlook 2003 Using Outlook 3

Similar threads

Top