Commit graph

241 commits

Author SHA1 Message Date
tokul
79e8f4cc82 sanitizing folder name display. 2004-10-09 12:46:40 +00:00
indiri69
764ddb4a7a Do a natural language sort on mailbox names. Otherwise it shows as all uppercase and then all lowercase 2004-09-30 18:11:38 +00:00
Jimmy Conner
a7742cbe17 Fixes for bugs #1019185 and #1017941
global variable $boxesnew was being corrupted by another function (I don't really see why its even global at this point, its also stored in the Session).  Changed the name of the variable used in the offending function.  The symptoms were that the folder list boxes would not be populated, errors when emptying the trash, and errors in the Folders Options.
2004-09-01 04:11:20 +00:00
Fredrik Jervfors
3b83c567dd Minor cleanups 2004-08-24 00:40:28 +00:00
Fredrik Jervfors
303d308968 XHTML fixes 2004-08-15 01:02:58 +00:00
Fredrik Jervfors
1a4d1bf08f XHTML fixes 2004-08-12 03:47:03 +00:00
stekkel
81c8b6185e fixed warning 2004-06-02 10:36:01 +00:00
stekkel
abf6bbc461 Rewrite of internal message caching
Added paginator support for asearch
Added next/prev links in read_body to walk through search results
Added individual sort settings / mailbox
Added what I forgot to mention
2004-05-31 20:07:44 +00:00
Thijs Kinkhorst
2f1cc08b0e Replace array_search that only uses a boolean to check whether the value
exists with in_array (which returns just that boolean), and fix the
left over call to array_search to also check for NULL return.
This should fix the problems that Fredrik, me and other PHP 4.1 users
had with Marc's recent changes.

From PHP docs:
"Note:  Prior to PHP 4.2.0, array_search() returns NULL on failure instead of FALSE."
2004-05-24 19:55:21 +00:00
stekkel
c27886a4eb More cleanups. 2004-05-23 08:52:39 +00:00
stekkel
b805bf5f1c changed naming scheme 2004-05-22 21:03:23 +00:00
stekkel
34dffa1d9d Simplified DMN and the findPrevious and FindNext functions. 2004-05-21 11:24:07 +00:00
stekkel
d024fa15b0 Respect the permanentflags output. Do not show the alter flags buttons
/links if the mailbox does not allow it.
2004-05-20 16:20:42 +00:00
stekkel
f510138349 * Request UID and UIDVALIDITY from the status response if not available in the
select response.
* Tried to fix the broken del move next function and added a few arguments
  to the dmn_expunge function because the globals scared me when I couldn't
  get the job done.
2004-05-19 22:36:41 +00:00
stekkel
194b15976a due to caching the dropdown mailbox list $boxesnew was set in the global
scope and with register globals = on the mailbox-tree wasn't returned. We
should work on caching the mailbox-tree and rewrite the functions that make
use of the old mailbox_list function.
2004-05-18 16:40:00 +00:00
stekkel
4542626296 No comments 2004-05-17 20:11:55 +00:00
stekkel
b171edd0dc temp fixes, as long as we didn't adapt our mailbox tree code, cache the
list.

Make use of the sorted list with id's from the session if the mailbox state
didn't change.

All performance related imap fixes were found after playing with thetereal.
If you want to try itt yourself:

tethereal -t a -ni lo -f 'port 143' -R 'imap.request'
with lo the interface.
2004-05-17 19:48:57 +00:00
stekkel
157a422c57 removed debug statement 2004-05-17 15:55:33 +00:00
stekkel
85bee15f35 Removed kind of insane check. The check mailbox is subscribed call retrieved
the whole subscription list and looked up if the requested mailbox was part
of it. It's better to subscribe and surpress the NO response if already
subscribed.
2004-05-17 15:45:37 +00:00
Erin Schnabel
f59c3343ef remove call to expunge in sqimap_mailbox_select 2004-04-29 03:48:13 +00:00
tokul
17c56f73ed two more subpackage blocks 2004-04-12 08:03:39 +00:00
Erin Schnabel
7a611a6ea9 updates for move & next when moving first message 2004-03-29 18:55:16 +00:00
Thijs Kinkhorst
5a4550f372 Remove almost all left overs of our non-uid-imap-server support. 2004-03-15 20:15:16 +00:00
stekkel
358d622748 unsetting an array element didn't re-index the array which caused a failure
when we added the INBOX response to the array at a later stage. This is
confirmed on PHP 4.1.2. The version I'm using (4.3.4) didn't had that
problem. Probably this fix us a php-bug workaround.
2004-03-02 21:05:57 +00:00
stekkel
c51abba34c Fixed the issue where inbox showed up in the lsub response with a \NoSelect
flag. If we detect inbox with \NoSelect we unset the result for inbox and do
a list request for inbox.
2004-02-26 18:01:59 +00:00
Thijs Kinkhorst
e424ef3bc1 Tweak the LSUB INBOX regexp to allow for only 1 space between LSUB and
the mailbox name.
2004-02-25 17:28:39 +00:00
Thijs Kinkhorst
634f4d6cdc Fix the display of a subfolder "foo.inbox" aswell. 2004-02-25 14:38:05 +00:00
Thijs Kinkhorst
b7c512df9a Require whitespace in the LSUB before the mailbox name to prevent a
subfolder called "foo.bar.inbox" to be treated as INBOX.
2004-02-25 14:25:49 +00:00
Thijs Kinkhorst
cde0377d36 We're living in 2004 now... perl is your friend for these kinds of things :) 2004-02-24 15:51:22 +00:00
Erin Schnabel
dcad776393 Added function to update arrays etc for DMN.
plugin is officially integrated, even if I had to add a method I hated to do it.
so there.
2004-01-28 05:17:13 +00:00
pdontthink
ceac9866ed Change to new hook function, as elsewhere in same file 2004-01-05 04:21:31 +00:00
stekkel
a9cc9cad50 * first unsubscribe before we delete
* fail silently on unsubscribe
2003-11-10 17:46:37 +00:00
Thijs Kinkhorst
336662934c Add some basic documentation, and remove some long-obsolete functions. 2003-10-29 19:58:06 +00:00
tassium
9098cb73e4 Preparation to begin using phpdocumentor.
Added basic @package/@subpackage tags
The decode/ files were documented slightly more thoroughly, although they're almost self-explanatory anyway.

The individual functions in the functions/ files need to be documented though, and now that this commit is in, anyone willing to write docblocks for functions should get cracking ;)
2003-10-28 21:27:47 +00:00
tassium
350bbcd288 New hook function: boolean_hook_function(), which is used for hooks that want a true/false value from the plugins. Currently used in isSpecialMailbox() 2003-09-04 20:26:53 +00:00
alex-brainstorm
bf4258331a advanced_tree: sort mailboxes naturally, handle special folders the same as in oldway (subs and hook) 2003-08-22 01:28:16 +00:00
alex-brainstorm
6486e173a2 replace htmlentities() with htmlspecialchars() since it is broken with non iso-8859-1 8bit chars 2003-08-17 15:26:50 +00:00
alex-brainstorm
1e7b52dd08 Mailbox names are html encoded in select/option and not trimmed out. Store noinferiors flag to be used in left_main advanced tree. 2003-07-30 14:03:24 +00:00
stekkel
3c428c2892 remove the % from the LSUB request because we do not need it.
fixed speed issue for loop
2003-07-28 18:48:55 +00:00
stekkel
c6f51d497c Disable \NoSelect flag for INBOX.
Maker sure INBOX is stored in uppercase
2003-07-28 18:43:12 +00:00
alex-brainstorm
e6cb0cca51 removed encode_mailbox_name() and changed calls since it is now in imap_general. removed INBOX name encoding. removed folder_prefix from forged LSUB INBOX response. 2003-07-23 12:12:14 +00:00
jangliss
0febb64ec6 Should have checked in further details what the possible side effects could
be... for now just mark them as Special Folders.  That should take care of
it.
2003-07-17 06:32:50 +00:00
jangliss
206f1e8c13 When using sent subfolders, the special folder option is overruled because
the parent isn't marked as a special folder.  This code forces the parents
of the special folders to also be marked as special.  The rest of the subs
for the parent special should follow the movement of the parent in left_main
2003-07-17 06:29:38 +00:00
alex-brainstorm
6b8f490b9f oldway=false : Fix forged LSUB response triggered by new regexp, and internationalized INBOX display 2003-07-11 13:01:09 +00:00
alex-brainstorm
dab546e8da Fix literal and duplicate mailbox names 2003-07-11 10:51:54 +00:00
stekkel
959de6649a Remove check for INBOX. If inbox isn't in the LSUB response then it's
unsubscribed and we just add it to the list. No reason to check specificly
for LSUB "" "INBOX" or LIST "" "INBOX"
If there is no inbox then a select will produce an error message.
2003-07-10 20:20:05 +00:00
alex-brainstorm
7f62730491 fix mailbox list (noselect and array_values) 2003-07-04 22:06:13 +00:00
stekkel
dfe15394f6 Hopefully fixed pipelined responses, I did something stupid and didn't test
out of order reponses. Now it works.
In imap_mailbox te array with mailbox objects wasn't create correctly. It
contained double entries. That's fixed too.
2003-07-03 11:45:02 +00:00
stekkel
0edf989acc To many problems with this regex call. using \\\\ instead of \\ seems to
work for everyone. If somebody can explain why \\ is not sufficient please
explain.
2003-06-29 19:40:08 +00:00
stekkel
f49d96086f always check total messages for the trash_folder so we can show the putge
link if move_to_trash = true
2003-06-29 19:27:27 +00:00