Matt Sergeant wrote:
On 4 Nov 2005, at 13:11, Anilkumar wrote:
Deal All & John,
Now i am again struck. No i need list of E-mail id
in To, CC, and BCC.
if i get a single list then its good, individual list
is also okay.
i also need subject of mail from plugin.
please give me variable name for finding out these and
where to write the plugin to get proper values.
John, Thanks in Advance.
Pretty much these values will be in
$plugin->qpsmtpd->transaction->recipients (as Qpsmtpd::Address
objects), though you could go looking in the headers of the email -
but Bcc should never be seen, and To/CC may contain entries that
aren't in the list of local recipients (because they got delivered
elsewhere).
Hard to say what you should look at without knowing what it is you
want to do.
If I hand off a list of recipients to qmail using the
same method as qmail-queue, the recipient's
source will show "To: undisclosed recipients" if
there is a bcc. qmail must be doing something
with the bcc header, because I passed it a simple
string of [EMAIL PROTECTED], not any
[EMAIL PROTECTED]
If I bcc to three local imap boxes, that goes from
qpsmtpd via lmtp as three separate messages,
and in their source, "To: undisclosed recipients"
and no bcc list visible, without any effort to
do anything with bcc/cc in my queue plugin. I know
perl Net::LMTP does not remove anything. You
probably don't need to worry about those, just
use $transaction->recipients.
-Bob