Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Variables in Exim

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


sharma.s at net4

Nov 16, 2006, 9:21 PM

Post #1 of 2 (426 views)
Permalink
Variables in Exim

Hi,

Is there any way for using variables into exim filter or into
configuratuin file ? Like i need to rewrite Subject for a mail. I want
to save Subject into Variable, then remove and then want to insert
subject with [SPAM] tag.

I done this by a diffrent way,

First, Saved Subject into new header X-Subject
Second, Removed Subject header
Third, Added Subject with [SPAM] tag

This is wrking perfectly well and a temporary header is used in place of
variable. However i m looking for usage of any variable (Quick Way)
rather with tempraory header !!

if $message_headers contains "X-DSPAM-Result:"
then
headers add "X-Subject: $h_subject"
headers remove Subject
headers add "Subject: [SPAM] $h_X-Subject"
unseen
endif

Please help !! Thanks


--
Sachin Sharma
Sr. Engineer Systems (Linux)
Net4India Ltd.

D-25
Sector 3
Noida-201301
INDIA

Tel: 0120-5323500
Fax: 0120-5323520
URL: http://www.net4.in
------------------------------------------------------------------------
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.
------------------------------------------------------------------------


--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/


wbh at conducive

Nov 16, 2006, 9:51 PM

Post #2 of 2 (403 views)
Permalink
Re: Variables in Exim [In reply to]

Sachin Sharma wrote:
> Hi,
>
> Is there any way for using variables into exim filter or into
> configuratuin file ? Like i need to rewrite Subject for a mail. I want
> to save Subject into Variable, then remove and then want to insert
> subject with [SPAM] tag.
>
> I done this by a diffrent way,
>
> First, Saved Subject into new header X-Subject
> Second, Removed Subject header
> Third, Added Subject with [SPAM] tag
>
> This is wrking perfectly well and a temporary header is used in place of
> variable. However i m looking for usage of any variable (Quick Way)
> rather with tempraory header !!
>
> if $message_headers contains "X-DSPAM-Result:"
> then
> headers add "X-Subject: $h_subject"
> headers remove Subject
> headers add "Subject: [SPAM] $h_X-Subject"
> unseen
> endif
>
> Please help !! Thanks
>
>

acl_m(x) variables travel into the queue with the message headers and body, and
may be called by routers.

CAVEAT; on leaving the acl_smtp_data phase, there is only ONE SET of these (per
message, not per-recipient).

Bill



--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.