You cannot read the BCC field as it does NOT exist in the message headers.
The TO: and FROM: fields do, but the BCC: field does not. It would make a
mockery of the Blind Carbon Copy if the other recipients could simply read
that information out of the header.


As Danny pointed out:
"What you have to do is this, if the message is going into James first, i.e.
it is out-going, you can see the addresses to which it has been sent with
the SMTP RCPT TO: command by using Mail.getRecipients()"


Therefore you will never see the BCC field at all!

-- Jason 

-----Original Message-----
From: sriram [mailto:[EMAIL PROTECTED] 
Sent: 14 September 2003 11:40
To: 'James Users List'
Subject: RE: Knowing BCC addresses

JAMES is infact recognizing the email (when a BCC address is the one to be
handled by JAMES). I have a mailet that is fired when ever a new mail is
recd. at JAMES.
The mailet is being fired when the mail contains an address being handled by
JAMES in BCC. But the BCC address is not being recognized by the method
getAllRecipients().

When I use message.getAllRecipients(), it's getting only TO and CC addresses
- it doesn't get BCC address.

I tried with message.getRecipients(Message.RecipientType.BCC), but still the
BCC address is not being read.

Any clue on how to read BCC addresses? Pl. inform.

Sriram



-----Original Message-----
From: sriram [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 14, 2003 1:46 PM
To: 'James Users List'
Subject: RE: Knowing BCC addresses


Jason,

Thanks for the URL.

It says "If it is incoming to your server then the information doesn't
exist, unless more than one of the recipients are handled by this server."

So, is there no way that JAMES can recognize the mails from BCC? How are
other mail servers handling this? 

For ex., if I send a mail:
TO: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
BCC: [EMAIL PROTECTED]

Then yahoo.com definetely delivers the message (recognizing the BCC address
[EMAIL PROTECTED]).

How to make JAMES work in similar way? Should there be any change in
config.xml? Any clue?

Rgds,
Sriram

-----Original Message-----
From: Jason Webb [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 13, 2003 9:07 PM
To: 'James Users List'
Subject: RE: Knowing BCC addresses


http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
e.org&msgId=997735

-- Jason



> -----Original Message-----
> From: sriram [mailto:[EMAIL PROTECTED]
> Sent: 13 September 2003 14:29
> To: 'James Users List'
> Subject: Knowing BCC addresses
> 
> 
> Hi,
> 
> I have an email in which ONLY "BCC" address is being handled by JAMES 
> - TO and CC are not being handled by JAMES.
> 
> A mailet is fired when ever a mail is received at JAMES. But this 
> occurs only for TO and CC fields - not for BCC. JAMES is not able to 
> recognize that mail (because BCC information does not exist).
> 
> Any clue how to solve this? Pl. inform.
> 
> Regards,
> Sriram
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to