Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dante report: mail miners return 0 values #6533

Closed
gsanchietti opened this issue Jun 22, 2021 · 4 comments
Closed

dante report: mail miners return 0 values #6533

gsanchietti opened this issue Jun 22, 2021 · 4 comments
Labels
bug A defect of the software verified All test cases were verified successfully

Comments

@gsanchietti
Copy link
Member

If the local System is set with LANG = it_IT.UTF-8, the miners that calculate the sums of the mails (received, sent, filtered, etc.) report a value of 0.
Within the miners the command date is used to compare the data reported in the maillog and this does not match (for example Giu 21 instead of Jun 21).

Steps to reproduce

  • set local system in Italian: localectl set-locale LANG = it_IT.UTF-8
  • reboot the system
  • send and receive at least one email
  • run this miner for example: /usr/share/dante/miners/mailreceived-counter | jq

Expected behavior

  • the miner reports the number of emails received as the sum value

Actual behavior

  • the miner always reports 0 as a sum value

Components
dante-0.5.0-1.ns7.x86_64
nethserver-dante-1.0.5-1.ns7.noarch

See also
Workaround:

localectl set-locale LANG=en_US.utf8

--
Moved from nethesis/dev#6035

@gsanchietti gsanchietti added the bug A defect of the software label Jun 22, 2021
gsanchietti added a commit to NethServer/nethserver-dante that referenced this issue Jun 22, 2021
Make sure the date commands returns English output to be
matched against logs.

NethServer/dev#6533
@nethbot
Copy link
Member

nethbot commented Jun 22, 2021

in 7.9.2009/testing:

@gsanchietti
Copy link
Member Author

Test case 1
Check the issue is not reproducible

@gsanchietti gsanchietti added the testing Packages are available from testing repositories label Jun 22, 2021
@lucagasparini
Copy link

Test case 1: the bug is not reproducible 👍

@lucagasparini lucagasparini added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Jun 22, 2021
@nethbot
Copy link
Member

nethbot commented Jun 22, 2021

in 7.9.2009/updates:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect of the software verified All test cases were verified successfully
Projects
None yet
Development

No branches or pull requests

3 participants