Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

set/get header?

Quote Reply
set/get header?
Hi,
I used the following statements in "gm2.2.4/incoming.pl" just before "# Insert the email" to get "X-Spam-Score" header. Its is not working in gm3.01. Could you please give some directions?

my $X_Spam_Score = $mail->top_part->get('X-Spam-Score') || 0; #get score from header
$mail->top_part->set('X_Spam_Score', $X_SPam_Score) ; # just confirming - removed later


Both worked in gm2.2.4 but wouldn't in gm3.0.1. Please help.
thank you, pyc
Quote Reply
Re: [pyc] set/get header? In reply to
Hi,
Thanks for your attentions. I have it working as before. I did move the code to the right position/place.
thanks, pyc