/[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.3 by Dreevich, Mon Nov 18 00:09:14 2002 UTC revision 1.4 by Dreevich, Mon Dec 2 18:43:52 2002 UTC
# Line 43  public class DefaultEmailInStorm impleme Line 43  public class DefaultEmailInStorm impleme
43      public DefaultEmailInStorm(Mediaserver ms, Mediaserver.Id msid) {      public DefaultEmailInStorm(Mediaserver ms, Mediaserver.Id msid) {
44          Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker();          Enfilade1D.Maker maker = new Enfilade1DImpl.Enfilade1DImplMaker();
45          PermanentTextScroll pts;          PermanentTextScroll pts;
46          pts = new PermanentTextScroll(ms, getBodyId(ms, msid));          Mediaserver.Id bodyId = getBodyId(ms, msid);
47            if(bodyId != null) {
48                pts = new PermanentTextScroll(ms, bodyId);
49            } else {
50                pts = new PermanentTextScroll("Not available");
51            }
52    
53          from    = getEnfilade1DForField("From", ms, msid);          from    = getEnfilade1DForField("From", ms, msid);
54          to      = getEnfilade1DForField("To", ms, msid);          to      = getEnfilade1DForField("To", ms, msid);
# Line 96  public class DefaultEmailInStorm impleme Line 101  public class DefaultEmailInStorm impleme
101          while(str.charAt(curPos) != '\r'          while(str.charAt(curPos) != '\r'
102                && str.charAt(curPos + 1) != '\n') {                && str.charAt(curPos + 1) != '\n') {
103              curPos = nextLine(str, curPos);              curPos = nextLine(str, curPos);
104                if (curPos == str.length()) return str.length();
105          }          }
106          return curPos + 2;          return curPos + 2;
107      }      }
# Line 123  public class DefaultEmailInStorm impleme Line 129  public class DefaultEmailInStorm impleme
129                && position != header.length()) {                && position != header.length()) {
130              oldPosition = position;              oldPosition = position;
131              position = nextHeader(header, position);              position = nextHeader(header, position);
132                if (position == header.length())
133                    return null;
134          }          }
135          String id = getFieldBodyString("content-id", header, oldPosition).trim();          String id = getFieldBodyString("content-id", header, oldPosition).trim();
136          if(id.startsWith("storm:block:")) {          if(id.startsWith("storm:block:")) {

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

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