re-process failed mails after some time

2004-03-23 Thread Angel Angelov
Hi all, I'm developing an application based on James using mailets. Some times it's not possible to process the e-mails and I want to retry after some time (2 hours for example). Did somebody have some suggestion, how can I do this without holding the spool thread with Thread.sleep(2*60*1000)? Th

Re: re-process failed mails after some time

2004-03-23 Thread Angel Angelov
Hi Noel, thanks for the response. My mailet, takes the body of the e-mail, send it as a sms and set the mail status to GHOST. That mean, I can not use the RemoteDelivery mailet - the e-mail is not delivered, it's destroyed. Can you give me some advice/example/documentation how to write my own s

RemoteDelivery Mailet

2004-03-24 Thread Angel Angelov
Hi all, I'm using a peace of code from RemoteDelivery in my mailet: ComponentManager compMgr = (ComponentManager)getMailetContext().getAttribute(Constants.AVALON_COMPONENT_MANAGER); String outgoingPath = getInitParameter("outgoing"); if (outgoingPath == null) {

using MailetContext.sendMail

2004-03-31 Thread Angel Angelov
Hi all, I'm trying to send a mail using the method sendMail(MailAddress sender, Collection recipients, MimeMessage msg, String state) using James 2.2.0a15 I set the state to "transport". In my transport processor I configured a gateway smpt server where all e-mails should be send. I become the f

RE: using MailetContext.sendMail

2004-03-31 Thread Angel Angelov
Hallo Noel, thanks for the suggestion. I was created a Collection from Strings instead of Collection of MailAddress. Now it works perfect! What is a JIRA issue and how/where can I submit it? --Angel -- Original Message -- From: "Noel J. Bergman" <[EMAIL

shutdown james

2004-04-25 Thread Angel Angelov
Hi all, I have 2 questions about shutting down james. I hope somebody can help me. 1) I want to shut down james from my mailet if it don't initialize properly. I tried with System.exit(1), but it don't work. Some suggestion how can I do it? 2) What happens with all opened SMTP connections if I sto

Re: shutdown james

2004-04-27 Thread Angel Angelov
Any suggestions on this topic? Thanks. --Angel Angel Angelov wrote: Hi all, I have 2 questions about shutting down james. I hope somebody can help me. 1) I want to shut down james from my mailet if it don't initialize properly. I tried with System.exit(1), but it don't work. Some

Re: permission denied on startup on Linux

2004-07-13 Thread Angel Angelov
You need a root account on Linux (Unix) to open a server socket on all low ports (<1024). --Angel -- Original Message -- From: "Marcello Marangio" <[EMAIL PROTECTED]> Reply-To: "James Users List" <[EMAIL PROTECTED]> Date: Tue, 13 Jul 2004 10:06:36 +0200

Re: 550 Administrative Prohibition

2004-07-14 Thread Angel Angelov
I suppose, the ADSL provider uses a HTTP Proxy to filter the traffic and if you connect the HTTP Proxy with SMTP protocol you take the HTTP Error 550, because the Proxy can not handle SMTP protocol. --Angel -- Original Message -- From: "Daniel Perry" <[E

James and JavaServlet (Tomcat)

2005-02-14 Thread Angel Angelov
Hi all, I need to share some objects between James and my servlet (at the moment running on Tomcat). Some suggestions how to do it? I want to avoid (when possible) slow communications as a TCP/IP or file sharing on the hard disk. I was thinking to start James from my servlet, in this way they w

Re: Thunderbird & James 2.2.0 beyond Localhost

2005-03-09 Thread Angel Angelov
This Exception comes usually when there is a firewall between your host and the destination IP. You can test the connectivity manually be executing from your James machine: telnet 66.94.234.13 25 Regards, Angel -- Original Message -- From: Mathias Fonkam

Re: Thunderbird & James 2.2.0 beyond Localhost

2005-03-09 Thread Angel Angelov
>same location. How to I get around this? >Cheers, >Matt > >--- Angel Angelov <[EMAIL PROTECTED]> wrote: >> This Exception comes usually when there is a >> firewall between your host and the destination IP. >> >> You can test the connectivity manua