module MaildropSerializator def serialize_to_file mail_drop_filter = File.new(self.mail_filter_path, "w") for filter in filters mail_drop_filter << "# filter '#{filter.name}'\n" mail_drop_filter << "if (#{filter_expressions(filter)})\n" mail_drop_filter << "{\n" mail_drop_filter << " exception {\n" mail_drop_filter << " to #{dest_folder(filter)}\n" mail_drop_filter << " }\n" mail_drop_filter << "}\n" end mail_drop_filter.close() end private def dest_folder(filter) '$DEFAULT/'<