WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how to detect email is saved to draft?

 
   Home -> Office -> Program Add-Ins RSS
Next:  COUNTIFs Based on Field Headings  
Author Message
amh

External


Since: Jul 22, 2009
Posts: 1



(Msg. 1) Posted: Wed Jul 22, 2009 12:05 pm
Post subject: how to detect email is saved to draft?
Archived from groups: microsoft>public>outlook>program_addins (more info?)

If I open an email stored in the draft folder, I can not detect that it
came from the draft folder. The parent folder is Outbook. I'm trying
to make sure I identify emails saved as drafts so I can process them
differently. I can't consistently determine a draft either - I've
checked the inspector's saved property, entryid, conversation index and
it is not always consistent. Any help is appreciated.




--
amh
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2977



(Msg. 2) Posted: Wed Jul 22, 2009 1:18 pm
Post subject: Re: how to detect email is saved to draft? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you open an item stored in Drafts then Drafts is the parent folder and
you should be able to get that. I don't know what version of Outlook or what
type of code you're using, but this simple Outlook VBA code demonstrates how
to get "Drafts" out of that item:

Application.ActiveInspector.CurrentItem.Parent.Name

If you get that Parent object as a MAPIFolder object you can then have a
reference to the actual folder if you want it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"amh" <amh.4ace35e.RemoveThis@outlookbanter.com> wrote in message
news:amh.4ace35e@outlookbanter.com...
>
> If I open an email stored in the draft folder, I can not detect that it
> came from the draft folder. The parent folder is Outbook. I'm trying
> to make sure I identify emails saved as drafts so I can process them
> differently. I can't consistently determine a draft either - I've
> checked the inspector's saved property, entryid, conversation index and
> it is not always consistent. Any help is appreciated.
>
>
>
>
> --
> amh
Back to top
Login to vote
amh

External


Since: Jul 23, 2009
Posts: 1



(Msg. 3) Posted: Thu Jul 23, 2009 6:05 pm
Post subject: Re: how to detect email is saved to draft? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sorry I should have been more clear. If I open an email in the draft
folder by double-clicking on it, thus opening an inspector, yes it
tells me that it's parent is the Draft folder. However, from the
explorer window if I right click, it lets me select reply or forward
even though it's never been sent and that is where I need to identify
it as coming from the draft folder. From the explorer window an email
in the draft folder tells me the parent is the Inbox.

Any help would be appreciated.

'Ken Slovak - [MVP - Outlook Wrote:
> ;315699']If you open an item stored in Drafts then Drafts is the parent
> folder and
> you should be able to get that. I don't know what version of Outlook or
> what
> type of code you're using, but this simple Outlook VBA code
> demonstrates how
> to get "Drafts" out of that item:
>
> Application.ActiveInspector.CurrentItem.Parent.Name
>
> If you get that Parent object as a MAPIFolder object you can then have
> a
> reference to the actual folder if you want it.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "amh" amh.4ace35e DeleteThis @outlookbanter.com wrote in message
> news:amh.4ace35e@outlookbanter.com...-
>
> If I open an email stored in the draft folder, I can not detect that
> it
> came from the draft folder. The parent folder is Outbook. I'm
> trying
> to make sure I identify emails saved as drafts so I can process them
> differently. I can't consistently determine a draft either - I've
> checked the inspector's saved property, entryid, conversation index
> and
> it is not always consistent. Any help is appreciated.
>
>
>
>
> --
> amh -




--
amh
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2977



(Msg. 4) Posted: Thu Jul 23, 2009 6:48 pm
Post subject: Re: how to detect email is saved to draft? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

But what you're doing when using reply or forward on a message, whether or
not it was ever sent, is opening a brand new email message.

Any new message always have Inbox as its parent folder. It's the same thing
if you reply to a message in Sent Items, or a custom email folder or
wherever. Inbox will be the parent until the item is saved, then it's
Drafts.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"amh" <amh.4ae893d.DeleteThis@outlookbanter.com> wrote in message
news:amh.4ae893d@outlookbanter.com...
>
> Sorry I should have been more clear. If I open an email in the draft
> folder by double-clicking on it, thus opening an inspector, yes it
> tells me that it's parent is the Draft folder. However, from the
> explorer window if I right click, it lets me select reply or forward
> even though it's never been sent and that is where I need to identify
> it as coming from the draft folder. From the explorer window an email
> in the draft folder tells me the parent is the Inbox.
>
> Any help would be appreciated.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support