Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/07/2007, à 20:33

pierrot1969

postfix rewrite field if the mail subject is null

I everyone,
I would like to rewrite the field subject if is is null with postix
example:
from:toto@yahoo.fr
subject:
to:titi@mydomain.com

and i would this
from:toto@yahoo.fr
subject:mail without subject
to:titi@mydomain.com
have you an idea.
I tried with .procmailrc but i think my syntax is not correct.

Thanks a lot.;

Hors ligne

#2 Le 10/07/2007, à 20:51

Uggy

Re : postfix rewrite field if the mail subject is null

Someting like this with header_checks

/^Subject:( )*$/   REPLACE Subject: mail without subject

(not tested)
http://www.postfix.org/header_checks.5.html

Hors ligne