On Fri, 12 May 2006, Pawel Tecza wrote:
On Thu, 11 May 2006, Sam Varshavchik wrote:
[...]
But you shouldn't get double folders, unless something else is broken,
because sqwebmail should only attempt to create the sent folder once.
OK, I'll look at this and try to find a bug.
The Sqwebmail creates the Sent folder once, but it does it for
_each_ language version, if they use _different_ locale.
It's because of the following line in the rename_sent_folder()
function (sqwebmail.c file):
if (strftime (buf, sizeof(buf), "." SENT ".%Y.%m-%b", tm) == 0)
return;
For example, assume that I don't have any .Sent.2006.04* folders.
If I login to English version of the webmail ('en_US' locale),
then it checks .Sent.2006.04-Apr folder and creates it,
because the folder doesn't exist yet. If I login to Polish version
of the webmail ('pl_PL' locale), then it checks .Sent.2006.04-kwi
folder and also creates it, because the folder doesn't exist yet.
So, I propose to remove "-%b" prefix from the line above.
If the abbreviated month name is so important for you there,
you could add it while displaying names of .Sent folders.
For example, if I have .Sent.2006.04 folder, then I'll see
.Sent.2006.04-Apr folder in English version of the webmail
and .Sent.2006.04-kwi folder in Polish. What do you think
about it?
My best regards,