cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: DIFF [C2.0] SendmailAction
Date Mon, 24 Sep 2001 06:34:07 GMT
Thanks Paolo,

but the current version using an attribute is also working now -
according to Klaus' tests.

Carsten

> -----Ursprüngliche Nachricht-----
> Von: Paolo [mailto:lavoro@arsenio.net]
> Gesendet: Freitag, 21. September 2001 18:03
> An: cocoon-dev@xml.apache.org
> Betreff: R: DIFF [C2.0] SendmailAction
>
>
> I think I've fixed the SendmailAction problem initialization to work.
> Please try this (I used a 'child' element to configure the action like
> other actions):
>
> public void configure(Configuration conf) throws ConfigurationException
> {
> if (conf != null) {
>   	getLogger().debug("SendmailAction: init");
>     	default_properties = new Properties();
>
> default_properties.put("mail.smtp.host",conf.getChild("smtphost").getVal
> ue("127.0.0.1"));
>     	getLogger().debug("SendmailAction: using
> "+default_properties.get("mail.smtp.host")+" as the smtp server");
>     }
> }
>
> ByeBye,
> Paolo Scaffardi
> AIRVENT SAM S.p.A.
>
> -----Messaggio originale-----
> Da: Klaus Bertram [mailto:bertram@n-bis.de]
> Inviato: venerdì 21 settembre 2001 16.24
> A: cocoon-dev@xml.apache.org
> Oggetto: RE: DIFF [C2.0] SendmailAction
>
> ok ok
> was my own changes i had to remove :(
>
> Klaus
> > -----Original Message-----
> > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > Sent: Friday, September 21, 2001 1:44 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: AW: DIFF [C2.0] SendmailAction
> >
> >
> > > Klaus Bertram wrote:
> > >
> > > Hi Carsten,
> > >
> > > I test it with the brunch and it works with attribute and without
> > > we can now put out the comments they are sill inside
> > >
> > Thanks for testing, but what comments do you mean? I don't see any
> > in the cvs version.
> >
> >
> > > i will later also test the head but i think it works also
> > >
> > Great, thanks.
> >
> > Carsten
> >
> > > Klaus
> > >
> > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > phone: +49-214-206494-0
> > > fax:   +49-214-206494-44
> > > email: bertram@n-bis.de
> > >
> > > > -----Original Message-----
> > > > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > > > Sent: Friday, September 21, 2001 11:24 AM
> > > > To: cocoon-dev@xml.apache.org
> > > > Subject: AW: DIFF [C2.0] SendmailAction
> > > >
> > > >
> > > > I looked at the configure() method, and I think the exception
> > > > is thrown by the use of the getAttribute() method.
> > > > If the attribute "smtphost" is not set in the configuration of the
> > > > action, the getAttribute("smtphost") call will throw an exception!
> > > > So, the correct call would be:
> > > > getAttribute("smtphost", default-value).
> > > >
> > > > I will change the action according to the pattern above.
> > > > If you could please test, if this works for you?
> > > >
> > > > Carsten
> > > >
> > > > > -----Ursprüngliche Nachricht-----
> > > > > Von: Klaus Bertram [mailto:bertram@n-bis.de]
> > > > > Gesendet: Freitag, 21. September 2001 10:46
> > > > > An: cocoon-dev@xml.apache.org
> > > > > Betreff: RE: DIFF [C2.0] SendmailAction
> > > > >
> > > > >
> > > > > Hi Carsten,
> > > > > every time i try to set the default value for smtphost it throws
> an
> > > > > exception
> > > > > also when the configuration parameter it not set.
> > > > >
> > > > > So it seems better to put out the configuration parameter
> > > > > it work's fine
> > > > >
> > > > > at the moment my time is a litle bit busy,
> > > > > but i want rewrite the sendmail action with features to
> > send multipart
> > > > > mail's
> > > > >
> > > > > Klaus
> > > > >
> > > > >
> > > > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > > > phone: +49-214-206494-0
> > > > > fax:   +49-214-206494-44
> > > > > email: bertram@n-bis.de
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Carsten Ziegeler [mailto:cziegeler@sundn.de]
> > > > > > Sent: Friday, September 21, 2001 10:18 AM
> > > > > > To: cocoon-dev@xml.apache.org
> > > > > > Subject: AW: DIFF [C2.0] SendmailAction
> > > > > >
> > > > > >
> > > > > > Hi Klaus,
> > > > > >
> > > > > > what's the use of this patch? As far as I can tell it simply
> > > > > > comments the configure() method out, correct? Why this?
> > > > > >
> > > > > > Carsten
> > > > > >
> > > > > >
> > > > > > > -----Ursprüngliche Nachricht-----
> > > > > > > Von: Klaus Bertram [mailto:bertram@n-bis.de]
> > > > > > > Gesendet: Donnerstag, 20. September 2001 18:09
> > > > > > > An: Cocoon dev
> > > > > > > Betreff: DIFF [C2.0] SendmailAction
> > > > > > >
> > > > > > >
> > > > > > > Hi all,
> > > > > > >
> > > > > > > here is an aditional diff for the SendmailAction aginst
> Brunch
> > > > > > >
> > > > > > > Klaus
> > > > > > >
> > > > > > > nbis - Röttgerweg 10 - 51371 Leverkusen
> > > > > > > phone: +49-214-206494-0
> > > > > > > fax:   +49-214-206494-44
> > > > > > > email: bertram@n-bis.de
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message