--- joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 21:04:34 1.137 +++ joko/doc/SampleTasks/joko_2003-03.twingle 2003/03/23 21:34:21 1.138 @@ -10,7 +10,7 @@ @sequence meta @document-history @cvs-info - $Id: joko_2003-03.twingle,v 1.137 2003/03/23 21:04:34 joko Exp $ + $Id: joko_2003-03.twingle,v 1.138 2003/03/23 21:34:21 joko Exp $ Revision 1.93 2003/03/14 14:55:57 joko @@ -2313,4 +2313,47 @@ Global symbol "$self" requires explicit package name at /data/libs/nfo/perl/libs/Mail/Audit/Dispatch.pm line 194. Compilation failed in require at /usr/local/bin/dispatchmail line 37. BEGIN failed--compilation aborted at /usr/local/bin/dispatchmail line 37. - \ No newline at end of file + +x added more verboseness to dispatchmail if rules-file has syntax-errors (hard to debug - sorry...) + #> su joko_mail + #> cd ~ + #> echo test | mail -s test joko + #> tail -f Mail/.dispatchmail.log + ---------------------------------------- TRACE ---------- + From: Mail Delivery Subsystem + To: postmaster + Subject: Postmaster notify: see transcript for details + ---------------------------------------- TRACE ---------- + RULES: Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc". + ERROR: ERROR: Delivery failed, '/home/joko/virtual/joko_mail/.dispatchmailrc' had syntax errors: + syntax error at (eval 6) line 1, near "/home/joko" + + Forwarding delivery to next handler in queue (probably /var/spool/mail). + #> tail -f Mail/.dispatchmail.log + ---------------------------------------- TRACE ---------- + From: joko_mail@netfrag.org + To: joko@quepasa.netfrag.org + Subject: test + ---------------------------------------- TRACE ---------- + RULES: Loading from "/home/joko/virtual/joko_mail/.dispatchmailrc". + RULES: Running Perl sub "rules::dispatch". + ACCEPT: /home/joko/virtual/joko_mail/Mail/SORTED/me2myself + +i old code from /home/service/virtual/gateway/.dispatchmailrc + if ($to =~ /links-computing/) { + print "COPY", "\n"; + #$self->copy('Newsgate', 'alt.test'); + $self->copy('Newsgate', 'nfo.links.computing'); + #my $prg = $0; + #my $prg = '/data/opt/dispatchmail/bin/dispatchmail'; + #my $prg = '/etc/mail/smrsh/dispatchmail'; + #my $pipeTo = $prg . ' --mode=mail2news --thread=alt.test --base=/home/collector'; + #$self->report("PIPE: " . $pipeTo); + #$incoming->pipe($pipeTo); + } + +o monitor: + o /home/service/virtual/gateway/.mail-delivery_errors.log + o /home/service/joko_mail/.mail-delivery_errors.log + o /home/service/joko_mail/Mail/.mail-delivery.log +