You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/09/21 11:23:30 UTC

cvs commit: xml-cocoon2/src/org/apache/cocoon/acting SendmailAction.java

cziegeler    01/09/21 02:23:30

  Modified:    src/org/apache/cocoon/acting Tag: cocoon_20_branch
                        SendmailAction.java
  Log:
  Fixed configuration
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.5   +1 -5      xml-cocoon2/src/org/apache/cocoon/acting/SendmailAction.java
  
  Index: SendmailAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/SendmailAction.java,v
  retrieving revision 1.3.2.4
  retrieving revision 1.3.2.5
  diff -u -r1.3.2.4 -r1.3.2.5
  --- SendmailAction.java	2001/09/19 16:08:09	1.3.2.4
  +++ SendmailAction.java	2001/09/21 09:23:30	1.3.2.5
  @@ -61,11 +61,7 @@
     public void configure(Configuration conf) throws ConfigurationException {
       getLogger().debug("SendmailAction: init");
       default_properties = new Properties();
  -    if (conf.getAttribute("smtphost") != null) {
  -      default_properties.put("mail.smtp.host",conf.getAttribute("smtphost"));
  -    } else {
  -      default_properties.put("mail.smtp.host","127.0.0.1");
  -    }
  +    default_properties.put("mail.smtp.host",conf.getAttribute("smtphost", "127.0.0.1"));
       getLogger().debug("SendmailAction: using "+default_properties.get("mail.smtp.host")+" as the smtp server");
     }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org