Add php's wordwrap() function to Listhandler's mail output so mail is more easily read in mailing list archives. Patch displayed and file attached...
--- listhandler.module 2006-07-01 22:59:07.000000000 -0500
+++ listhandler.module.mod 2006-07-02 03:31:55.000000000 -0500
@@ -273,11 +273,11 @@
$subject = mail_html_to_text($edit['subject']);
$body = mail_html_to_text($edit['comment']);
}
else {
$subject = strip_tags($edit['subject']);
- $body = strip_tags($edit['comment']);
+ $body = wordwrap(strip_tags($edit['comment']));
}
$err = user_mail($address, $subject, $body, "From: ". $edit["name"] ." <". $edit["mail"] .">\n". $mid);
// save comment ids in listhandler table.
// Not strictly needed, the same info is stored in the msgid.| Comment | File | Size | Author |
|---|---|---|---|
| listhandler.module.patch.txt | 650 bytes | amessina |
Comments
Comment #1
amessina commentedComment #2
philipnet commentedI'm not going to implement this unless there is demand for it.
Listhandler doesn't target mail archives, it targets mailing lists and email clients.
Regards.
P.
Comment #3
philipnet commentedClosing request.