public class TextParser
extends java.lang.Object
Constructor and Description |
---|
TextParser() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<MailComment> |
parse(MailMessage email,
java.util.Collection<Comment> comments,
java.lang.String changeUrl)
Parses comments from plaintext email.
|
public static java.util.List<MailComment> parse(MailMessage email, java.util.Collection<Comment> comments, java.lang.String changeUrl)
email
- MailMessage as received from the email service.comments
- Comments previously persisted on the change that caused the original
notification email to be sent out. Ordering must be the same as in the outbound emailchangeUrl
- Canonical change url that points to the change on this Gerrit instance.
Example: https://go-review.googlesource.com/#/c/91570