james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajender Vallapureddy <rajen...@hnexus.com>
Subject Re: bounce mail messages
Date Wed, 16 Jan 2013 08:44:33 GMT
Hi Eric & Sai,

Thank for your help. :)

Regards,
Rajender

On Wed, Jan 16, 2013 at 12:11 PM, Eric Charles <eric@apache.org> wrote:
> Hi Sai,
> Glad to read it is solved.
> Thx, Eric
>
>
> On 15/01/2013 20:00, Saibabu Vallurupalli wrote:
>>
>> Eric,
>>
>> Don't feel sorry, I know how much busy you are. I picked up on Rajender's
>> code and helped him. It is a minor issue inside configuration as well as
>> the code.
>>
>> Its been taken care. Thank you so much for your support.
>>
>> Thanks,
>> Sai
>>
>>
>> On Tue, Jan 15, 2013 at 2:51 PM, Eric Charles <eric@apache.org> wrote:
>>
>>> Hi Rajender,
>>>
>>> I read, but I really have not cycles for now to dig into your code.
>>> Sorry for this... maybe someone else here can help?
>>>
>>> Thx, Eric
>>>
>>>
>>> On 15/01/2013 09:23, Rajender Vallapureddy wrote:
>>>
>>>> Hi Eric,
>>>>
>>>> The problem I am seeing is if I use MimeMultipartReport, I am unable
>>>> to get any text in the body part.
>>>>
>>>> I tried using MimeMultipart my mail is coming in as
>>>> disposition-notification and again If I setSubType to report, I am
>>>> unable to get any text in the body part.
>>>>
>>>> Also, the messageType is either going as unknown or IMF. What
>>>> parameter/attribute I should look at to set messageType to dsn.
>>>>
>>>> What i need is just to send a failed report and ghost the original mail.
>>>>
>>>> I am using james 3 beta4 version.
>>>>
>>>>                                              MimeMultipart multipart =
>>>> new
>>>> MimeMultipart("mixed");
>>>>
>>>> multipart.setSubType("report")
>>>> **;
>>>>
>>>>                                              MimeBodyPart part = new
>>>> MimeBodyPart();
>>>>
>>>> part.setContent(messageString, "message/rfc822");
>>>>
>>>> part.setHeader(RFC2822Headers.
>>>> **CONTENT_TYPE,
>>>> "delivery-status");
>>>>
>>>> multipart.addBodyPart(part);
>>>>
>>>>                                              newMail.getMessage().**
>>>> setContent(multipart);
>>>>                                              newMail.getMessage().**
>>>> setHeader("report-type",
>>>> "delivery-status");
>>>>
>>>>
>>>> getMailetContext().sendMail(*
>>>> *newMail);
>>>>
>>>> Please appreciate your help.
>>>>
>>>> Thank you,
>>>> Regards,
>>>> Rajender
>>>>
>>>> On Mon, Jan 14, 2013 at 1:36 PM, Eric Charles <eric@apache.org> wrote:
>>>>
>>>>> Hi Rajender,
>>>>>
>>>>> I tried on my local trunk and get the original message attached to the
>>>>> bounce. It's true that my client (thunderbird) does not allow to open
>>>>> the
>>>>> attachement as a real mail, but shows it as plain text.
>>>>>
>>>>> Can you check the source of the bounce mail and see if this is not an
>>>>> issue
>>>>> with the mail client you are using.
>>>>>
>>>>> Thx, Eric
>>>>>
>>>>>
>>>>> On 13/01/2013 15:37, Rajender Vallapureddy wrote:
>>>>>
>>>>>>
>>>>>> Hi Eric,
>>>>>>
>>>>>> I replicated the DNSBounce to send custom bounce with postmaster..
>>>>>>
>>>>>> I am able to send / receive the postmaster message, but I am unable
>>>>>> see any body message in it.
>>>>>>
>>>>>> I am using mysql and in the "james_mail.mail_bytes" field all I am
>>>>>> seeing is empty blob and when I try to open that mail in squirrel
mail
>>>>>> its giving me the imap error.
>>>>>>
>>>>>>
>>>>>> My class is exact the DNSBounce.java except for few conditions when
to
>>>>>> send the bounce mail.
>>>>>>
>>>>>> MailImpl newMail = new MailImpl(mail);
>>>>>> newMail.setRemoteAddr(dns.**getLocalHost().getHostName());
>>>>>> newMail.setRemoteHost(dns.**getLocalHost().getHostAddress(**));
>>>>>> MailAddress reversePath = mail.getSender();
>>>>>> Collection<MailAddress> newRecipients = new HashSet<MailAddress>();
>>>>>> newRecipients.add(reversePath)**;
>>>>>> newMail.setRecipients(**newRecipients);
>>>>>> MimeMessage newMessage = new
>>>>>> MimeMessage(Session.**getDefaultInstance(System.**getProperties(),
>>>>>> null));
>>>>>> MimeMultipartReport multipart = new MimeMultipartReport();
>>>>>> multipart.setReportType("**delivery-status");
>>>>>> MimeBodyPart part1 = new MimeBodyPart();
>>>>>> part1.setText(messageString); // message from this part is missing
in
>>>>>> the mail body.
>>>>>> multipart.addBodyPart(part1);
>>>>>> newMessage.setHeader(**RFC2822Headers.CONTENT_TYPE,
>>>>>> multipart.getContentType());
>>>>>> newMessage.setContent(**multipart);
>>>>>> newMail.setMessage(newMessage)**;
>>>>>> setRecipients(newMail, getRecipients(mail), mail);
>>>>>> setTo(newMail, getTo(mail), mail);
>>>>>> setSubjectPrefix(newMail, getSubjectPrefix(mail), mail);
>>>>>> newMail.getMessage().**setHeader(RFC2822Headers.DATE,
>>>>>> rfc822DateFormat.format(new Date()));
>>>>>> setReplyTo(newMail, getReplyTo(mail), mail);
>>>>>> setReversePath(newMail, getReversePath(mail), mail);
>>>>>> setSender(newMail, getSender(mail), mail);
>>>>>> setIsReply(newMail, isReply(mail), mail);
>>>>>> newMail.getMessage().**saveChanges();
>>>>>> getMailetContext().sendMail(**newMail);
>>>>>>
>>>>>>
>>>>>> Please suggest me what is causing the body message part to be missing
>>>>>> from the mail send.
>>>>>>
>>>>>> Appreciate your help.
>>>>>>
>>>>>> Thank you,
>>>>>> Regards,
>>>>>> Rajender
>>>>>>
>>>>>> ------------------------------**------------------------------**
>>>>>> ---------
>>>>>> To unsubscribe, e-mail:
>>>>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
>>>>>> For additional commands, e-mail:
>>>>>> server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>>>>>>
>>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ---------
>>>>> To unsubscribe, e-mail:
>>>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
>>>>> For additional commands, e-mail:
>>>>> server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>>>>>
>>>>>
>>>>
>>>> ------------------------------**------------------------------**---------
>>>> To unsubscribe, e-mail:
>>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
>>>> For additional commands, e-mail:
>>>> server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>>>>
>>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail:
>>> server-dev-unsubscribe@james.**apache.org<server-dev-unsubscribe@james.apache.org>
>>> For additional commands, e-mail:
>>> server-dev-help@james.apache.**org<server-dev-help@james.apache.org>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message