[Mimedefang] Adding Recipients to X-Recipients Header
    David F. Skoll 
    dfs at roaringpenguin.com
       
    Tue Jun 21 22:11:17 EDT 2011
    
    
  
On Wed, 22 Jun 2011 03:06:39 +0200
Marcus Schopen <lists at localguru.de> wrote:
> I add the following lines to filter_end
> 
>     foreach $recip(@Recipients) {
>      if ($recip =~ /<.*\@test\.com>$/i) {
>       action_add_header("X-Orig-Rcpts", "$recip");
>      }
>     }
Or if you only want one header:
action_add_header('X-Orig-Rcpts', join(', ', grep { /\@test\.com>$/i } @Recipients));
(Untested :))
Regards,
David.
    
    
More information about the MIMEDefang
mailing list