Mailitem.Save() function throws an exception for POP3 messages

  • Thread starter Thread starter Nithin
  • Start date Start date
N

Nithin

HI all,

I have written a plugin to run on Outlook 2003/XP/2000 that will change
the message class of every new mail that arrives to teh mail box.
Changing of message class is crucial for me to apply a custom form for
new mails I recieve. In the plug-in i have incorporated jthe following
code

"newMail" is any new message that reaches inbox and is of type
"Mailitem"

newMail.MessageClass = "IPM.Note.NewClass";
newMail.Save();

The above code works fine for all the type of mail accounts except for
POP3 accounts(I have tested this with GMAIL Pop3 and yahoo Pop3).

newMail.Save(); throws following exception

"You don't have appropriate permission to perform this operation".

Also, I tried editing a Message of POP3 acount and Saving the changes
for which the Outlook prompted the following Message

"Your changes could not be saved because you don't have permission to
modify some or all Of the items in this folder. Do you want to save a
copy of this item in the default folder for the item?"

Please , help me out to overcome this issue.

Thanks In advance
Nithin
 
Are the emails from those services actually being delivered to the PST file
and not just a header download? Once an item is in the PST file, fully
downloaded, there should be no reason that you can't change message class
unless the item has encryption or some sort of other protection.

If your code works with POP3 emails from other ISP's I'd be more inclined to
suspect lack of a truly downloaded email.
 
Hi Ken,

How shall I ensure that messages aren't encrypted and the whole
messages are downloaded. Only things that I have ensured in my account
settings is that the

1)Folder to which my POP3 account delivers the messages is using only
"Compressible Encryption".
2) Also I have tried to ensure the complete message item is delivered
to the local mail folder by setting configurations as follows:

Tools->Options->Mail setup->Send/Receive->Edit->pop.gmail.com(any pop
account)
here in "Folder options" I have selected the radio button which reads
"Download complete item including attachments".

I am not sure that there is anything else I need to change in the
settings to ensure that complete messages are delivered into my pst
file without encryption.

With Warm Regards
Nithin
 
You have the setting for downloading complete items correct. If someone
sends you an encrypted or signed message there's nothing you can do about
it. It's up to the sender of the email.
 
Back
Top