Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

843: Mails are not forwarded to a closed PR any more #1103

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -83,7 +83,8 @@ private static String decodeFromStrings(String body) {

private static final Pattern inReplyToPattern = Pattern.compile("<(.*@.*?)>");

public static List<Conversation> parseConversations(List<Email> emails) {
public static List<Conversation> parseMbox(String mbox, EmailAddress sender) {
var emails = splitMbox(mbox, sender);
var idToMail = emails.stream().collect(Collectors.toMap(Email::id, Function.identity(), (a, b) -> a));
var idToConversation = idToMail.values().stream()
.filter(email -> !email.hasHeader("In-Reply-To"))
You are viewing a condensed version of this merge commit. You can view the full changes here.