Re: [Exim] eximstats

Top Page
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: robert rotman
CC: exim-users
Subject: Re: [Exim] eximstats
> > 1 4174 heather <sales@???>

Here is my patch to show (for destinations) the email address and not just
the username.

This is on eximstats, size 21101, included with Debian Exim package
3.12-7, with this last date in the eximstats history as shown
within the eximstats script: 1999-11-12.

--- /usr/sbin/eximstats Tue Mar 21 15:59:20 2000
+++ eximstats   Mon Nov 13 12:33:37 2000
@@ -523,7 +523,11 @@
       {
       $host = "local";
       my($rest) = substr($_,40);
-      if (($user) = split(($rest =~ /</)? ' <' : ' ', $rest))
+# 13/Nov/2000 - reed - show whole domain name
+#      if (($user) = split(($rest =~ /</)? ' <' : ' ', $rest))
+      if ($rest =~ /(.* <.*>)/) { $user = $1; }
+      else { ($user) = split(' ', $rest); }
+      if ($user)
         {
         if ($user =~ /^[\/|]/)
           {



  Jeremy C. Reed
....................................................
     BSD software, documentation, resources, news...
     http://bsd.reedmedia.net/