Re: Format specifiers: partial expansion + modifier

2023-04-28 Thread Thomas Bohl

Hello,


I was wondering if it is possible to use partial expansions together
with format modifiers in smtpd.conf. For example, I'd like to reduce an
email with a format like

-+z...@example.org

to



I've tried the following variations:

%{sender.user[5:]:strip}
%{sender.user:strip[5:]}
%{%{sender.user[5:]}:strip}


I tried many more. I don't think it is possible to combine substrings 
with modifiers.




Format specifiers: partial expansion + modifier

2023-04-27 Thread Johannes Thyssen Tishman
Hi all,

first message to this list, so hope this works :)

I was wondering if it is possible to use partial expansions together
with format modifiers in smtpd.conf. For example, I'd like to reduce an
email with a format like

-+z...@example.org

to



I've tried the following variations: 

%{sender.user[5:]:strip}
%{sender.user:strip[5:]}
%{%{sender.user[5:]}:strip}

However I'm still getting "... Mailing list expansion problem ...". I
know I can work around this by using %{sender.user[5:-5]} but the 
part is usually way longer and it feels hardcoded/hacky. Additionally,
if the sender address changes in the slightest this would expand to
something different.

Any help would be appreciated. Thank you!


Kind regards,
Johannes

-- 
Johannes Thyssen Tishman
https://thyssentishman.com