[Users] That won't work.

Ralf Mardorf kde.lists at yahoo.com
Tue Oct 13 09:24:53 CEST 2020


On Tue, 13 Oct 2020 09:14:41 +0200, Ralf Mardorf wrote:
>>The last section of this webpage 
>>
>> https://www.claws-mail.org/faq/index.php/Templates
>>
>>shows an example:
>>
>>  |p{echo -n `echo '%t%c'|grep -o '[a-zA-Z0-9]*@domain.com'`}
>>
>>I would expect that the syntax is the one expected/supported by
>>Claws.  
>
>[rocketmouse at archlinux ~]$ echo "foo at domain.com; rm -i /tmp/*;
>bar at domain.com; Lorem ipsum" |grep -o '[a-zA-Z0-9]*@domain.com'
>foo at domain.com bar at domain.com
>
>Neither "rm -i /tmp/*", nor "Lorem ipsum" does match, only the
>addresses do match.

Let alone that matches don't get executed by grep.

To execute the output of grep, you need to {mis,}use a workaround such
as

[rocketmouse at archlinux ~]$ $(echo "foo at domain.com; rm -i /tmp/*; bar at domain.com; Lorem ipsum" |grep -o '[a-zA-Z0-9]*@domain.com')
bash: foo at domain.com: command not found


More information about the Users mailing list