/[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.6 by Dreevich, Sun Dec 8 00:16:20 2002 UTC revision 1.7 by Dreevich, Sun Dec 8 11:31:01 2002 UTC
# Line 55  public class DefaultEmailInStorm impleme Line 55  public class DefaultEmailInStorm impleme
55          subject = getEnfilade1DForField("Subject", ms, msid);          subject = getEnfilade1DForField("Subject", ms, msid);
56          date    = getEnfilade1DForField("Date", ms, msid);          date    = getEnfilade1DForField("Date", ms, msid);
57          body    = maker.makeEnfilade(pts.getCurrent());          body    = maker.makeEnfilade(pts.getCurrent());
58    
59            System.out.println("From: \"" + from.makeString() + "\"");
60            System.out.println("To: \"" + to.makeString() + "\"");
61            System.out.println("Subject: \"" + subject.makeString() + "\"");
62            System.out.println("Date: \"" + date.makeString() + "\"");
63            //System.out.println("Body: \"" + body.makeString() + "\"");
64      }      }
65    
66      /** Get an Enfilade1D object containing the From header of the email.      /** Get an Enfilade1D object containing the From header of the email.
# Line 172  public class DefaultEmailInStorm impleme Line 178  public class DefaultEmailInStorm impleme
178          do {          do {
179              if ((position + fieldLength) < header.length()) {              if ((position + fieldLength) < header.length()) {
180                  if (header.substring(position, position + fieldLength).equals(field)) {                  if (header.substring(position, position + fieldLength).equals(field)) {
181                      int begin = position + fieldLength;                      int ws = 0;
182                        for(;header.charAt(position + fieldLength + ws) == ' '; ws++);
183                        int begin = position + fieldLength + ws;
184                      int end = nextLine(header, position + fieldLength) - 2;                      int end = nextLine(header, position + fieldLength) - 2;
185                      positions.add(new int[] {begin, end});                      positions.add(new int[] {begin, end});
186                      unfold = true;                      unfold = true;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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