Menu

#5433 mailboxes listed in "Servers/Read User Mail"

1.962
open
nobody
None
5
2020-12-14
2020-12-11
M.T.R
No

Hi,

i go to "Servers/Read User Mail"

I find a lot of entries such as:
daemon, games, gnats, sync, uucp etc
which are no mail accounts at all.

what is the reason therefore and how to remove non existing mailboxes from this page?

thanks for advice.

cheers mike

Discussion

  • M.T.R

    M.T.R - 2020-12-11

    clicking on such an entry writes error:
    Error: Failed to open /var/mail/messagebus : No such file or directory

    hope this helps.

    cheers mike

     
  • M.T.R

    M.T.R - 2020-12-11

    ok, i found the solution.
    setup: show only users with mailboxes.

    but another question.
    in the list mode showing details,
    say also display how many messages,
    there are always displayed one more mail than true in the inbox.

    that means the initial data of every mailbox is displayed as a message.

    would it be possible to display the REAL count of the messages, say (minus default message)

    thanks cheers mike

     
  • M.T.R

    M.T.R - 2020-12-11

    how to do:

    file: usr/share/webmin/mailboxes
    line 465
    Replace:
    $incount{$u->[0]} = &mailbox_folder_size($folders[0]);
    With:
    $incount{$u->[0]} = &mailbox_folder_size($folders[0]) - 1;

    That's it.

    Cheers mike

     
  • Jamie Cameron

    Jamie Cameron - 2020-12-12

    That seems like a bug that the number of messages is shown as one too high. Is the incorrect number still shown when you click on a mailbox?

     
  • M.T.R

    M.T.R - 2020-12-12

    hi jamie,

    if you lower it by one the number of mails are shown allright.

    cheers mike

     
  • M.T.R

    M.T.R - 2020-12-12

    hi
    may be i misunderstood.

    if the mailbox is empty
    outside is displayed "0"

    inside is displayed "Messages 1 to 1 of 1 "
    which is the default init data:

    from "Mail System Internal Data"
    Subject "DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA"

    cheers mike

     
  • Jamie Cameron

    Jamie Cameron - 2020-12-12

    So does that "FOLDER INTERNAL DATA" message account for the difference then?

     
  • M.T.R

    M.T.R - 2020-12-12

    i think so.

    best would be, if it wouldn't be displayed and wouldn't be counted.

    cheers mike

     
  • Jamie Cameron

    Jamie Cameron - 2020-12-14

    Is there still a discrepancy if the folders contains any real messages?

     
  • M.T.R

    M.T.R - 2020-12-14

    the reason for the difference is the "FOLDER INTERNAL DATA" message.

    file: usr/share/webmin/mailboxes
    line 465
    Replace:
    $incount{$u->[0]} = &mailboxfoldersize($folders[0]);
    With:
    $incount{$u->[0]} = &mailboxfoldersize($folders[0]) - 1;

    solves the problem

    cheers mike

     

Log in to post a comment.

MongoDB Logo MongoDB