Rescue9
16th September 2009, 18:02
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:
### BEGIN FILTER_ID:35\n\n`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
As 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.
Just to be clear... it's not only showing up in the .mailfilter file as listed above. It's also showing up in the mail_user table the same way. It seems as if there is a problem in how the line gets put into the database, and this is what is causing it to be written incorrectly to the file.
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:
### BEGIN FILTER_ID:35\n\n`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
As 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.
Just to be clear... it's not only showing up in the .mailfilter file as listed above. It's also showing up in the mail_user table the same way. It seems as if there is a problem in how the line gets put into the database, and this is what is causing it to be written incorrectly to the file.