dovecot - How to replace a character by another in a variable -




i want know if there way replace character in variable. example replacing every dots underscores in string variable.

i haven't tried it, based on variables specification, way i'd try approach try match on text before , after dot, , make new variables based on matches. like:

set "value" "abc.def"; if string :matches "${value}" "*.*" {     set "newvalue" "${1}_${2} } 

this will, of course, match on single period because sieve doesn't include looping structures. while there's regex match option, i'm not aware of regex replacement sieve extensions.

another approach complex mail filtering can dovecot (if need loops , have full access mail server) dovecot-specific extensions vnd.dovecot.pipe allows mail administrator define full programs (written in whatever language 1 wishes) process mail on way through.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -