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
clicking on such an entry writes error:
Error: Failed to open /var/mail/messagebus : No such file or directory
hope this helps.
cheers mike
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
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
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?
hi jamie,
if you lower it by one the number of mails are shown allright.
cheers mike
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
So does that "FOLDER INTERNAL DATA" message account for the difference then?
i think so.
best would be, if it wouldn't be displayed and wouldn't be counted.
cheers mike
Is there still a discrepancy if the folders contains any real messages?
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