/[gzz]/gzz/gzz/modules/email/DefaultEmailInStorm.java
ViewVC logotype

Diff of /gzz/gzz/modules/email/DefaultEmailInStorm.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by Dreevich, Mon Dec 2 18:43:52 2002 UTC revision 1.5 by Dreevich, Sat Dec 7 21:18:46 2002 UTC
# Line 123  public class DefaultEmailInStorm impleme Line 123  public class DefaultEmailInStorm impleme
123              throw new Error();              throw new Error();
124          }          }
125          position = nextHeader(header, 0);          position = nextHeader(header, 0);
126    
127          while(!getFieldBodyString("content-type",          while(!getFieldBodyString("content-type",
128                                    header,                                    header,
129                                    position).trim().startsWith("text/")                                    position).trim().startsWith("text/plain")
130                && position != header.length()) {                && position != header.length()) {
131              oldPosition = position;              oldPosition = position;
132              position = nextHeader(header, position);              position = nextHeader(header, position);
133              if (position == header.length())              if (position == header.length()) {
134                  return null;                  return null;
135                }
136          }          }
137                
138          String id = getFieldBodyString("content-id", header, oldPosition).trim();          String id = getFieldBodyString("content-id", header, oldPosition).trim();
139          if(id.startsWith("storm:block:")) {          if(id.startsWith("storm:block:")) {
140             id = id.substring("storm:block:".length());             id = id.substring("storm:block:".length());

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26