mail-dmarc icon indicating copy to clipboard operation
mail-dmarc copied to clipboard

Misaligned output from dmarc_view_reports with longer hostnames

Open richlv opened this issue 7 months ago • 0 comments

Describe the bug If longer hostnames are included in the report, the output of dmarc_view_reports becomes misaligned.

To Reproduce Steps to reproduce the behavior:

  1. Have a report with longer hostnames - for example, 27 characters.

Expected behavior All rows aligned to the header.

Screenshots Censored output with the misalignment. Notice how the row alignment differs depending on the hostname length.

 ID                      Author     Report-Start
  | -- Qty                 From                                      IP   Disposition    DKIM     SPF
  8          xxxxxxxxxx xxxxxxx  2024-07-15 03:00:00
  | --   1 xxxxxxxxxx.xxxxxxx.xxx.xxx                           xxx.xx.xx.xxx          none    fail    fail    
  | --   7 xxxxxxxxxx.xxxxxxx.xxx.xxx                           xxx.x.xxx.xxx          none    pass    pass    
  | --   2      xxxxxxx.xxx.xxx                           xxx.x.xxx.xxx          none    pass    pass  

Server (please complete the following information):

  • OS: OpenSUSE
  • Version Tumbleweed

Perl (please complete the following information):

  • Version 5.40.0

Additional context Preferably, column width would dynamically adapt to the contents, and be the same for all rows.

richlv avatar Jul 18 '24 14:07 richlv