Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: IMAP purging messages without purge
User145

Posts: 2
Member Since: 03/22/02
posted March 22, 2002 1:28 PM

Hi,
I am writing a program in delphi which uses the IMAP component. The problem is, that it purges the emails with flags \Deleted without explicit call of purge. The server is set up not to delete them automatically. More about the program:
imap.timeout = 0 // non-blocking
imap.refresh;
imap.mailboxes.item('inbox').refresh;
imap.mailboxes.item('inbox').get headers;
imap.mailboxes.item('inbox').remove(1);
imap.mailboxes.item('outbox').refresh
at this stage the emails marked deleted are really removed from the server, which i of course do not want. The real code is doing every phase (refresh, get headers ....) in the progress event.
Can anyone help me or give me any advices. If more information is needed i can send the source code (actually only the event handling routine should be enough).
regards,
dimo
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 22, 2002 6:11 PM


Hi,
See the email I sent directly to you.
-ken

K M Drake
Dart Tech Support
djjaan
asp@hot.ee

From: Tallinn, Estonia
Posts: 22
Member Since: 02/26/02
posted March 27, 2002 8:56 AM

Actually - after installing update, I have the same problems - I delete message from Outlook - it is marked as "deleted".
If I now read e-mail using DART.SMTP , the message first marked as deleted, is really deleted. What am I doing wrong (I am using blocking mode - ASP ;)

Please give me help asap, it is important!
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 27, 2002 10:17 AM


Hi,
I assume you mean Dart Imap?
We are adding an AutoClose property to the Mailbox, so you can prevent a Close command being sent when a Get is called on a new box. This will prevent any messages marked for deletion from being purged when a new box is opened.
-ken

K M Drake
Dart Tech Support

 
djjaan
asp@hot.ee

From: Tallinn, Estonia
Posts: 22
Member Since: 02/26/02
posted March 27, 2002 10:26 AM

Yes - I meant Dart.Imap
Currently - I traced the commands, and here are example lines:
-----------------------------------------------
-->a00e SELECT "INBOX.General"
<--* FLAGS (\Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen)] Limited
* 43 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1006871746] Ok
a00e OK [READ-WRITE] Ok
-->a00f SEARCH ALL UNSEEN
<--* SEARCH
a00f OK SEARCH done.
-->a010 CLOSE
<--a010 OK mailbox closed.
-----------------------------------------------
This deletes any messages marked for deletion ;o(
It seems like a bug to me - anyway, if You add AutoClose property to Mailbox, You should set AutoClose to FALSE by default, because there is no point to have messages marked for deletion, when next time I open my mailbox they are gone, am I right?

regards,
Jaan Paljasma
Wap Oneline Eesti OÜ
project manager
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 27, 2002 10:55 AM


Hi Jaan,
We are unable to just take the Close out, or set AutoClose to false, because it may break already developed apps that expect it. But adding a Property and defaulting it to True will preserve its current behavior, while allowing you to stop the command from being sent in newly developed apps, if you so choose.
-ken

K M Drake
Dart Tech Support
djjaan
asp@hot.ee

From: Tallinn, Estonia
Posts: 22
Member Since: 02/26/02
posted March 28, 2002 5:01 AM

OK, I agree - lets DO NOT change behaviour of the component. But this is what You just have done - before installing latest update, everything was OK with working IMAP folders. But AFTER the update, messages marked for deletion kept disappearing! You already have changed behaviour of the component.
Question: then what is the point having IMAP flags anyway?
We have web application that will serve hundreds of customers; so - if there is something strange happening, we probably will give them Your e-mail address and they can complain directly to you about the strange behaviours ;))
regards

Jaan Paljasma
Project Manager

P.S.
Ken, You should probably write directly to my e-mail address and explain why did you change the IMAP component's behaviour; I have to explain this to our CEO.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 28, 2002 12:28 PM


Hi Jaan,
What is the version of the DartMail.dll in which the messages were not purged?
Thanks,
-ken

K M Drake
Dart Tech Support
djjaan
asp@hot.ee

From: Tallinn, Estonia
Posts: 22
Member Since: 02/26/02
posted April 15, 2002 9:51 AM

I actually do not remember version of the dll, but we made purchase in November, last year. So - maybe you can send me version of MailTool.exe that has same date?

regards,
Jaan
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 15, 2002 10:47 AM


Hi Jaan,
This thread describes a problem where Close is called by the control whenever a Get is done on a new mailbox. This has occurred since the inception of the control. I have confirmed this by using older (by over a year) versions of the control, and examining the source code.
If your un-modified app exhibits different behavior with our latest update, it must be a different issue. You should write a very simple VB project that demonstrates the change, zip it up, and send it to support@dart.com. This should not be your actual app, but a few lines of code that I can compile and run with two versions of our dlls and see a difference.
Thanks,
-ken

K M Drake
Dart Tech Support
djjaan
asp@hot.ee

From: Tallinn, Estonia
Posts: 22
Member Since: 02/26/02
posted April 16, 2002 5:27 AM

OK - sent you a code.
The code actually just displays all your mailboxes with unread messages in brackets.

Unread messages are counted with objMBX.Search option. That's simple. But removes all messages marked for deletion, even if I do not say DELETE ,o(
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX