Hi

On Fri, 13 Jan 2006, Mark Lijftogt wrote:

> Date: Fri, 13 Jan 2006 20:21:50 +0100
> From: Mark Lijftogt <[EMAIL PROTECTED]>
> 
> I'm in the unlucky position to be searching for a possible solution for
> a header issue that a java application is giving me. This java
> application POP's it's email to distribute it later on. Now, in most
> cases this goes without a hitch, except when the adress on which the
> java application checks is bcc'ed.
> 
> For this reason the coders decided it was a wise step to push the issue
> forward to the admins, requestion for every e-mail that passes on thrue
> a X-evelope-to: header, with the recepient after that.
> 
> Now, I'm unsure how to approach this.. or how I could approach this, but
> more important.. how I should approach this. header_checks and UCE rules
> alike, in the duration that I was reading I'm unsure if that would be
> the road to take (and a "deadline" is coming insight rather quickly).
> 
> Any pcre or other regex option availible that ADD's a headerline?

Unfortunately it is not clear from your description how the mail is being 
handled.  When you say "This java application POP's it's email", is it 
always POPing from a single mailbox, or could it POP from various 
mailboxes?  Anyway, if you just want to add a header when you know the 
envelope recipient, just pipe the message through this filter:

        formail -A "X-envelope-to: $recipient"

If the recipient is not defined then that is another story . . .  

Regards

Jim Holland
System Administrator
MANGO - Zimbabwe's non-profit e-mail service



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to