Skip to content

Commit

Permalink
Allow completely empty subjects when moderating Mailman lists
Browse files Browse the repository at this point in the history
Some list servers seem to make it completely blank whereas some put
"(No subject)". With this change, both are supported.

Per report from Dave Paul
  • Loading branch information
mhagander committed Jul 2, 2011
1 parent 87df535 commit 7fa4b78
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -14,6 +14,7 @@
import net.hagander.mailinglistmoderator.backend.ListServer;
import net.hagander.mailinglistmoderator.backend.MailMessage;
import net.hagander.mailinglistmoderator.backend.MailMessage.statuslevel;
import android.util.Log;

/**
*
Expand All @@ -34,7 +35,7 @@ public Mailman(String name, String rooturl, String password) {
Pattern.DOTALL);
private static final Pattern messageContentPattern = Pattern
.compile(
"<td ALIGN=\"right\"><strong>From:</strong></td>\\s+<td>([^<]+)</td>.*?<td ALIGN=\"right\"><strong>Subject:</strong></td>\\s+<td>([^<]+)</td>.*?<td><TEXTAREA NAME=fulltext-(\\d+) ROWS=10 COLS=76 WRAP=soft READONLY>([^<]+)</TEXTAREA></td>",
"<td ALIGN=\"right\"><strong>From:</strong></td>\\s+<td>([^<]+)</td>.*?<td ALIGN=\"right\"><strong>Subject:</strong></td>\\s+<td>([^<]*)</td>.*?<td><TEXTAREA NAME=fulltext-(\\d+) ROWS=10 COLS=76 WRAP=soft READONLY>([^<]+)</TEXTAREA></td>",
Pattern.DOTALL);
private static final Pattern authorizationFailedPattern = Pattern
.compile(
Expand Down

0 comments on commit 7fa4b78

Please sign in to comment.