postgrey.patch 729 B

1234567891011121314151617181920
  1. Index: postgrey
  2. --- postgrey.orig 2004-09-08 22:25:50 +0200
  3. +++ postgrey 2004-12-08 16:35:48 +0100
  4. @@ -32,6 +32,7 @@
  5. if(open(CLIENTS, $f)) {
  6. while(<CLIENTS>) {
  7. s/^\s+//; s/\s+$//; next if $_ eq '' or /^#/;
  8. + s/\s+#.*$//;
  9. if(/^\/(\S+)\/$/) {
  10. # regular expression
  11. push @whitelist_clients, qr{$1}i;
  12. @@ -68,6 +69,7 @@
  13. if(open(RECIPIENTS, $f)) {
  14. while(<RECIPIENTS>) {
  15. s/^\s+//; s/\s+$//; next if $_ eq '' or /^#/;
  16. + s/\s+#.*$//;
  17. my ($user, $domain) = split(/\@/, $_, 2);
  18. if(/^\/(\S+)\/$/) {
  19. # regular expression