[exim] exim filter question regarding saving a copy of the m…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Oliver Howe
Data:  
Para: exim-users
Asunto: [exim] exim filter question regarding saving a copy of the message if sent via SMTP

I allow my users to send email via webmail or SMTP.
If they send through the SMTP server and they have their preferences set to
"send and save" in the database then they have a filter file which says

# Exim filter  THIS FILE IS AUTOMATICALLY GENERATED BY sas.pl
if error_message then finish endif
if $header_From: matches "thisuser@thisdomain\\\\.co\\\\.uk" then
        unseen save /mnt/data/diskxx/service/mail/521/thisdomain.co.uk/username/.Sent/
endif
finish



which works fine, unless the user sends to more than one person (either in the To field or the Cc filed), if he does then he gets more than one copy of the same message saved in his Sent folder. each user has a maildirectory in maildir format.

How can I change this filter so that it only saves the message once if they send to more than one person?

Thanks,

Oliver

--


Oliver Howe

Senior Systems Administrator



Tel: +44 (0) 79 7420 6484

Fax: +44 (0) 20 7664 7878



Spider Networks - the power behind interactive web communications - www.spider-networks.net




--
Confidentiality Notice: This email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. General Statement: Any statements made, or intentions expressed in this communication, may not necessarily reflect the view of Spider Networks, that no content herein may be held binding upon Spider Networks or any associate or any associated company unless confirmed by the issuance of a formal contractual document or purchase order.