Mailfilter PHP \n Broken
Aaarrrrggghhh..... System: Perfect Server Ubuntu 9.04 setup Fully upgraded.
When adding new mailfilters now the output isn't getting printed correctly. The \n isn't getting output correctly. Here's a sample:
test -e \"$DEFAULT/.Other\" && exit 1 || exit 0
\nif ( $RETURNCODE != 1 )\n{\n maildirmake -f \"Other\" $DEFAULT
\n chmod -R 0700 \"$DEFAULT/.Other\"
\n echo \"INBOX.Other\" >> $DEFAULT/courierimapsubscribed
\n}\nif (/^Subject:.*WhoRU/:h)\n{\nexception {\nID35EndFolder = "$DEFAULT/.Other/"\nto $ID35EndFolder\n}\n}\n### END FILTER_ID:35\n
BEGIN FILTER_ID:35\n\nAs you can see... it's all on one line, which means that deleting the filter via the web page deletes it from the mail_user_filter table, but not the mail_user table. Naturally, it also outputs into the .mailfilter file like this, making it break.