Author |
|
MikeB941 Newbie
Joined: 03 October 2011
Online Status: Offline Posts: 3
|
Posted: 03 October 2011 at 12:44am | IP Logged
|
|
|
Webmail Lite 6.2
First Igor - FANTASTIC PRODUCT!!!
I have the sample integration code working fine to automatically log on and jump to webmail (from the support on-iine documentation):
http://www.afterlogic.com/wiki/Creating_domains,_logging_accounts_in,_deleting_domains_and_accounts_via_API_%28WebMail_Pro_6_PHP%29
I also have similar VIEW code for a SPECIFIC existing email working to jump to mini-webmail.php?open_mode=view passing the necessary parameters - for example:
$oApiWebMailManager->JumpToWebMail('mini-webmail.php?open_mode=view&msg_uid=3&folder_id=7&folder_full_name=INBOX.Drafts&mode=263');
I would truly appreciate some sample code / API to do the same but jump to mini-webmail.php to EDIT (open_mode=new) a specific EXISTING message in a specific mailbox i.e. INBOX.Drafts to allow changes, then SAVE back to the mailbox and exit (I have the data for the msg_uid, folder_id and folder_full_name but I don't know how to pass these parameters in this situation or what OTHER parameters may be required).
THANK YOU SO MUCH FOR SUCH A GREAT PRODUCT!
Take Care... Mike.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 03 October 2011 at 1:20am | IP Logged
|
|
|
Thank you for your warm words!
I have just checked with the developers, and according to them, there's no easy way to call mini-webmail screen with edit mode activated. That would require modifying the source code, which is you are allowed to do of course. That falls beyond free support scope though.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MikeB941 Newbie
Joined: 03 October 2011
Online Status: Offline Posts: 3
|
Posted: 04 October 2011 at 1:09am | IP Logged
|
|
|
Thanks for checking Igor!
Alternatively - is there a way when webmail is started using IMAP (not POP3) to have it start in the Drafts folder and listing the draft messages (rather than the Inbox)?
And one step further, is there a way when webmail is started using IMAP to have it start by opening the first email in the drafts folder for edit? In my case there would always only be ONE email in the Drafts folder and ideally I'd like webmail to start with the one message in Drafts folder open for edit.
The user would then make an necessary changes, SAVE the email back to the Drafts folder and exit.
Thanks so much for all your help.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 October 2011 at 1:37am | IP Logged
|
|
|
Quote:
Alternatively - is there a way when webmail is started using IMAP (not POP3) to have it start in the Drafts folder and listing the draft messages (rather than the Inbox)? |
|
|
Yes, that's a single-line code modification. See js/mail/message-list-prototype.js file, line ~1455:
Code:
if (this.oKeyMsgList.iFolderId == -1 && thisFolder.type == FOLDER_TYPE_INBOX) { |
|
|
It should be modified as follows:
Code:
if (this.oKeyMsgList.iFolderId == -1 && thisFolder.type == FOLDER_TYPE_DRAFTS) { |
|
|
Be sure to refresh browser cache after that.
Quote:
And one step further, is there a way when webmail is started using IMAP to have it start by opening the first email in the drafts folder for edit? |
|
|
Nope, there's no such thing available at the moment, but you are certainly allowed to add it by modifying the source.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MikeB941 Newbie
Joined: 03 October 2011
Online Status: Offline Posts: 3
|
Posted: 05 October 2011 at 11:55am | IP Logged
|
|
|
Thank you so much Igor - you are truly appreciated! Take Care... Mike.
|
Back to Top |
|
|