Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: API to Integrate / Jump To mini-webmail Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MikeB941
Newbie
Newbie


Joined: 03 October 2011
Online Status: Offline
Posts: 3
Posted: 03 October 2011 at 12:44am | IP Logged Quote MikeB941

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 View MikeB941's Profile Search for other posts by MikeB941
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 October 2011 at 1:20am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
MikeB941
Newbie
Newbie


Joined: 03 October 2011
Online Status: Offline
Posts: 3
Posted: 04 October 2011 at 1:09am | IP Logged Quote MikeB941

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 View MikeB941's Profile Search for other posts by MikeB941
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 October 2011 at 1:37am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
MikeB941
Newbie
Newbie


Joined: 03 October 2011
Online Status: Offline
Posts: 3
Posted: 05 October 2011 at 11:55am | IP Logged Quote MikeB941

Thank you so much Igor - you are truly appreciated! Take Care... Mike.
Back to Top View MikeB941's Profile Search for other posts by MikeB941
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide