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. |
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; |