detect if a mail is read in a public folder

G

Gudmundur

Hi, I need to send alarms as emails to a public folder and I need to b
able to verify that the email has been read/opened after it has bee
submitted to the public folder. There is a flag on a email message tha
is called IsRead but that is user specific and will thus not help i
this case.

greatly appreciate any help rendered

Cheers
Gudmundu
 
S

Sue Mosher [MVP]

Use a custom form and put code in the item's Item_Read and/or Item_Open
event handler to put information in some custom field to give you the status
report you need.
 
D

Dmitry Streblechenko

Or you can turn off per-user read/unread state for the PF store.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Sue Mosher said:
Use a custom form and put code in the item's Item_Read and/or Item_Open
event handler to put information in some custom field to give you the
status report you need.
 
G

Gudmundur

Gudmundur;97553 said:
Hi, I need to send alarms as emails to a public folder and I need to b
able to verify that the email has been read/opened after it has bee
submitted to the public folder. There is a flag on a email message tha
is called IsRead but that is user specific and will thus not help i
this case.

greatly appreciate any help rendered

Cheers
Gudmundur

Hi and thanks for a prompt reply, I tried out your suggestion made
custom form based on IPM.note but when I specified that
the public folder should use the form I got an error message. I can us
a custom form based on IPM.post ...but then the event handle
item_read() only kicks in when posting
and does nothing for emails opened in the public folder ....is ther
anyway of making ipm.note custom form to work with public folder ? or i
not can a custom form assigned to a public
folder somehow target emails instead of posts ? item_read() targetin
emails instead of the posts in the public folder ..

I have tried disabling as well per user reads but that turns of use
reads for all items in the public folder, that is all items remain i
the unread state, no matter if they have been read or not

Really appreciate any help that can guide me in the right directio
here...

Cheers
Gudmundu
 
S

Sue Mosher [MVP]

Publish the form to the Organizational Forms library and use the custom form
to create the "alarms" (whatever that means).
 
G

Gudmundur

Gudmundur;97553 said:
Hi, I need to send alarms as emails to a public folder and I need to b
able to verify that the email has been read/opened after it has bee
submitted to the public folder. There is a flag on a email message tha
is called IsRead but that is user specific and will thus not help i
this case.

greatly appreciate any help rendered

Cheers
Gudmundur

sfsfsdfsadfsd
 
G

Gudmundur

'Sue Mosher [MVP said:
;104455']Did you try what I suggested?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Gudmundur said:
sfsfsdfsadfsdf

Hi Sue, yes I did try what you suggested, but would it not be very slo
and tedious method for the operator responsible for posting the email t
30 public folders if he has to access a custom form 30 times that is fo
every public folder, instead of being able to use a distribution grou
that would contain the 30 public folders and send one email to all 3
public folders...?

With the custom form I can post into one public folder at a time an
everyting works fine when I do so...but it would take to long time to d
so 30 times for each public folder .....or am I missing something fro
the picture
 
S

Sue Mosher [MVP]

Huh? I don't understand how that relates to the original objective of
verifying that an item in a folder has been read. Nothing about a custom
message form would prevent you from using a DL to send it to multiple public
folders.
 
G

Gudmundur

'Sue Mosher [MVP said:
;104600']Huh? I don't understand how that relates to the origina
objective of
verifying that an item in a folder has been read. Nothing about
custom
message form would prevent you from using a DL to send it to multipl
public
folders.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54

Gudmundur said:
Hi Sue, yes I did try what you suggested, but would it not be ver slow
and tedious method for the operator responsible for posting the emai to
30 public folders if he has to access a custom form 30 times that i for
every public folder, instead of being able to use a distributio group
that would contain the 30 public folders and send one email to al 30
public folders...?

With the custom form I can post into one public folder at a time and
everyting works fine when I do so...but it would take to long time t do
so 30 times for each public folder .....or am I missing somethin from
the picture ?

Hi Sue, if i post to the Public Folder with the custom form, and the
open the item I posted then the event Sub item_open() triggers.
On ther other hand if I use a DL to send an email to
the same Public Folder with the custom form, and then open the item
emailed then the event Sub item_open() does unfortunately not trigger.

That is the heart of the matter

Cheers Gudmundu
 
S

Sue Mosher [MVP]

Did you publish the message form to the Organizational Forms library, with
the "send form definition with item" box unchecked? That's a prerequisite
for any message form to run code.
 
G

Gudmundur

'Sue Mosher [MVP said:
;104783']Did you publish the message form to the Organizational Forms
library, with
the "send form definition with item" box unchecked? That's a
prerequisite
for any message form to run code.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Gudmundur said:
Hi Sue, if i post to the Public Folder with the custom form, and then
open the item I posted then the event Sub item_open() triggers.
On ther other hand if I use a DL to send an email to
the same Public Folder with the custom form, and then open the item I
emailed then the event Sub item_open() does unfortunately not
trigger.
Hi Sue and thank you for your outstanding patience with this issue. I
did publish the message form to the Organizational Forms library,
without
the "send form definition with item" box hecked. So that should not be
the issue. The code runs fine when posting to the public folder, that is
when I Have posted something to the public folder
and open the post then the code runs. when I on the other hand email
something to the public folder and then open / click on the email the
code does nothing.

The custom form for the public folder is based on IPM.Post not on
IPM.note ...the only reason for that is that I could not assign a custom
form based on IPM.note to the public folder
I got an error message whenever I tried that.

Cheers Gudmundur
 
S

Sue Mosher [MVP]

The "send form definition with item" box must be **unchecked**. If it is
checked, the form will one-off and will never run code.

You would use an IPM.Post form only when you want to post an item to one
particular folder. As you already explained, that's not the scenario you're
trying to implement. Since you want to be able to send to multiple folders,
the form needs to be a message form, IPM.Note.something. Users who want to
send to the folders need to create a message by invoking that form with the
Tools | Forms | Choose Form command and then send that message to the
desired folders.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top