Giancarlo
Guest
|
In this damn outlook 2010
I have the inbox folder archive
and the inbox folder IMAP
I developed a loop to find all inbox folders
stores: Outlook2010._Stores;
for I := 1 to stores.Count do begin
AgganciaInBox(stores.Item(I).GetDefaultFolder(olFolderInbox) as Outlook2000.MAPIFolder);
end;
procedure TAddInModule.AgganciaInBox(cartella: Outlook2000.MAPIFolder);
var
L: Integer;
begin
L := Length(Cartelle);
SetLength(Cartelle, L + 1);
Cartelle[L] := TItems.Create(Self);
Cartelle[L].OnItemAdd := ItemsNewed;
Cartelle[L].ConnectTo(cartella.Items);
end;
the procedure works on all outlook, except this damn 2010
The function ItemsNewed is called only on messages that arrive in the inbox archive
on new messages of IMAP inbox, the function is not invoked
What am I doing wrong?
I imagine that the error is
how I try to get the list of inbox
stores.Item(I).GetDefaultFolder(olFolderInbox)
|
|
Andrei Smolin
Add-in Express team
Posts: 18817
Joined: 2006-05-11
|
Hello Giancarlo,
I'm not sure that I understand you completely. Are you saying that connecting to the ItemAdd event on an IMAP folder doesn't inform you about new items you drop to that folder? If you only talk about receiving new emails, also check drag-dropping an item to that folder. Does it work?
Andrei Smolin
Add-in Express Team Leader |
|
Giancarlo
Guest
|
I'm not sure that I understand you completely. Are you saying that connecting to the ItemAdd event on an IMAP folder doesn't inform you about new items you drop to that folder?
Yes, exactly
If you only talk about receiving new emails, also check drag-dropping an item to that folder. Does it work?
No, it doesn't work
In Outlook 2010, the program, wrong to identify the correct folders
stores.Item(I).GetDefaultFolder(olFolderInbox)
|
|
Andrei Smolin
Add-in Express team
Posts: 18817
Joined: 2006-05-11
|
Hello Giancarlo,
I don't believe this is caused by Outlook. Most probably, the problems relate to your using an IMAP store and the MAPI store provider implementation contains problems. If you create a PST file and turn off all of your add-ins, this should work.
Giancarlo writes:
In Outlook 2010, the program, wrong to identify the correct folders
In what way does it work incorrectly?
Andrei Smolin
Add-in Express Team Leader |
|
Giancarlo
Guest
|
If you only talk about receiving new emails, also check drag-dropping an item to that folder. Does it work?
I did other tests.
I found this defect.
Sometimes the event is not triggered.
In this case, it works as you explained
(drag-dropping an item to that folder)
How can I solve this problem? |
|
Andrei Smolin
Add-in Express team
Posts: 18817
Joined: 2006-05-11
|
Hello Giancarlo,
Please send me some code for testing. You can find the support email address in {Add-in Express installation folder}\readme.txt. Please make sure your email contains a link to this topic.
Andrei Smolin
Add-in Express Team Leader |
|