[postfixadmin:bugs] #386 Alias CSV Export
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <chr...@us...> - 2018-07-10 01:13:35
|
The CSV delimiter is completely unrelated, and I'll revert the commit in a minute to avoid a superfluous behaviour / file format change ;-) The problem is that AliasHandler returns an array with the alias targets, and when writing the CSV file, that array gets written as literal "Array" instead of writing the array content (= the list of alias targets) into the CSV. The solution is to convert the array to a string using join(). A good place is probably list.php around line 117, where we'll need an if condition to check for the field type. I'm a bit unsure what character I should use as delimiter between multiple alias targets - candidates are "," or a space. Opinions? --- ** [bugs:#386] Alias CSV Export** **Status:** open **Group:** v3.0 **Created:** Sat Nov 05, 2016 10:17 PM UTC by Rob **Last Updated:** Mon Jul 09, 2018 07:23 PM UTC **Owner:** nobody From the virtual-list.php if I click to Download List as CSV postfixadmin/list.php?table=alias&output=csv The CSV is not the expected data. I get this: " ";Alias;To;"Deliver to the local mailbox.";"Auto Response";"Last modified";Active "<span style='background-color:tomato'> </span> ";ab...@ex...;Array;0;0;2016-10-12;1 --- Sent from sourceforge.net because pos...@li... is subscribed to https://sourceforge.net/p/postfixadmin/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/postfixadmin/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |