Renaud Allard wrote: > It works very well with the -byedomain flag (or -bydomain). > > I get this kind of output (amongst the rest): > Top 50 sending edomains by volume [...]
Yes, but that won't show statistics for local recipient domains, (local deliveries) what would be a major point of interest here. The -pattern also wouldn't do the trick, as capturing is not supported, (AFAICS from the source) so one would have to set up one expression for each local domain. I think there could be an additional switch, like -localbyedomain. It may not seem very useful, as -byedomain exists, but it will provide a list of local domains only, so I think some people (like me) may want to use it. I can try to provide a patch if I manage to understand the code enough. Comments welcome. lg, daniel PS: The eximstats source is really great, I can't decide which part I like most. But the #IFDEFs are definitely one of my favourites. ;o) PPS: At line 2079 of the snapshot eximstats there's: my($parent) = $_ =~ /(<[EMAIL PROTECTED]@?[^>]*>)/; I think it should be reduced to just: / (<.+?>) / This might look way too simple, but actually it is quite clever, and the best we can get without too much effort. It doesn't even get tricked by angle brackets or "@" signs in local-parts, like the original solution.[0] It still fails on double quoted local-parts with " <" or "> " sequences, but due to the exim logging style I can't see how this could be avoided: => tst <[EMAIL PROTECTED]> bar <tst\ \<[EMAIL PROTECTED]>\ [EMAIL PROTECTED]> F=... or => tst <[EMAIL PROTECTED]> bar <"tst <[EMAIL PROTECTED]> bar"@example.com> F=... How can we tell where the local part ends? (Think about local-parts that contain strings like " F=<"...) This also affects the split a few lines above in the source. Of course one may argue, that these local-parts are not THAT common. [0] try this: perl -lpe'$_.=join"","\nold: ",/(<[EMAIL PROTECTED]@?[^>]*>)/,"\nnew: ",/ (<.+?>) /' on some of those lines: test2test <[EMAIL PROTECTED]> F=<[EMAIL PROTECTED]> test2test <test2test> F=<[EMAIL PROTECTED]> test<2test <test\<[EMAIL PROTECTED]> F=<[EMAIL PROTECTED]> test<2test <"test<2test"@example.com> F=<[EMAIL PROTECTED]> [EMAIL PROTECTED]> <[EMAIL PROTECTED]>@example.com> F=<[EMAIL PROTECTED]> [EMAIL PROTECTED]> <"[EMAIL PROTECTED]>"@example.com> F=<[EMAIL PROTECTED]> test<[EMAIL PROTECTED]> <test\<[EMAIL PROTECTED]>@example.com> F=<[EMAIL PROTECTED]> test<[EMAIL PROTECTED]> <"test<[EMAIL PROTECTED]>"@example.com> F=<[EMAIL PROTECTED]> -- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
