Browse files

Allow completely empty subjects when moderating Mailman lists

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...
1 parent 87df535 commit 7fa4b78fec017c7755d6cb1df562535d3c85d58c @mhagander committed Jul 2, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/net/hagander/mailinglistmoderator/backend/providers/Mailman.java
View
3 src/net/hagander/mailinglistmoderator/backend/providers/Mailman.java
@@ -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;
/**
*
@@ -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(

0 comments on commit 7fa4b78

Please sign in to comment.