Deleting mails in deleted folder 
Author Message
 Deleting mails in deleted folder

Hello
We're looking for a program which is able to remove messages in the
mailbox's "deletetd items" folder.
Something like  "DELDI <Aliasname> <account> <password>". Note that there is
NO solution within Outlook (there are only client-based rules). Can it be
done by using MAPI in a Visual Basic program ? Or is there even a simpler
way?

Daniel



Tue, 10 Feb 2004 20:40:38 GMT  
 Deleting mails in deleted folder
You mean forcing emptying deleted items?

Quote:
> Hello
> We're looking for a program which is able to remove messages in the
> mailbox's "deletetd items" folder.
> Something like  "DELDI <Aliasname> <account> <password>". Note that there
is
> NO solution within Outlook (there are only client-based rules). Can it be
> done by using MAPI in a Visual Basic program ? Or is there even a simpler
> way?

> Daniel



Tue, 10 Feb 2004 21:03:55 GMT  
 Deleting mails in deleted folder
You could just have the Outlook client "empty the deleted items folder upon
exiting". This is a standard option under Tools -> Options -> Other.

Sean


Quote:
> Hello
> We're looking for a program which is able to remove messages in the
> mailbox's "deletetd items" folder.
> Something like  "DELDI <Aliasname> <account> <password>". Note that there
is
> NO solution within Outlook (there are only client-based rules). Can it be
> done by using MAPI in a Visual Basic program ? Or is there even a simpler
> way?

> Daniel



Tue, 10 Feb 2004 21:14:49 GMT  
 Deleting mails in deleted folder

Quote:

>We're looking for a program which is able to remove messages in the
>mailbox's "deletetd items" folder.
>Something like  "DELDI <Aliasname> <account> <password>". Note that there is
>NO solution within Outlook (there are only client-based rules). Can it be
>done by using MAPI in a Visual Basic program ?

You can use MAPI, which is pretty ugly when compared to CDO, but I'd
use CDO to accomplish this.

Quote:
>Or is there even a simpler
>way?

Besides having the client profiles set to empty the deleted item
folder on exit?

------------------
Rich Matheisen
MCSE+I, Exchange MVP
MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Wed, 11 Feb 2004 10:02:08 GMT  
 Deleting mails in deleted folder
Hello
Thanks for all the Feedbacks. I have to clarify some things: This is a so
called "autoanswer mailbox".
There's nobody never logged in! So ALL client based rules can not be used.
The mailbox never gets opened!
The best hint came from Rich Matheinsen. But unfortunately I don't know, how
to use CDO! Rich, can you explain in a few words, how to do it?

Thanks a lot
Daniel



Quote:
> Hello
> We're looking for a program which is able to remove messages in the
> mailbox's "deletetd items" folder.
> Something like  "DELDI <Aliasname> <account> <password>". Note that there
is
> NO solution within Outlook (there are only client-based rules). Can it be
> done by using MAPI in a Visual Basic program ? Or is there even a simpler
> way?

> Daniel



Quote:

> >We're looking for a program which is able to remove messages in the
> >mailbox's "deletetd items" folder.
> >Something like  "DELDI <Aliasname> <account> <password>". Note that there
is
> >NO solution within Outlook (there are only client-based rules). Can it be
> >done by using MAPI in a Visual Basic program ?

> You can use MAPI, which is pretty ugly when compared to CDO, but I'd
> use CDO to accomplish this.

> >Or is there even a simpler
> >way?

> Besides having the client profiles set to empty the deleted item
> folder on exit?

> ------------------
> Rich Matheisen
> MCSE+I, Exchange MVP
> MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Fri, 13 Feb 2004 19:03:02 GMT  
 Deleting mails in deleted folder

Quote:

>Thanks for all the Feedbacks. I have to clarify some things: This is a so
>called "autoanswer mailbox".
>There's nobody never logged in! So ALL client based rules can not be used.
>The mailbox never gets opened!
>The best hint came from Rich Matheinsen. But unfortunately I don't know, how
>to use CDO! Rich, can you explain in a few words, how to do it?

CDO is a COM object. It puts a "wrapper" around the messy details of
working with MAPI.

If this mailbox is already managed by a program, why cannot the
program be modified to Shift+Delete the messages? That would fix your
problem immediately -- the messages would never go into the Deleted
items folder to begin with.

------------------
Rich Matheisen
MCSE+I, Exchange MVP
MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Sat, 14 Feb 2004 08:18:28 GMT  
 Deleting mails in deleted folder
