brazilofmux / tinymux

TinyMUX
www.tinymux.org
48 stars 21 forks source link

Add method to show available @mail folders with aliases (perhaps change @mail/folder) #499

Open brazilofmux opened 9 years ago

brazilofmux commented 9 years ago

Original issue 496 created by brazilofmux on 2008-03-09T19:57:38.000Z:

What version of the server are you using? On what operating system? What is the configuration or initial setup is required?

MUX 2.6.4.25 FIRANMUX enabled on Linux 2.4.21 Redhat Pro.

What steps will reproduce the problem?

  1. Name a new mail folder (pick a number with no messages in it): @mail/folder 5=Test
  2. Purge messages: @mail/purge
  3. See that the folder name is missing: @mail/folder

What is the expected output?

I'd expect the folder name/alias not to disappear.

What output do you see instead?

The folder name/alias is gone. This is a pain when you have @amail code that sorts into named folders instead of numbered folders.

brazilofmux commented 9 years ago

Comment #1 originally posted by brazilofmux on 2008-04-13T17:31:28.000Z:

Internally, there is an LBUF limit on folders. Internally, it looks like this:

&MAILFOLDERS me=0:FOLDERA:0 1:FOLDERB:1

The mail code in TinyMUX 1.6 did not validate this attribute very well, and there are many backup/hibernating flatfiles out there with very messed up MAILFOLDERS attributes.

So, we have some conflicting requirement: 1) Once named, the folder should persist even if it contains no @mail, 2) old foldername attributes need to be cleaned up (all at once or incrementally as folders are added and @mail is addded or removed), 3) the MAILFOLDERS attribute is limited to an LBUF, and there needs to be a way to remove names or eventually, no new folder names can be created.

brazilofmux commented 9 years ago

Comment #2 originally posted by brazilofmux on 2008-09-17T07:26:43.000Z:

<empty>

brazilofmux commented 9 years ago

Comment #3 originally posted by brazilofmux on 2009-03-10T15:16:42.000Z:

Using # 1 (so I can see the resulting MAILFOLDERS attribute), I do the following:

@mail/folder 5=TEST @mail/purge @mail/folder MAIL: 0 messages in folder 0 [unnamed](0 unread, 0 cleared). MAIL: Current folder is 0 [unnamed]. ex me/MAILFOLDERS Mailfolders [+$MW]: 5:TEST:5

The alias remains even though @mail/folder doesn't show all folder names.

brazilofmux commented 9 years ago

Comment #4 originally posted by brazilofmux on 2009-03-10T22:49:53.000Z:

It appears the problem was it was just not showing all folder names. The real "problem" then is that once you create a folder name, you don't know you have it unless there are messages in it.

@mail/folder probably should list all folders with aliases.

brazilofmux commented 9 years ago

Comment #5 originally posted by brazilofmux on 2009-03-10T23:49:20.000Z:

<empty>