Re: [exim] rewriting + ${sg} + $h_stuff magic

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Arkadiusz Miskiewicz
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] rewriting + ${sg} + $h_stuff magic
On Friday 16 December 2005 17:33, Tony Finch wrote:
> On Fri, 16 Dec 2005, Arkadiusz Miskiewicz wrote:
> > "${sg{$h_HTTP-Posting-URI:}{\N([a-zA-Z0-9-.]+\N):(.+)}{\$1}}" F
>
> If you put " around a string expansion, you need to double the \ because
> of the extra layer of escaping.


I've ended with working solution, thanks!

http@???      "$reply_address"                F
http@???     "${lookup mysql{SELECT CONCAT(login, '@myhost.pl') FROM 
virtual v LEFT JOIN user u ON v.owner=u.id WHERE 
name='${sg{$h_HTTP-Posting-URI:}{\\N([a-zA-Z0-9-.]+):(.+)\\N}{\\$1}}' OR 
alias = '${sg{$h_HTTP-Posting-URI:}{\\N([a-zA-Z0-9-.]+):(.+)\\N}{\\$1}}'}
{<$value>}{$reply_address}}"   F


> Tony.
> --
> <fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
> N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
> \N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}


-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/