For Outlook: Is it possible to search the deleted items folder for emails from a certain address and subject and then delete the emails it finds?
If so could you provide some sample code? Gratefully received!
Add-in Express team
See the code below:
procedure TAddInModule.TAddInModule.adxOlExplorerCommandbar1Controls0Click(Sender: TObject);
Subject, SenderName: WideString;
IFolder := OutlookApp.GetNamespace('MAPI').GetDefaultFolder(olFolderDeletedItems);
if Assigned(IFolder) then
for i := IFolder.Items.Count downto 1 do begin
if Assigned(IMail) then
Subject := IMail.Subject;
SenderName := IMail.SenderName;
//if (Subject = '') and (SenderName = '') then IMail.Delete;
IMail := nil;
IFolder := nil;
P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.