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); |
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 |
} |
} |
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:")) { |