Hi Patrick,

This does not work for setups that don't use fetchmail: mail received
through smtp and delivered locally would be counted twice.

Cheers
David

On Sat, May 26, 2007 at 17:56:15 +0200, Patrick Ringl wrote:
> Hello,
> 
> once a user uses a mail-retrieval tool like fetchmail in conjunction with a 
> MTA like postfix for local mail distribution
> the mail will be sent to a local user's mailbox and thus should be considered 
> as 'mail receiving'.
> 
> Without this patch the mails would just stay unaccounted for the graphs.
> 
> Signed-off-by: Patrick Ringl <[EMAIL PROTECTED]
> 
> --
> 
> 
> --- mailgraph.old     2007-05-26 17:47:14.000000000 +0200
> +++ mailgraph 2007-05-26 15:06:46.000000000 +0200
> @@ -510,6 +510,15 @@
>                       if($text =~ /\bstatus=bounced\b/) {
>                               event($time, 'bounced');
>                       }
> +                     #
> +                     # Once a user uses a mail-retrieval tool like fetchmail 
> in conjunction with a MTA like postfix for local mail distribution
> +                     # the mail will be sent to a local user's mailbox and 
> thus should be considered as 'mail receiving'.
> +                     #
> +                     # Without this patch the mails would just stay 
> unaccounted for the graphs.
> +                     #
> +                     elsif($text =~/\bstatus=sent\b/) {
> +                           event($time, 'received');
> +                        }
>               }
>               elsif($prog eq 'smtpd') {
>                       if($text =~ /^[0-9A-F]+: client=(\S+)/) {
> 
> 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426137


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to