Changeset 199
- Timestamp:
- 09/15/07 20:21:37 (16 months ago)
- Location:
- trunk
- Files:
-
- 8 modified
-
ChangeLog (modified) (1 diff)
-
includes/config.inc.default.php (modified) (1 diff)
-
includes/localization/cpves.pot (modified) (8 diffs)
-
includes/localization/de_DE.UTF-8/LC_MESSAGES/cpves.po (modified) (8 diffs)
-
includes/sites/domain_del.php (modified) (1 diff)
-
includes/sites/list_del.php (modified) (1 diff)
-
mail_system.sql (modified) (19 diffs)
-
web/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r198 r199 1 CpVES 0.08 YYYY-MM-DD- Jonas Genannt - <jonas.genannt@brachium-system.net>1 CpVES 0.08 2007-09-15 - Jonas Genannt - <jonas.genannt@brachium-system.net> 2 2 o Added: policyd-weight per user/domain configuration 3 3 o Added: greylisting per user/domain configuration 4 4 o Added: some logging to listMailer.pl 5 5 o Improved: mailinglists feature 6 o Imrpoved: delete domain and delete lists 6 7 o Improved: some code cleanup 7 8 o Improved: display username only if an user is logged in (#34) -
trunk/includes/config.inc.default.php
r198 r199 85 85 "autoresponder_send", "email_options","fetchmail", 86 86 "mailarchive","mailfilter","spamassassin","spamassassin_learn","autoresponder_xheader"); 87 $config['cpves_version']="0.08 -SVN";87 $config['cpves_version']="0.08"; 88 88 require_once(ROOT . '/includes/func.inc.php'); 89 require_once(ROOT . '/includes/select_labels.inc.php');90 89 ?> -
trunk/includes/localization/cpves.pot
r186 r199 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2007-09-1 0 18:39+0200\n"11 "POT-Creation-Date: 2007-09-15 18:57+0200\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 95 95 msgstr "" 96 96 97 msgid "options of %1" 98 msgstr "" 99 100 msgid "policyd-weight available" 101 msgstr "" 102 103 msgid "greylisting available" 104 msgstr "" 105 97 106 msgid "server" 98 107 msgstr "" … … 420 429 msgstr "" 421 430 431 msgid "email address is already on the list!" 432 msgstr "" 433 434 msgid "mailinglist" 435 msgstr "" 436 437 msgid "state" 438 msgstr "" 439 440 msgid "public" 441 msgstr "" 442 443 msgid "private" 444 msgstr "" 445 422 446 msgid "imap connection" 423 447 msgstr "" … … 517 541 518 542 msgid "not active" 543 msgstr "" 544 545 msgid "list" 546 msgstr "" 547 548 msgid "recipients" 549 msgstr "" 550 551 msgid "no recipients found" 552 msgstr "" 553 554 msgid "Do you want to delete this list?" 555 msgstr "" 556 557 msgid "mailinglist deleted!" 519 558 msgstr "" 520 559 … … 707 746 msgstr "" 708 747 709 msgid "recipients"710 msgstr ""711 712 msgid "public"713 msgstr ""714 715 msgid "private"716 msgstr ""717 718 748 msgid "deactivate mailinglist." 719 749 msgstr "" … … 776 806 msgstr "" 777 807 808 msgid "Mailinglist feature" 809 msgstr "" 810 811 msgid "activate mailinglists." 812 msgstr "" 813 814 msgid "deactivate mailinglists." 815 msgstr "" 816 817 msgid "Policyd-Weight" 818 msgstr "" 819 820 msgid "activate policyd-weight." 821 msgstr "" 822 823 msgid "deactivate policyd-weight." 824 msgstr "" 825 826 msgid "Greylisting" 827 msgstr "" 828 829 msgid "activate greylisting." 830 msgstr "" 831 832 msgid "deactivate greylisting." 833 msgstr "" 834 778 835 msgid "activate CpVES webinterface." 779 836 msgstr "" … … 857 914 msgstr "" 858 915 916 msgid "recipient" 917 msgstr "" 918 919 msgid "add address to list" 920 msgstr "" 921 922 msgid "list is" 923 msgstr "" 924 859 925 msgid "fowardings" 860 926 msgstr "" … … 883 949 msgid "delete domain..." 884 950 msgstr "" 951 952 msgid "Once" 953 msgstr "" 954 955 msgid "Up to the second mail" 956 msgstr "" 957 958 msgid "Up to the third Mail" 959 msgstr "" 960 961 msgid "Up to the fourth Mail" 962 msgstr "" 963 964 msgid "Up to the fifth Mai" 965 msgstr "" 966 967 msgid "every mail" 968 msgstr "" -
trunk/includes/localization/de_DE.UTF-8/LC_MESSAGES/cpves.po
r186 r199 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2007-09-1 0 18:39+0200\n"11 "POT-Creation-Date: 2007-09-15 18:57+0200\n" 12 12 "PO-Revision-Date: 2007-09-04 21:21+0200\n" 13 13 "Last-Translator: Jonas Genannt <jonas@valentina.brachium-system.net>\n" … … 101 101 msgstr "HinzufÃŒgen" 102 102 103 #, fuzzy 104 msgid "options of %1" 105 msgstr "Einstellungen von %1" 106 107 #, fuzzy 108 msgid "policyd-weight available" 109 msgstr "Weiterleitung verfögbar" 110 111 #, fuzzy 112 msgid "greylisting available" 113 msgstr "Weiterleitung verfögbar" 114 103 115 msgid "server" 104 116 msgstr "Server" … … 434 446 msgstr "Beide X-Headerfelder werden benötigt!" 435 447 448 #, fuzzy 449 msgid "email address is already on the list!" 450 msgstr "E-Mailadresse schon vorhanden!" 451 452 #, fuzzy 453 msgid "mailinglist" 454 msgstr "Mailinglisten" 455 456 #, fuzzy 457 msgid "state" 458 msgstr "Speichern" 459 460 msgid "public" 461 msgstr "Ãffentlich" 462 463 msgid "private" 464 msgstr "Privat" 465 436 466 msgid "imap connection" 437 467 msgstr "IMAP Verbindung" … … 533 563 msgid "not active" 534 564 msgstr "Nicht aktiv" 565 566 #, fuzzy 567 msgid "list" 568 msgstr "Whitelist" 569 570 msgid "recipients" 571 msgstr "EmpfÀnger" 572 573 #, fuzzy 574 msgid "no recipients found" 575 msgstr "EmpfÀnger" 576 577 #, fuzzy 578 msgid "Do you want to delete this list?" 579 msgstr "Wollen Sie diese Weiterleitung wirklich löschen?" 580 581 #, fuzzy 582 msgid "mailinglist deleted!" 583 msgstr "Mailinglisten" 535 584 536 585 msgid "menu" … … 724 773 msgstr "Mailinglisten" 725 774 726 msgid "recipients"727 msgstr "EmpfÀanger"728 729 msgid "public"730 msgstr "Ãffentlich"731 732 msgid "private"733 msgstr "Privat"734 735 775 msgid "deactivate mailinglist." 736 776 msgstr "Mailingliste deaktivieren." … … 793 833 msgstr "Webmail deaktivieren." 794 834 835 #, fuzzy 836 msgid "Mailinglist feature" 837 msgstr "Mailinglisten" 838 839 #, fuzzy 840 msgid "activate mailinglists." 841 msgstr "Mailingliste aktivieren." 842 843 #, fuzzy 844 msgid "deactivate mailinglists." 845 msgstr "Mailingliste deaktivieren." 846 847 msgid "Policyd-Weight" 848 msgstr "" 849 850 #, fuzzy 851 msgid "activate policyd-weight." 852 msgstr "Weiterleitung aktivieren." 853 854 #, fuzzy 855 msgid "deactivate policyd-weight." 856 msgstr "Weiterleitung deaktivieren." 857 858 msgid "Greylisting" 859 msgstr "" 860 861 #, fuzzy 862 msgid "activate greylisting." 863 msgstr "Whitelisting aktivieren." 864 865 #, fuzzy 866 msgid "deactivate greylisting." 867 msgstr "Whitelisting deaktivieren." 868 795 869 msgid "activate CpVES webinterface." 796 870 msgstr "CpVES Webinterface aktivieren." … … 874 948 msgstr "E-Mailadresse wurde gelöscht." 875 949 950 #, fuzzy 951 msgid "recipient" 952 msgstr "EmpfÀanger" 953 954 #, fuzzy 955 msgid "add address to list" 956 msgstr "Neue Adresse hinzufÃŒgen" 957 958 msgid "list is" 959 msgstr "" 960 876 961 msgid "fowardings" 877 962 msgstr "Weiterleitungen" … … 900 985 msgid "delete domain..." 901 986 msgstr "Domain wird gelöscht..." 987 988 msgid "Once" 989 msgstr "Nur einmal" 990 991 msgid "Up to the second mail" 992 msgstr "Bis zur zweiten Mail" 993 994 msgid "Up to the third Mail" 995 msgstr "Bis zur dritten Mail" 996 997 msgid "Up to the fourth Mail" 998 msgstr "Bis zur vierten Mail" 999 1000 msgid "Up to the fifth Mai" 1001 msgstr "Bis zur fÃŒnften Mail" 1002 1003 msgid "every mail" 1004 msgstr "Bei jeder Mail" -
trunk/includes/sites/domain_del.php
r144 r199 67 67 $db->escapeSimple($_POST['did'])); 68 68 $db->query($sql); 69 69 $sql=sprintf("SELECT id FROM lists WHERE domainid='%d'", 70 $db->escapeSimple($_POST['did'])); 71 $result= &$db->query($sql); 72 while ($row=$result->fetchrow(DB_FETCHMODE_ASSOC)) { 73 $sql=sprintf("DELETE FROM list_recp WHERE id='%d'", 74 $db->escapeSimple($row['id'])); 75 $db->query($sql); 76 } 70 77 $sql=sprintf("DELETE FROM lists WHERE domainid='%d'", 71 78 $db->escapeSimple($_POST['did'])); -
trunk/includes/sites/list_del.php
r142 r199 49 49 $db->escapeSimple($_GET['id'])); 50 50 $db->query($sql); 51 $sql=sprintf("DELETE FROM list_recp WHERE id = %d", 52 $db->escapeSimple($_GET['id'])); 53 $db->query($sql); 51 54 } 52 55 -
trunk/mail_system.sql
r189 r199 1 1 -- phpMyAdmin SQL Dump 2 -- version 2. 6.2-Debian-3sarge32 -- version 2.9.1.1-Debian-3 3 3 -- http://www.phpmyadmin.net 4 4 -- 5 5 -- Host: localhost 6 -- Generation Time: Aug 25, 2007 at 02:18 AM7 -- Server version: 4.1.118 -- PHP Version: 4.3.10-226 -- Generation Time: Sep 15, 2007 at 08:13 PM 7 -- Server version: 5.0.32 8 -- PHP Version: 5.2.0-8+etch7 9 9 -- 10 10 -- Database: `mail_system` … … 25 25 `full_name` varchar(255) collate utf8_unicode_ci default NULL, 26 26 `cpasswd` varchar(255) character set utf8 NOT NULL default '', 27 `web_lang` varchar(8) collate utf8_unicode_ci NOT NULL, 27 28 PRIMARY KEY (`id`), 28 29 UNIQUE KEY `id` (`id`) 29 30 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 30 31 --32 -- Dumping data for table `adm_users`33 --34 35 INSERT INTO `adm_users` VALUES (1, 'admin', '', 1, 1, 'Superadmin', '$1$Ekjbn5PV$lTKL1k2IkDKzpneppf6Wx0');36 31 37 32 -- -------------------------------------------------------- … … 47 42 PRIMARY KEY (`id`) 48 43 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 49 50 --51 -- Dumping data for table `admin_access`52 --53 54 44 55 45 -- -------------------------------------------------------- … … 70 60 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 71 61 72 --73 -- Dumping data for table `autoresponder`74 --75 76 77 62 -- -------------------------------------------------------- 78 63 … … 90 75 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 91 76 92 --93 -- Dumping data for table `autoresponder_disable`94 --95 96 97 77 -- -------------------------------------------------------- 98 78 … … 108 88 KEY `email` (`email`) 109 89 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 110 111 --112 -- Dumping data for table `autoresponder_recipient`113 --114 115 90 116 91 -- -------------------------------------------------------- … … 129 104 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 130 105 131 -- 132 -- Dumping data for table `autoresponder_send` 133 -- 134 106 -- -------------------------------------------------------- 107 108 -- 109 -- Table structure for table `autoresponder_xheader` 110 -- 111 112 CREATE TABLE `autoresponder_xheader` ( 113 `id` int(11) NOT NULL auto_increment, 114 `email` int(11) NOT NULL, 115 `xheader` varchar(255) NOT NULL, 116 `value` varchar(255) NOT NULL, 117 PRIMARY KEY (`id`), 118 KEY `email` (`email`) 119 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 135 120 136 121 -- -------------------------------------------------------- … … 160 145 `p_fetchmail` tinyint(1) NOT NULL default '0', 161 146 `p_webinterface` tinyint(1) NOT NULL default '1', 147 `p_autores_xheader` tinyint(1) NOT NULL default '0', 148 `p_check_polw` tinyint(1) NOT NULL default '1', 149 `p_check_grey` tinyint(1) NOT NULL default '0', 150 `p_mlists` tinyint(4) NOT NULL default '0', 162 151 PRIMARY KEY (`id`), 163 152 UNIQUE KEY `dnsname_2` (`dnsname`) 164 153 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 165 166 --167 -- Dumping data for table `domains`168 --169 170 154 171 155 -- -------------------------------------------------------- … … 184 168 KEY `conf` (`conf`) 185 169 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 186 187 --188 -- Dumping data for table `email_options`189 --190 191 170 192 171 -- -------------------------------------------------------- … … 211 190 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 212 191 213 --214 -- Dumping data for table `fetchmail`215 --216 217 218 192 -- -------------------------------------------------------- 219 193 … … 228 202 `eto` text collate utf8_unicode_ci NOT NULL, 229 203 `access` tinyint(1) NOT NULL default '1', 204 `p_check_polw` tinyint(1) NOT NULL default '1', 205 `p_check_grey` tinyint(1) NOT NULL default '0', 230 206 PRIMARY KEY (`id`), 231 207 UNIQUE KEY `efrom` (`efrom`) 232 208 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 233 234 --235 -- Dumping data for table `forwardings`236 --237 238 209 239 210 -- -------------------------------------------------------- … … 247 218 `recp` varchar(100) default NULL, 248 219 KEY `listID` (`id`) 249 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 250 251 -- 252 -- Dumping data for table `list_recp` 253 -- 254 220 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 255 221 256 222 -- -------------------------------------------------------- … … 262 228 CREATE TABLE `lists` ( 263 229 `id` int(11) NOT NULL auto_increment, 264 `domainid` int(11) NOT NULL default '0',265 `address` varchar(80) NOT NULL default '',266 `access` enum('y','n') NOT NULL default 'y',267 `public` enum('y','n') NOT NULL default 'y',230 `domainid` int(11) NOT NULL, 231 `address` varchar(80) NOT NULL, 232 `access` tinyint(1) default '1', 233 `public` enum('y','n') NOT NULL, 268 234 PRIMARY KEY (`id`), 269 235 KEY `second` (`address`,`access`) 270 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 271 272 -- 273 -- Dumping data for table `lists` 274 -- 275 236 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 276 237 277 238 -- -------------------------------------------------------- … … 294 255 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 295 256 296 --297 -- Dumping data for table `mailarchive`298 --299 300 301 257 -- -------------------------------------------------------- 302 258 … … 316 272 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 317 273 318 --319 -- Dumping data for table `mailfilter`320 --321 322 323 274 -- -------------------------------------------------------- 324 275 … … 337 288 KEY `type` (`type`) 338 289 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 339 340 --341 -- Dumping data for table `sa_wb_listing`342 --343 344 290 345 291 -- -------------------------------------------------------- … … 360 306 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 361 307 362 --363 -- Dumping data for table `spamassassin`364 --365 366 367 308 -- -------------------------------------------------------- 368 309 … … 379 320 PRIMARY KEY (`id`) 380 321 ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 381 382 --383 -- Dumping data for table `spamassassin_learn`384 --385 386 322 387 323 -- -------------------------------------------------------- … … 412 348 `p_fetchmail` tinyint(1) NOT NULL default '0', 413 349 `p_webinterface` tinyint(1) NOT NULL default '1', 350 `p_autores_xheader` tinyint(1) NOT NULL default '0', 351 `mb_size` int(11) NOT NULL default '0', 352 `p_check_polw` tinyint(1) NOT NULL default '1', 353 `p_check_grey` tinyint(1) NOT NULL default '0', 414 354 PRIMARY KEY (`id`), 415 355 UNIQUE KEY `email` (`email`) 416 356 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 417 357 418 -- 419 -- Dumping data for table `users` 420 -- 421 CREATE TABLE `autoresponder_xheader` ( 422 `id` int(11) NOT NULL auto_increment, 423 `email` int(11) NOT NULL, 424 `xheader` varchar(255) NOT NULL, 425 `value` varchar(255) NOT NULL, 426 PRIMARY KEY (`id`), 427 KEY `email` (`email`) 428 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 429 ALTER TABLE `domains` ADD `p_autores_xheader` TINYINT( 1 ) NOT NULL DEFAULT '0'; 430 ALTER TABLE `users` ADD `p_autores_xheader` TINYINT( 1 ) NOT NULL DEFAULT '0'; 431 ALTER TABLE `users` ADD `mb_size` INT NOT NULL DEFAULT '0';432 ALTER TABLE `adm_users` ADD `web_lang` VARCHAR( 8 ) NOT NULL ; 358 -- -------------------------------------------------------- 359 360 -- 361 -- Table structure for table `smtpd_recipient_classes` 362 -- 363 364 365 DROP VIEW IF EXISTS smtpd_recipient_classes; 366 CREATE VIEW smtpd_recipient_classes AS SELECT email,if(p_check_polw=1,'check_polw','') AS polw,if(p_check_grey=1,'check_grey','') AS grey FROM users WHERE access=1 AND p_check_polw!=0 AND p_check_polw!=0 UNION SELECT efrom,if(p_check_polw=1,'check_polw','') AS polw,if(p_check_grey=1,'check_grey','') AS grey FROM forwardings WHERE access=1 AND p_check_polw!=0 AND p_check_polw!=0; 367 368 INSERT INTO `adm_users` ( `id` , `username` , `passwd` , `access` , `manager` , `full_name` , `cpasswd` , `web_lang` ) 369 VALUES ( 370 NULL , 'admin', '$1$Ekjbn5PV$lTKL1k2IkDKzpneppf6Wx0', '1', '1', NULL , '', '' 371 ); 372 -
trunk/web/index.php
r196 r199 202 202 $site="main"; 203 203 } 204 require_once(ROOT . '/includes/select_labels.inc.php'); 204 205 require_once(ROOT . "/includes/sites/" . $site . ".php"); 205 206 $smarty->assign('template', $site . ".tpl");
