[exim] filters, pipe, and link

Pàgina inicial
Delete this message
Reply to this message
Autor: xavier
Data:  
A: exim-users
Assumpte: [exim] filters, pipe, and link
Hi,

on delivery of a message, i'd like to link it from another
directory :

lists/zsh/new/1092978288.H120853P1872.albert.com ->
xlists/zsh/new/1092978288.H120853P1872.albert.com


i believe there is not the possibility for a filter to know the
name of the file it has been delivered to ...

so i'm piping the message to a perl program in charge of finding
it and linking it.. :

if $header_subject: contains "zsh"
then
     save /usr/local/mail/lists/Maildir/zsh
     pipe "message-link.pl -s /usr/local/mail/lists/Maildir/zsh -e /usr/local/mail/xlists/Maildir/zsh"
endif


(not sure about the syntax of the filter, but you get the idea)


is there some other way to play with the file itself instead of the
content of a message in the filters ?

is there any other better way to achieve what i want to do ?

thanks.


--
xavier