Save mail on hard disk in a readable format

Interested in talking about Mash-up's? This is the place.
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

Save mail on hard disk in a readable format

Postby tdesorbaix » Mon Apr 16, 2007 10:49 am

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 ;) .


jholder
Zimbra Employee
Zimbra Employee
Posts: 4686
Joined: Fri Sep 12, 2014 10:00 pm

Save mail on hard disk in a readable format

Postby jholder » Tue Apr 17, 2007 3:16 am

Can you pass it to the google translator?

If you do a french to french translation, that might clear it up.
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

Save mail on hard disk in a readable format

Postby tdesorbaix » Tue Apr 17, 2007 4:39 am

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 ?
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

Save mail on hard disk in a readable format

Postby tdesorbaix » Wed Apr 18, 2007 6:07 am

I find a solution to get the message but I still have a problem :

I try to get the message from param in the in the xml file






${obj.from}

${obj.to}

${obj.cc}

${obj.subject}

${obj.date}

${obj.body}

${obj.attachment}




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?
qkmadson
Posts: 4
Joined: Fri Sep 12, 2014 11:27 pm

Save mail on hard disk in a readable format

Postby qkmadson » Fri Apr 11, 2008 4:34 pm

I am having the exact same problem. ${obj.from} returns undefined. Any answer on this?
tdesorbaix
Outstanding Member
Outstanding Member
Posts: 366
Joined: Fri Sep 12, 2014 10:31 pm

Save mail on hard disk in a readable format

Postby tdesorbaix » Mon Apr 14, 2008 3:20 am

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 , 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/16789-zimlet-save-email-txt-file.html
rafaelcar
Posts: 14
Joined: Sat Sep 13, 2014 2:50 am

Save mail on hard disk in a readable format

Postby rafaelcar » Tue Oct 14, 2008 11:43 pm

[quote user="qkmadson"]I am having the exact same problem. ${obj.from} returns undefined. Any answer on this?[/QUOTE]
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
===============







${obj.subject}

${obj.id}

${obj.email}





================

Where obj.subject and obj.id works fine... but obj.to, obj.from, obj.email. Returns NULL
Tanks...

Rafael Carvalho

Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 3 guests