CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • more characters in bounce reason
Pages: [1]

Author Topic: more characters in bounce reason  (Read 3038 times)

jamie

  • I post occasionally
  • **
  • Posts: 95
  • Karma: 6
more characters in bounce reason
July 17, 2012, 10:05:56 am
Being able to see the bounce reason on the Bounce report of CiviMail is really helpeful.

One problem - though, is that the field in the table is limited to 255 characters.

Here's a typical bounce generated from our server:

Code: [Select]
This is the mail system at host xxxxxx.xxxxxxx.xxx.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

The mail system

<XXXXX.XXXXX@xxxxxx.xxx>: host xxxxx.xxx.xxxxxxxx.xxxxxxx.xxx[xxx.xx.xxx.xx]
said: 554 Denied (Mode: normal) (in reply to end of DATA command)
Reporting-MTA: dns; xxxxxx.xxxxxxx.xxx X-Postfix-Queue-ID: 9A44020165
X-Postfix-Sender: rfc822; workers@xxxxx.xxxxxxx.xxx Arrival-Date: Tue, 11 Oct
2011 16:08:02 -0400 (EDT) Final-Recipient: rfc822; xxxxxxx.xxxxxx@xxxxx.xxx
Original-Recipient: rfc822;xxxxxxx.xxxxxx@xxxxx.xxx Action: failed Status: 5.0.0
Remote-MTA: dns; xxxxx.xxx.xxxxxxxx.xxxxxxx.xxx Diagnostic-Code: smtp; 554
Denied (Mode: normal)

It's a total of 903 characters.

The first 255 characters are:

Code: [Select]
This is the mail system at host xxxxxx.xxxxxxx.xxx.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please

The really useful stuff is in the end, and is never available.

I'm wondering if people can see any downside to changing the field to a text field and then, in the code, limiting the error messages to 1024 characters? I'd be happy to take a crack at this for 4.3 if it sounds reasonable.

jamie

edub

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.8
  • PHP version: 5.3.6
Re: more characters in bounce reason
August 31, 2013, 03:37:02 am
i definitely agree that 255 characters are insufficient to interpret the bounce reason information (email address invalid or mail went into a spam trap, ....)
version 4.3 is still using the limit  - is there already any option not to change the source code and the database field?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: more characters in bounce reason
August 31, 2013, 08:08:18 am

Any chance u can work on this and submit a patch / PR for this including changes to the upgrade script

thx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: more characters in bounce reason
September 02, 2013, 11:41:21 am
Hi,

On 4.4 we have now a hook to add additional actions on an API action.

Going to publish an extension that saves the bounces as an activity beside the existing behaviour. Will allow to store the complete message, including the ones that are a "soft bounce".

Looking for someone willing to present it in 6 min at civicon london ;)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • more characters in bounce reason

This forum was archived on 2017-11-26.