Commit graph

267 commits

Author SHA1 Message Date
stekkel
4f34bbc304 Prohibit imap injection attempts 2006-01-19 18:05:27 +00:00
tokul
fc7ef5ceae adding mailbox caching code by Michael Long 2006-01-10 09:14:45 +00:00
stekkel
3d851be854 * Support for LIST-SUBSCRIBED capability.
* Do not do an individual LIST call for each mailbox if all mailboxes are
displayed instead of only the subscribed ones.
2005-11-16 16:35:57 +00:00
jangliss
432d3946d9 sqimap_utf7_decode_mbx_tree doesn't issue a return, but simply changes
the variables by reference to the call.  This makes mbxs_tree an undefined
and unusued variable and might cause errors in php 4.4+ (especially with
objects).
2005-11-09 21:35:34 +00:00
tokul
5e98d9307e adding sqimap functions to check status of folder. Code reuse.
adding more fixes for sent_subfolders on uw
2005-11-04 18:33:53 +00:00
Fredrik Jervfors
9ed98bb1ec phpDocumentor updates 2005-09-18 10:25:54 +00:00
jangliss
1c2f0b789e Don't attempt to delete a mailbox that does not exist. 2005-08-11 03:43:08 +00:00
stekkel
905db8ba57 Make sure mailboxnames like INBOX_Blah doesn't match on our INBOX detection
regular expression.
2005-07-20 19:30:53 +00:00
tokul
df06aed4d2 todo about caching 2005-05-31 17:42:17 +00:00
tokul
adfda7e460 remove if(true)
indicate changes in 1.4.5cvs
add define in order to prevent loading errors in http://url/functions/imap_mailbox.php
2005-05-31 17:18:54 +00:00
stekkel
26c36ef860 Removal of unused commented code blocks 2005-04-24 13:46:41 +00:00
tokul
2106d9b552 warning about possibly broken function 2005-04-24 08:01:36 +00:00
Fredrik Jervfors
2531f52955 Trimming whitespace and replacing tabs 2005-04-23 12:08:00 +00:00
tokul
883d73e200 adding function params and since tags to other sqimap mailbox functions 2005-04-14 16:18:15 +00:00
tokul
443bb5c3de documenting some mailbox functions 2005-04-13 18:48:49 +00:00
tokul
4556906254 enough for today. adding some tags to imap mailbox functions 2005-04-11 16:21:42 +00:00
Thijs Kinkhorst
e763660ff0 small fix to previous change: box could have been $used already 2005-04-04 19:21:26 +00:00
Thijs Kinkhorst
29cba72f37 Fix incorrect folder hierarchy shown. Patch was supplied by Awais Ahmad,
works fine here and is confirmed to work by several other users.
Closes bug #1009654 and patch #1082558.
2005-04-04 19:04:24 +00:00
Thijs Kinkhorst
3a2f2ba645 Fix folder rename to cope with collapsed-prefs, cyrus>=2.0 and renaming
of unsubscribed folders. Patch #1155791
2005-03-30 19:01:25 +00:00
tokul
07be318f78 adding phpdoc blocks to sqimap_mailbox_list function 2005-03-20 10:09:15 +00:00
Thijs Kinkhorst
15a097b3f9 Add "show only subscribed folders" option (defaults to On, current behaviour).
Recommended by RFC 2683 sect 3.2.2, allows a user to show all mailboxes regardless
of subscription. Thanks Simon Matter for the idea.
btw when will the "oldway" in left_main disappear?
2005-02-06 19:55:04 +00:00
jangliss
7e54992b42 Quoting "INBOX" to fix an imap server bug. No harm in quoting the folder
name, so it shouldn't hurt other servers (tested against courier and
broken imap server hmailserver I believe).
2005-02-02 15:05:37 +00:00
Thijs Kinkhorst
a73561b911 Increment year in copyright notice. 2004-12-27 15:04:02 +00:00
Fredrik Jervfors
8c8ecffa57 Replacing tabs with spaces, trimming white space at EOL and newline at EOF 2004-11-02 22:21:34 +00:00
Jimmy Conner
2cd94f0d75 Removed variables that were initialized, but never actually used
Also remove a few more globals that were unused
Remove a few newlines at the end of files
Hopefully this will help shrink the memory footprint of SM just slightly
2004-11-01 02:05:15 +00:00
Jimmy Conner
6bfd0f1168 Remove unused globals 2004-10-31 23:24:09 +00:00
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