In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1199 [In-Portal CMS] Refactoring task always 2012-02-01 12:34 2012-07-25 05:31
Dmitry  
alex  
normal  
closed  
fixed  
 
none 5.2.0-B2  
https://groups.google.com/d/topic/in-portal-bugs/EBDQtGRcirw/discussion
added OVERRIDE_EMAIL_RECIPIENTS to debug_sample.php
1
0001199: Rename DBG_EMAIL option and Add it to debug_sample.php
We have nice feature, that allows to transfer all e-mails that are sent to given e-mail address.

This is useful in cases, when developer performs some action on a website, that can cause mass mailing and he doesn't want that mails to reach live users.

And since all e-mails are sent to his mailbox he then is able to detect what was happening.

Option is called DBG_EMAIL and can be set to:

e-mail address (e.g. al...@intechnic.com)
e-mail domain (e.g. @intechnic.com)

In later case actual recipient e-mail would be created from original e-mail recipient this way:

1. have user@domain.tld
2. replace @ with _at_
3. append domain from DBG_EMAIL
4. result user_at_d...@intechnic.com

If DBG_EMAIL is defined in $dbg_options array in debug.php file, then it will only work when debug mode is enabled. If there is a need, then it can be defined before $dbg_options array resulting recipient replacing until this option is turn off.


In this task we NEED:

1. Rename DBG_EMAIL to OVERRIDE_EMAIL_RECIPIENTS
2. Make sure it works withi $dbg_options and outside
3. Add it as sample OVERRIDE_EMAIL_RECIPIENTS to tools/debug_sample.php

define('OVERRIDE_EMAIL_RECIPIENTS', ''); // Overwrites email recipients with some-email@domain-name.com or @domain-name.com




patch email_override_demo.patch (1,492) 2012-02-07 05:43
http://tracker.in-portal.org/file_download.php?file_id=1506&type=bug
Issue History
2012-07-25 05:31 alex Note Added: 0004979
2012-07-25 05:31 alex Status resolved => closed
2012-02-07 05:45 alex Note Added: 0004449
2012-02-07 05:45 alex Status reviewed and tested => resolved
2012-02-07 05:45 alex Fixed in Version => 5.2.0-B2
2012-02-07 05:45 alex Resolution open => fixed
2012-02-07 05:45 alex Assigned To !COMMUNITY => alex
2012-02-07 05:45 alex Changeset attached 5.2.x r15106
2012-02-07 05:45 alex Note Added: 0004448
2012-02-07 05:45 alex Status needs testing => reviewed and tested
2012-02-07 05:44 alex Assigned To => !COMMUNITY
2012-02-07 05:44 alex Developer => alex
2012-02-07 05:44 alex Status active => needs testing
2012-02-07 05:43 alex Estimate Points 0 => 1
2012-02-07 05:43 alex File Added: email_override_demo.patch
2012-02-01 12:34 Dmitry New Issue
2012-02-01 12:34 Dmitry Reference => https://groups.google.com/d/topic/in-portal-bugs/EBDQtGRcirw/discussion
2012-02-01 12:34 Dmitry Change Log Message => added OVERRIDE_EMAIL_RECIPIENTS to debug_sample.php
2012-02-01 12:34 Dmitry Estimate Points => 0

Notes
(0004448)
alex   
2012-02-07 05:45   
Will test all together later.
(0004449)
alex   
2012-02-07 05:45   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001199: Rename DBG_EMAIL option and Add it to debug_sample.php
(0004979)
alex   
2012-07-25 05:31   
Since 5.2.0 version was released.