Author |
|
tardis2112 Newbie
Joined: 10 May 2007
Online Status: Offline Posts: 10
|
Posted: 25 May 2007 at 12:41pm | IP Logged
|
|
|
I would like to make a "Copy to Folder" function that works just like the "Move to Folder" one. This would save a copy of the selected messages to the specified folder and still leave the original messsage where it is. I could write and asp function to copy the SQL database record into a new record and give it the new folder id, but then it would no longer be linked up with the other tables such as the attachments table. I looked in the documentation for the MailBee objects and could not find a copy message or duplicate message function. Any suggestions?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 26 May 2007 at 3:45am | IP Logged
|
|
|
This feature is planned for development in one of subsequent releases of upcoming MailBee WebMail Pro v4 (v4.0 will be released in a month).
Best regards,
Andrew
|
Back to Top |
|
|
tardis2112 Newbie
Joined: 10 May 2007
Online Status: Offline Posts: 10
|
Posted: 29 May 2007 at 9:38am | IP Logged
|
|
|
Glad to hear that this feature is in the plan. Unfortunately, I need the funtionality now, so I guess I will have to develop it myself. Any particular objects or functions I should look at in the existing version that may save me some time or trouble in the process?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 29 May 2007 at 10:56am | IP Logged
|
|
|
To copy a mail message on a mail server, you should use IMAP4.AppendMessage method. Actually, moving a message involves the same method but the message gets deleted from the original folder then (i.e. 'copy message' is simplified version of 'move message'). Thus, you should simply remove deleting message after IMAP4.AppendMessage call to make messages be copied rather than moved.
However, if you also need to implement all modes of copying a message (including copying in the database), this is very complicated. There are lots of cases to take into account (let's say, copying a message from the folder which is in 'Direct' mode into the folder in 'Entire Messages' mode), plus different cases for POP3 and for IMAP, etc. There are 3 modes of storing e-mails (Direct, Headers-Only, Entire Messages) for each protocol (POP3 and IMAP), and dozens of conditions to check. For instance, you cannot copy to Inbox in POP3 but you can in IMAP. You can, however, always copy to non-Inbox in POP3 but not always - in IMAP, etc.
Regards,
Alex
|
Back to Top |
|
|
tardis2112 Newbie
Joined: 10 May 2007
Online Status: Offline Posts: 10
|
Posted: 29 May 2007 at 11:54am | IP Logged
|
|
|
In my particular implementation, we will not have to account for too many factors. All users will be using the same settings which are POP3, never direct mode, Entire Messages will be kept in a SQL database. IMAP4 will not be used. In this case, I am guessing that the IMAP4.AppendMessage method would not apply. Correct? Any other methods I should look at in my specific situation?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 30 May 2007 at 8:58am | IP Logged
|
|
|
Please contact us through Request Support Form.
Best regards,
Andrew
|
Back to Top |
|
|