public class ShortContentMessageVisitor extends ContentMessageVisitor
ContentMessageVisitor that only shows each message once.
If a message has already been displayed but occurs a second time (e.g.
as part of a reply) then it is shown as a link rather than in-line.
Messages with the same MEssage-ID are assumed to be the same message.linker, sbEMAIL_EDIT_WRAP_THRESHOLD_CFG, EMAIL_WRAP_FEATUREconn| Constructor and Description |
|---|
ShortContentMessageVisitor(AppContext conn,
java.util.Set<java.lang.String> message_ids,
ContentBuilder buff,
MessageLinker linker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
startMessage(MimePart parent,
MimeMessage m,
MessageWalker messageWalker)
invoked at the start of a message
The messageWalker message level is set for the message we are entering.
|
addLink, doCC, doFrom, doHeader, doHeaderList, doIOError, doMessageError, doReplyTo, doSubject, doTo, endMessage, endMultiPart, formatList, linkPart, startMultiPart, visit, visitInputStreamclean, doBCC, doBCC, doCC, doHeader, doRecipients, doTo, endSubPart, startSubPart, visitHeaders, wrap, wrapForEditgetContext, getLogger, resetLoggerpublic ShortContentMessageVisitor(AppContext conn, java.util.Set<java.lang.String> message_ids, ContentBuilder buff, MessageLinker linker)
conn - AppContextmessage_ids - Set of message-ids to show as linksbuff - ContentBuilderlinker - MessageLinkerpublic boolean startMessage(MimePart parent,
MimeMessage m,
MessageWalker messageWalker)
throws MessageWalker.WalkerException
VisitorstartMessage in interface VisitorstartMessage in class ContentMessageVisitorMessageWalker.WalkerException