From: Pierre Habouzit Date: Mon, 13 Oct 2003 11:57:08 +0000 (+0000) Subject: writing procmailrc X-Git-Tag: procmail~6 X-Git-Url: http://git.polytechnique.org/?p=old-projects.git;a=commitdiff_plain;h=975d4fdb2af32a6ec38d966fba0fd894e239c4c6 writing procmailrc --- diff --git a/philter/philter/include/form_emails.inc.php b/philter/philter/include/form_emails.inc.php index 5bcf90c..9dd2759 100644 --- a/philter/philter/include/form_emails.inc.php +++ b/philter/philter/include/form_emails.inc.php @@ -5,10 +5,13 @@ if(count($_POST)) { // a FORM has been submitted if(isset($_POST['global'][$id])) $filter->set_global_data($id,$_POST['global'][$id]); $filter->rules[0]->sql_store(get_user_id(),0); + $philter->write_procmailrc($filter->to_string(), get_filename()); } - if(isset($_POST['emails'])) // FORM emails + if(isset($_POST['emails'])) { // FORM emails if(!$mail_pool->handle_form()) echo "

".$philter->error()."

\n"; + $philter->write_procmailrc($filter->to_string(), get_filename()); + } } ?>