フォーラム投稿のダイジェストメールを1日に1度受け取る設定で利用しています.
自分の管理するMoodleサイトもそうですが,moodle.orgも同様です.このダイジェストメールで以前から気になっていた点が一つあります.複数のコースに属している場合,ダイジェストメールの中身の並びに一貫性がありません.正確に言うとディスカッショントピックスの並び,です.たとえば,送られてきたmoodle.orgからのダイジェストメールのディスカッショントピックスの並びですが,
Using Moodle -> フォーラム -> Forum module -> New Posts Aren't Always...
Using Moodle -> フォーラム -> General developer forum -> Overloading...
Using Moodle -> フォーラム -> General developer forum -> Ideal way to...
Using Moodle -> フォーラム -> Messaging -> Instructor not getting email...
Japanese -> フォーラム -> Moodle開発者フォーラム ->コース省略名でURI指定...
Using Moodle -> フォーラム -> Installation problems -> Strict Standards...
Using Moodle -> フォーラム -> General developer forum -> Linux zip/unzip...
Using Moodle -> フォーラム -> Forum module -> Instructor Not Receiving...
Using Moodle -> フォーラム -> Backup and Restore -> Whole Site Database...
Using Moodle -> フォーラム -> General developer forum -> Problems with...
Using Moodle -> フォーラム -> Blogs -> Blog Privacy and Permissions...
Using Moodle -> フォーラム -> General developer forum -> Plan for the...
Japanese -> フォーラム -> Moodle開発者フォーラム ->...
Using Moodle -> フォーラム -> General developer forum -> Conditional...
Using Moodle -> フォーラム -> Backup and Restore -> Auto back up not...
Using Moodle -> フォーラム -> General developer forum -> new moodledoc...
Japanese -> フォーラム -> 日本語文字化け対応フォーラム ->課題のファイル...
Using Moodle -> フォーラム -> General developer forum -> Critical:...
Using Moodle -> フォーラム -> Messaging -> Email not sent when a new user...
Using Moodle -> フォーラム -> General developer forum ->Surprise,Category...
Using Moodle -> フォーラム -> Blocks -> Contact Form block updated for...
Using Moodle -> フォーラム -> General developer forum -> how to find from...
こんな感じですね.コースも入り乱れていますし,フォーラムの順でもない.尚,ディスカッショントピックスに対する返信はきちんとpostidでソーティングされています.
これが第一の問題点(正確に言うと問題点ではなく,不満な点).
もう一つは添付されてくるHTMLファイルに改行が全く無いこと.HTMLファイルとしては問題が無いのかも知れませんが,実際にはemail_to_user()で添付ファイルとして送信される前に強制的に改行が行われているようです.
function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $attachment='', $attachname='', $usetrueaddress=true, $replyto='', $replytoname='', $wordwrapwidth=79)
の宣言に対して,
email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, '', '', $CFG->forum_replytouser)
このように添付ファイルではなく,HTMLメールの本文として送っています.実際には,以下のようなヘッダーでテキストの本文と区切られています.
--b1_72526fc534a7c0d7853208a956d0649f
Content-Type: text/html; charset = "ISO-2022-JP"
Content-Transfer-Encoding: quoted-printable
したがって1行の文字数の制限に合わせて分割されます.fs_moodleではオリジナルのワードラップを改善して単語単位ではなく文字単位で改行を入れられるように改善したのが仇となって,HTMLの途中で寸断されます...その結果,ごく稀にHTMLとしてエラーになることがあるようです.