Having a bit of a problem. I modified the spamassassin panel so that there was a drop down showing ON and OFF and toggling that box would result in either rewrite_subject 0 or rewrite_subject 1 being written to the /etc/mail/spamassassin/local.cf file.
This DID work perfectly but for one minor snag. I had made a spelling mistake in the panel code. When i rectified the mistake (one extra character was removed) it wouldnt write the rewrite_subject line to the local.cf file.
I have found that if i have the drop down code write any other string to the file it works, but if i make it try to write rewrite_subject then it fails.
All i did was copy the code thats currently used in the panel, but change the wording and add a final line in the save code.
Any ideas why this might be? IS there a way to get the drop down working in that way ?