Mail plugin with pop3 support

Release notes for Servoy betas

Postby Jan Blok » Mon Sep 27, 2004 11:40 am

1) fixed http://downloads.servoy.com/beta/2.1_product/mail.jar
2) well yes, you first recieve it and then put it in the database
3) outlook, we could provide a method to delete a specific msg to get same behaviour,like deleteServerMail(sentdate)
4) numberofmsg is no problem, but recieveing headers is about 100bytes per header, seems not like a problem to me.
5) javamethods do not call them, they are hidden in normal use.
6) recieve date is filled in by the mail client, which in our case your method, so it is null.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Harjo » Mon Sep 27, 2004 12:49 pm

1. Thanks, I give it a try
2. This could be problematic for small-broadband-clients
because you have to download first 4mb than upload 4 mb again, and than download 4mb again, to view it. that is: 12MB data, only to put it in a column.
It would be handy, that you could put attachments in the database directly, without loading the first to the client.
3. would be nice.
4. ok, I thought that they would be bigger
5. -
6. This one I don't really get. I am downloading emails, from an emailserver that is also reachable from a webclient. In the webclient I see a sendate and a receiveddate. When I download it with the pop3 plugin, the receiveddate is null. I would expect else.
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Blok » Mon Sep 27, 2004 4:41 pm

2) to view not needed to download again, it is one download and one db insert. (how whould you do this otherwise?) better not download attachements on small-broadband-clients then.
6) we use a SUN java mail lib, which seems not to provide a recieve date, but why do you not mark the mail with a "new Date" as being the recieve date when you recieve the mail?
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Harjo » Mon Sep 27, 2004 5:08 pm

6.) Oke, but why is there a function: msg.getReceivedDate() ? :lol:
You don't have to answer! :lol:
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Blok » Mon Sep 27, 2004 5:51 pm

It is availible on the java objects so we forwarded them to javascript, maybe in the future the recieve date is filled in
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Jan Blok » Thu Sep 30, 2004 7:59 pm

An performance enhancement is made for headers only http://downloads.servoy.com/beta/2.1_product/mail.jar
Thanks to HJK for pointing this out.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby patrick » Mon Oct 04, 2004 11:56 am

I am still getting "null" and in the log I see this error when retrieving mail:

java.lang.NullPointerExceptionjava.lang.NullPointerException
at com.servoy.r2.plugins.mail.MailServerUtils.createAddressString(MailServerUtils.java:133)
at com.servoy.r2.plugins.mail.MailServerUtils.createMailMessage(MailServerUtils.java:38)
at com.servoy.r2.plugins.mail.MailServer.recieveMail(MailServer.java:213)
at com.servoy.r2.plugins.mail.MailProvider.js_recieveMail(MailProvider.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:289)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1940)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
at com.servoy.j2db.scripting.e.call(Unknown Source)
at com.servoy.j2db.develop.debugger.n.a(Unknown Source)
at com.servoy.j2db.develop.debugger.n.access$14(Unknown Source)
at com.servoy.j2db.develop.debugger.n$3.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby Jan Blok » Mon Oct 04, 2004 1:43 pm

Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby cyrus109 » Thu Oct 14, 2004 10:17 am

the download doesn't work anymore.
Does anyone know a miror for downloading this plugin ?
cyrus109
 
Posts: 6
Joined: Wed Oct 13, 2004 3:48 pm

Postby Jan Blok » Thu Oct 14, 2004 10:34 am

Sorry we forgot to post here, it is now included in Servoy 2.1.1.
See http://forum.servoy.com/viewtopic.php?t=3014
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Previous

Return to Latest Releases

Who is online

Users browsing this forum: No registered users and 14 guests

cron