Hi Rich

This Mailbox only gets used to verify the functionality of the mail server.
There's no program. It's not managed by any program.
This mailbox only has a rule which replies to ALL incoming messages by a
server based rule, that's all. Once defined, nobody will ever open this
mailbox again (except when it's filled up, what's exactly my question on how
to clean it by a scheduled program or so?).

Bye
Daneil



Quote:

> >Thanks for all the Feedbacks. I have to clarify some things: This is a so
> >called "autoanswer mailbox".
> >There's nobody never logged in! So ALL client based rules can not be
used.
> >The mailbox never gets opened!
> >The best hint came from Rich Matheinsen. But unfortunately I don't know,
how
> >to use CDO! Rich, can you explain in a few words, how to do it?

> CDO is a COM object. It puts a "wrapper" around the messy details of
> working with MAPI.

> If this mailbox is already managed by a program, why cannot the
> program be modified to Shift+Delete the messages? That would fix your
> problem immediately -- the messages would never go into the Deleted
> items folder to begin with.

> ------------------
> Rich Matheisen
> MCSE+I, Exchange MVP
> MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Sat, 14 Feb 2004 21:18:44 GMT  
 Deleting mails in deleted folder
If you use CDO to delete items in the folder, which can be done from a
folder script that runs on an event timer, the deleted items won't be
sent to the Deleted Items folder. The best place to go for sample code
for CDO is www.cdolive.com with many samples located at
http://www.cdolive.com/cdo5.htm

Siegfried also has many sample folder event scripts at his Web site. A
folder event script would run in the Exchange service context and can
log into the unattended mailbox if you know the mailbox user name and
password.

--
Ken Slovak
[MVP - Outlook]
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning Visual Basic 6 Application Development, Wrox
Press


Quote:
> Hi Rich

> This Mailbox only gets used to verify the functionality of the mail
server.
> There's no program. It's not managed by any program.
> This mailbox only has a rule which replies to ALL incoming messages
by a
> server based rule, that's all. Once defined, nobody will ever open
this
> mailbox again (except when it's filled up, what's exactly my
question on how
> to clean it by a scheduled program or so?).

> Bye
> Daneil



Sat, 14 Feb 2004 21:57:36 GMT  
 Deleting mails in deleted folder

Quote:

>This Mailbox only gets used to verify the functionality of the mail server.
>There's no program. It's not managed by any program.
>This mailbox only has a rule which replies to ALL incoming messages by a
>server based rule, that's all. Once defined, nobody will ever open this
>mailbox again (except when it's filled up, what's exactly my question on how
>to clean it by a scheduled program or so?).

Why not use a public folder instead of a mailbox? Set the PF to remove
message older than one day. Use the "Folder Assistant..." to reply.

------------------
Rich Matheisen
MCSE+I, Exchange MVP
MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Sat, 14 Feb 2004 23:38:57 GMT  
 Deleting mails in deleted folder
I have never tried to use it, but in exchange administrator if you
view the properties for the 'private information store' under the
general tab there is the option of 'deleted item retention time'(for
all users), this option is also available in each users options under
the limits tab. you may wish to play with these settings....


Quote:

> >We're looking for a program which is able to remove messages in the
> >mailbox's "deletetd items" folder.
> >Something like  "DELDI <Aliasname> <account> <password>". Note that there is
> >NO solution within Outlook (there are only client-based rules). Can it be
> >done by using MAPI in a Visual Basic program ?

> You can use MAPI, which is pretty ugly when compared to CDO, but I'd
> use CDO to accomplish this.

> >Or is there even a simpler
> >way?

> Besides having the client profiles set to empty the deleted item
> folder on exit?

> ------------------
> Rich Matheisen
> MCSE+I, Exchange MVP
> MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm



Fri, 20 Feb 2004 10:28:55 GMT  
 
 [ 12 post ] 

 Relevant Pages 

1. Programmatically delete Deleted Items folder once a day

2. Delete without going to deleted items folder !

3. Smart Delete Files And Smart Delete Folders Routines?

4. Deleting a Public Folder Mail Item Does not work - Even with right permissions

5. How to delete folders/files within a folder but not the folder itself

6. SQL delete query deletes but does not delete

7. Deleting certian Files in Folders and there sub folders

8. is it possible to delete a mail from a mail server

9. is it possible to delete a mail from a mail server

10. rst.delete, with cascade delete???

11. Delete deleted items

12. Deleting page doesn't delete command buttons

 

 
Powered by phpBB® Forum Software