Jakob Hirsch wrote:
> 
> It's a valid argument. And it's not that hard to do with Exim (topic!)
> itself. This is what I use:
> 
> 
> system filter:
[snip]

Or, if you prefer routers:

remote_list:
  debug_print = "R: remote_list for [EMAIL PROTECTED]"
  driver = redirect
  domains = ! +local_domains
  require_files = /home/$authenticated_id/.list-folders
  condition = ${if and {{def:authenticated_id}{!def:h_Reply-To:}} \
    {${lookup [EMAIL PROTECTED] lsearch \
    {/home/$authenticated_id/.list-folders}{true}{false}}}}
  headers_add = Reply-To: <[EMAIL PROTECTED]>
  data = [EMAIL PROTECTED]
  redirect_router = dnslookup

local_list:
  debug_print = "R: local_list for [EMAIL PROTECTED]"
  driver = redirect
  domains = +local_domains
  check_local_user
  directory_transport = local_maildir
  require_files = $home/.list-folders
  condition = ${if def:h_List-Post:}
  address_data = ${if match{$h_List-Post:}{<mailto:(.+)>}{$1}fail}
  data = ${lookup{$address_data}lsearch{$home/.list-folders} \
    {$home/Maildir/$value/}fail}
  headers_add = ${if def:h_Reply-To: \
    {X-Orig-Reply-To: $h_Reply-To:\nReply-To: <$address_data>} \
    {Reply-To: <$address_data>} }
  headers_remove = ${if def:h_Reply-To: {Reply-To}{}}
  skip_syntax_errors
  syntax_errors_to = [EMAIL PROTECTED]
  syntax_errors_text = Error in ~/.list-folders.

$ more ~/.list-folders
[EMAIL PROTECTED]: .Lists.slim-developers
[email protected]: .Lists.slim-discuss
[email protected]: .Lists.slim-unix
[email protected]: .Lists.exim-dev
[email protected]: .Lists.exim-users
[email protected]: .Lists.debian-announce
[email protected]: .Lists.debian-announce
[email protected]: .Lists.debian-announce
[EMAIL PROTECTED]: .Lists.svn-users
[EMAIL PROTECTED]: .Lists.svn-dev
[EMAIL PROTECTED]: .Lists.subclipse-users
[EMAIL PROTECTED]: .Lists.subclipse-dev
[EMAIL PROTECTED]: .Lists.wikitex-l
[EMAIL PROTECTED]: .Lists.sare-users

- Marc

-- 
## 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/

Reply via email to