5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] How to put the value ...
FromSent OnAttachments
Vini EngelSep 26, 2006 8:02 am 
Sam VarshavchikSep 26, 2006 3:20 pm 
Vini EngelSep 27, 2006 7:51 am 
Devin RubiaSep 27, 2006 9:34 am 
Vini EngelOct 2, 2006 3:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] How to put the value of two variables into a single variable?Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Sep 26, 2006 3:20:05 pm
List:net.sourceforge.lists.courier-maildrop

Vini Engel writes:

Hi guys,

I am trying to concatenate the subject of an email message with spamassassin's score. So far I have managed to put the the score in a variable and the actual subject in another but merging the subject variable with the score variable isn't working.

"Isn't working" is completely meaningless, and fails to carry any hint as to the actual problem.

Below is my code:

if (/score=(.*?)\s/) { SCORE=$MATCH1

if (/^Subject: !.*/:h) { SUBJECT="$MATCH2 $SCORE" xfilter "reformail -I \"Subject: $SUBJECT\"" } }

Any hints on what I am missing will be greatly appreciated!

The only thing you're probably missing is that you are using an old version of maildrop, and should update to the current version, that uses an updated regexp syntax.

Other than that, everything looks correct, and "isn't working" is not a very useful problem report.