Results 1 to 5 of 5

Thread: Using Zimlet to open mail message window in text mode

  1. #1
    headmaster is offline Junior Member
    Join Date
    Jan 2010
    Posts
    8
    Rep Power
    5

    Smile Using Zimlet to open mail message window in text mode

    Hi guy !

    Due to some of the email message in not display correctly in html mode,
    I am looking for a zimlet function which can able to open email window in text mode(just click a toolbar icon to popup new window in text mode).

    I did many search and still can't find any hints to do it...

    All I can found is open a compose window as below :

    Code:
    // Tries to open the compose view on its own.
    var composeController = AjxDispatcher.run("GetComposeController");
    if(composeController) {
    	var appCtxt = window.top.appCtxt;
    	var zmApp = appCtxt.getApp();
    	var newWindow = zmApp != null ? (zmApp._inNewWindow ? true : false) : true;
    	var params = {action:ZmOperation.NEW_MESSAGE, inNewWindow:newWindow, 
    	toOverride:null, subjOverride:null, extraBodyText:null, callback:null}
    	composeController.doAction(params); // opens asynchronously the window.
    	this.displayStatusMessage("Trying to open a new message dialog. Please wait ...");
    }

    Anyone can give me a hand on which function in zimlet can open(popup) email window in text mode ? Many thanks for your help

  2. #2
    cdamon is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    55
    Rep Power
    9

    Default

    Try this:

    var params = {action:ZmOperation.NEW_MESSAGE, inNewWindow:newWindow, composeModewt.TEXT};

    (You don't need to provide those valueless params.)
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    cdamon is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    55
    Rep Power
    9

    Default

    Okay, without the emoticon:

    var params = {action:ZmOperation.NEW_MESSAGE, inNewWindow:newWindow, composeMode: Dwt.TEXT};
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #4
    Hivos's Avatar
    Hivos is offline Advanced Member
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    213
    Rep Power
    5

    Default

    Tried the above but it does not work in 8.0.7. The compose window will use html/text based on the user settings, and ignore this parameter.

    Relevant code is highlighted here:
    https://github.com/barrydegraaff/pgp...3905b70fe2d2f4

    Shall we submit a bug for this?

  5. #5
    Hivos's Avatar
    Hivos is offline Advanced Member
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    213
    Rep Power
    5

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clients stopped receiving emails
    By egadinc in forum Administrators
    Replies: 16
    Last Post: 12-14-2009, 03:38 PM
  2. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 08:20 AM
  3. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  4. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM
  5. fatal: Queue report unavailable - mail system is down
    By zzzzsg in forum Administrators
    Replies: 16
    Last Post: 08-24-2006, 02:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •