MDL-37953 mod_forum: replace hard-coded numbers with defined values

mod/forum/lib.php sets forum_posts.mailed to 0, 1, and 2. What do these numbers
mean? This patch creates defined values for these otherwise-mysterious
numbers.
MDL-37953 mod_forum: using named parameters to build SQL statement