serge       01/10/31 13:28:22

  Modified:    src/java/org/apache/james/transport/mailets
                        GenericListserv.java
  Log:
  Fixed bug that caused it to choke on messages without a subject.
  
  Revision  Changes    Path
  1.2       +3 -1      
jakarta-james/src/java/org/apache/james/transport/mailets/GenericListserv.java
  
  Index: GenericListserv.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/GenericListserv.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GenericListserv.java      2001/05/11 10:01:03     1.1
  +++ GenericListserv.java      2001/10/31 21:28:22     1.2
  @@ -84,6 +84,9 @@
               if (getSubjectPrefix() != null) {
                   String prefix = "[" + getSubjectPrefix() + "]";
                   String subj = message.getSubject();
  +                if (subj == null) {
  +                    subj = "";
  +                }
                   //If the "prefix" is in the subject line, remove it and everything 
before it
                   int index = subj.indexOf(prefix);
                   if (index > -1) {
  @@ -95,7 +98,6 @@
                   } else {
                       subj = prefix + ' ' + subj;
                   }
  -
                   message.setSubject(subj);
               }
               MailAddress listservAddr = getListservAddress();
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to