Hi All,
I've made some changes on the way that priority emails are treated, if the chosen priority is High or Highest I've managed to add Disposition-Notification and Return-Recept to message.
The code snippet is (it must be changed on sendmail.inc on lines 131-141):
if (!empty($_POST['_priority'])) { $priority = (int)$_POST['_priority']; $a_priorities = array(5=>'lowest', 4=>'low', 2=>'high', 1=>'highest'); if ($str_priority = $a_priorities[$priority]) $headers['X-Priority'] = sprintf("%d (%s)", $priority, ucfirst($str_priority)); if ($a_priorities[$priority] < 3) { $headers['Return-Receipt-To'] = $identity_arr['string']; $headers['Disposition-Notification-To'] = $identity_arr['string']; } }
Regards, Krishna Padilha
On Saturday 29 April 2006 23:44, Krishna Oliveira de Hollanda Padilha wrote:
The code snippet is (it must be changed on sendmail.inc on lines 131-141):
Running the following command would provide a better understanding of context, and it would allow other developers to apply your changes easily, without confusion.
diff -u originalsendmail.inc newsendmail.inc
Differential patches are easily applied using the 'patch' utility. It also makes things ALOT easier when it comes to merging your patches into the main codebase.
diff, and patch are generally available for most platforms, although you may have to hunt around for a windows version and mac version pre os x.
HTH
~ Richard
I did the patch... The resulting file is included on this message
2006/4/29, Richard Smith richard@indigo3.net:
On Saturday 29 April 2006 23:44, Krishna Oliveira de Hollanda Padilha wrote:
The code snippet is (it must be changed on sendmail.inc on lines
131-141):
Running the following command would provide a better understanding of context, and it would allow other developers to apply your changes easily, without confusion.
diff -u originalsendmail.inc newsendmail.inc
Differential patches are easily applied using the 'patch' utility. It also makes things ALOT easier when it comes to merging your patches into the main codebase.
diff, and patch are generally available for most platforms, although you may have to hunt around for a windows version and mac version pre os x.
HTH
~ Richard
-- Krishna Padilha