Results 1 to 7 of 7

Thread: Save mail on hard disk in a readable format

  1. #1
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Question Save mail on hard disk in a readable format

    hello everyone,

    I'm trying to make a zimlet that allow a user to save a mail by dropping it on the zimlet. But I don't want to keep the original format of the mail.

    For us french who use lot of accents we really can't understand mails in the original format.

    So to do that I try to get the mail content and to analyse it for finally write a readable version in a file and get the file by a redirection.

    My problem is that I don't know how to get the mail content in a jsp file. I want to use a jsp file because I need to get the mail content and to be able to analyse it but I also need to create a file and to write in the file (this is impossible with javascript, no?, and I don't to use an external application (like a php file) if it's possible).

    Someone have an idea on how to get it? I already try by using the url of the mail but I get a http code 401 error when I try to load it.

    All ideas about how to do the zimlet are also welcome .

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Can you pass it to the google translator?
    If you do a french to french translation, that might clear it up.

  3. #3
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Question

    there isn't french to french translation in the google translator. And sorry but I don't understand how it can help me to get the mail.

    One more thing that i want to know:
    on the wiki about jsp ( http://wiki.zimbra.com/index.php?title=ZimletJSP ) you give available fields for contacts and appointements but what are the available fields for message and conversation ?
    Last edited by tdesorbaix; 04-17-2007 at 02:48 AM.

  4. #4
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    I find a solution to get the message but I still have a problem :
    I try to get the message from param in the <action url> in the xml file

    Code:
    <dragSource type="ZmMailMsg">
    		<canvas type="window" width="600" height="350"/>
    		<actionUrl target="/service/zimlet/_dev/com_zimbra_test12/test12.jsp">
    			<param name="from">${obj.from}</param>
    			<param name="to">${obj.to}</param>
    			<param name="cc">${obj.cc}</param>			
    			<param name="subject">${obj.subject}</param>
    			<param name="date">${obj.date}</param>
    			<param name="fragment">${obj.body}</param>
    			<param name="attachment">${obj.attachment}</param>		
    		</actionUrl>
    	</dragSource>
    I find the param obj.body to get the body of the message but obj.from , obj.to and obj.cc return "undefined". Can someone say me the name of the attributes to get from, to and cc please?

  5. #5
    qkmadson is offline New Member
    Join Date
    Apr 2008
    Posts
    4
    Rep Power
    7

    Default

    I am having the exact same problem. ${obj.from} returns undefined. Any answer on this?

  6. #6
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    367
    Rep Power
    8

    Default

    Welcome to the forum.

    If I remember correctly, those attributes can only be use in the js file.
    Anyway, since the POST method is not supported by the <actionUrl>, you should not use this attribute in the xml fle.
    Even if the whitepaper say you can add the option, I tested and it doesn't work.
    Try to have only a very limited amount of information in your url (1000 characters).

    If you want to do same zimlet, it is already done. Look here :
    http://www.zimbra.com/forums/zimlets...-txt-file.html
    Last edited by tdesorbaix; 04-14-2008 at 01:25 AM.

  7. #7
    rafaelcar is offline Member
    Join Date
    Oct 2007
    Posts
    14
    Rep Power
    7

    Default obj.to and obj.from

    Quote Originally Posted by qkmadson View Post
    I am having the exact same problem. ${obj.from} returns undefined. Any answer on this?
    Hello,

    I have the same question...

    obj.to and obj.from exist?
    Have a way more simplist to get this values?
    Im using the com_zimbra_jspsample zimlet

    ===============
    <dragSource type="ZmMailMsg">
    <canvas type="dialog" width="600" height="350"/>
    <actionUrl target="/service/zimlet/com_zimbra_jspsample/sample.jsp">
    <param name="subject">${obj.subject}</param>
    <param name="id">${obj.id}</param>
    <param name="email">${obj.email}</param>
    </actionUrl>
    </dragSource>
    ================
    Where obj.subject and obj.id works fine... but obj.to, obj.from, obj.email. Returns NULL

    Tanks...
    Rafael Carvalho

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Daily mail report always reports "No messages found"
    By McPringle in forum Installation
    Replies: 42
    Last Post: 06-13-2011, 08:57 AM
  3. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  4. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  5. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM

Posting Permissions

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