How to access the Deleted Items Folder

Status
Not open for further replies.
E

escamoteur

Hi,

in the Default Store it's easy to access the "Deleted Items Folder" with GetDefaultFolder.

But how can I access the "Deleted Items Folder" of any other store?? I don't wan't to use the folder's name as this would make it

impossible to localize the add-in.

Best

Tom
 
D

Dmitry Streblechenko

Is that other Exchange user's store? You can the nuse

Namespace.GetSharedDefaultFolder.

Dmitry Streblechenko (MVP)

-

"escamoteur" <mail@burkharts.net> wrote in message

news:DCC156A3-23EE-4079-9C34-FA342D0F90BC@microsoft.com...
> Hi,

> in the Default Store it's easy to access the "Deleted Items Folder" with
> GetDefaultFolder.

> But how can I access the "Deleted Items Folder" of any other store?? I
> don't wan't to use the folder's name as this would make it impossible to
> localize the add-in.

> Best
> Tom
 
E

escamoteur

Sorry, I forgot. No it's a PST Store. I'm using Outlook 2007

Best

Tom

"Dmitry Streblechenko" <dmitry@dimastr.com> schrieb im Newsbeitrag news:uWZGtwBKKHA.3992@TK2MSFTNGP05.phx.gbl...
> Is that other Exchange user's store? You can the nuse
> Namespace.GetSharedDefaultFolder.

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "escamoteur" <mail@burkharts.net> wrote in message
> news:DCC156A3-23EE-4079-9C34-FA342D0F90BC@microsoft.com...
> > Hi,
>

>> in the Default Store it's easy to access the "Deleted Items Folder" with
> > GetDefaultFolder.
>

>> But how can I access the "Deleted Items Folder" of any other store?? I
> > don't wan't to use the folder's name as this would make it impossible to
> > localize the add-in.
>

>> Best
> > Tom


>
 
D

Dmitry Streblechenko

On the low level (Extended MAPI - C++ or Delphi), you would need to read the

PR_IPM_WASTEBASKET_ENTRYID property from that IMsgStore and use its value to

call IMsgStore::OpenEntry() to open the folder (IMAPIFolder)

Outlook would only let you open default folders from the default store in

the current profile or other Exchange user's mailbox.

<plug> Redemption woudl let you open default folders on the per-store

level - use RDOStore.GetDefaultFolder -

http://www.dimastr.com/redemption/rdo/rdostore.htm </plug

Dmitry Streblechenko (MVP)

-

"escamoteur" <mail@burkharts.net> wrote in message

news:C95470AA-FD10-4C68-826F-159557FC316B@microsoft.com...
> Sorry, I forgot. No it's a PST Store. I'm using Outlook 2007
> Best
> Tom

> "Dmitry Streblechenko" <dmitry@dimastr.com> schrieb im Newsbeitrag
> news:uWZGtwBKKHA.3992@TK2MSFTNGP05.phx.gbl...
> > Is that other Exchange user's store? You can the nuse
> > Namespace.GetSharedDefaultFolder.
>

>> > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "escamoteur" <mail@burkharts.net> wrote in message
> > news:DCC156A3-23EE-4079-9C34-FA342D0F90BC@microsoft.com...
> >> Hi,
> >
>>> in the Default Store it's easy to access the "Deleted Items Folder" with
> >> GetDefaultFolder.
> >
>>> But how can I access the "Deleted Items Folder" of any other store?? I
> >> don't wan't to use the folder's name as this would make it impossible to
> >> localize the add-in.
> >
>>> Best
> >> Tom

> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Can't move the items. The item could not be moved. It was either already moved or deleted, or access Using Outlook 3
E How to access the Deleted Items Folder Outlook VBA and Custom Forms 3
klpconsulting Programmatic Access Office 365 Pro Plus & RDS Using Outlook 1
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
Jennifer Murphy Grant R/W (update) access to a friend Using Outlook 3
O The page that you are trying to access cannot be loaded. Using Outlook 0
T Render Outlook emails in MS access as they appear in Outlook Outlook VBA and Custom Forms 2
T Outlook "A program is trying to access Outlook" Using Outlook 3
GregS Can't access archive file Using Outlook 5
J What is the best EntryID format to set on MS Access table Outlook VBA and Custom Forms 3
J No access to a Database BCM BCM (Business Contact Manager) 3
R How can I access my emails from corrupt offline files of MS Outlook ? Using Outlook 1
V Change default default save location to Quick Access Using Outlook 1
R Quick Access view in File Explorer when saving attachments Using Outlook 0
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
J Open an outlook email by Subject on MS Access linked table with VBA Outlook VBA and Custom Forms 10
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
D populating listbox on custom form from Access Outlook VBA and Custom Forms 7
O Synchronize safe persons Outlook 2016 -> Outlook Web Access (OWA) Using Outlook 30
K How to access emails found to be located in "Top of Outlook data file"? Using Outlook 3
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
O Outlook Web Access - how to disable spam filter Using Outlook 6
T Lost access to remote BCM database BCM (Business Contact Manager) 4
F Outlook 2016 bulk email from access Outlook VBA and Custom Forms 3
J Programmatic access grayed out Using Outlook 10
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? Using Outlook 0
G Can't open .pst. Message could not access default folder (Outlook 2010 (.pst). Before that was backi Using Outlook 0
D Creating an outlook session from Access vba but run silently. With A specific profile Outlook VBA and Custom Forms 1
T Cannot access outlook.com accounts in Outlook 2016 Using Outlook 1
B Can't expose sender email address when linking outlook to access Using Outlook 3
Diane Poremsky Change Outlook's Programmatic Access Options Using Outlook 0
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
C OWA External Access - No URL / URL Invalid Exchange Server Administration 2
G Adding a contact to Outlook with a custom form using Access VBA Outlook VBA and Custom Forms 1
C Merging Word and Access into Outlook Using Outlook 4
I Outlook 2016 and Slow access to Outlook.com IMAP Using Outlook 0
B No permission to access Outlook.pst file Using Outlook 1
Norbert VBA Flag that would indicate the email was sent from Outlook to Access. Outlook VBA and Custom Forms 2
M Cannot access the Form Editor BCM (Business Contact Manager) 1
R The changing way to access information in Office 365 Using Outlook 0
M Modifying BCM Database using Access BCM (Business Contact Manager) 1
iwshim Skype tool bar in quick access ribon Using Outlook 1
JorgeDario restrict access to a certain folder with vba Outlook VBA and Custom Forms 3
U Cannot access fields at bottom of Outlook 2013 Contact Rec. Using Outlook 1
A Synchronize Access Table with Outlook Calendar Appointments Outlook VBA and Custom Forms 3
R Convert Access table to pst Using Outlook 1
A give User Read Only access to secondary mailbox in Exchange 2010 via AD Exchange Server Administration 1
F Get details of sent items with Access VBA Outlook VBA and Custom Forms 1

Similar threads

Top