[pmg-devel] applied: [PATCH pmg-gui] use correct size unit in deferred queue listing

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 21 11:10:54 CET 2020


On 1/20/20 11:46 AM, Stoiko Ivanov wrote:
> The listing of the contents of the deferred queue gets its data via
> postqueue (1) json output, which lists the size in bytes.
> Change the column header to say 'Bytes' instead of 'Kbytes'.
> 
> Tested by sending a mail, which gets deferred and comparing the output with
> the size of the file on disk in '/var/spool/postfix/deferred'
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
> ---
> Reported via german PMG forum:
> https://forum.proxmox.com/threads/spalten%C3%BCberschrift-kbytes-m%C3%BCssten-bytes-sein.63703/
> 
>  js/PostfixMailQueue.js | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/js/PostfixMailQueue.js b/js/PostfixMailQueue.js
> index 101a43b..550ce3b 100644
> --- a/js/PostfixMailQueue.js
> +++ b/js/PostfixMailQueue.js
> @@ -146,7 +146,7 @@ Ext.define('PMG.Postfix.MailQueue', {
>  	    dataIndex: 'arrival_time'
>  	},
>  	{
> -	    header: 'KByte',
> +	    header: 'Bytes',

As talked offlist I ammended in the change to

header: 'Size',
renderer: Proxmox.Utils.format_size

to make this slightly more user friendly independent how big a mail is in
the queue. Thanks!

>  	    width: 80,
>  	    dataIndex: 'message_size'
>  	},
> 




More information about the pmg-devel mailing list