|
1.272 (+1 -7 lines) |
10/11/2008 02:59 AM |
Michael M Slusarz slusarz |
Start moving what I can from my local branch to HEAD so that the branches
don't get too divergent and I pull my hair out later trying to merge the
boatload of changes coming due to the IMAP/MIME changes. |
|
1.271 (+5 -5 lines) |
09/25/2008 03:58 AM |
Michael M Slusarz slusarz |
IMAP_Cache has been merged into IMP_IMAP_Cache::. |
|
1.270 (+2 -1 lines) |
09/17/2008 01:55 PM |
Michael M Slusarz slusarz |
Cleanups on some missed items from the removal of IMP_IMAP_Search. |
|
1.269 (+10 -7 lines) |
09/17/2008 01:02 AM |
Michael M Slusarz slusarz |
Remove IMP_IMAP_Search:: and IMP_IMAP_Search_Query::. |
|
1.76.10.74 FRAMEWORK_3 (+2 -2 lines) |
08/15/2008 12:02 PM |
Michael M Slusarz slusarz |
MFH:
1.12 +24 -8 imp/lib/IMAP/MessageCache.php
1.268 +2 -2 imp/lib/Mailbox.php
2.869 +3 -4 imp/mailbox.php
1.1171 +1 -0 imp/docs/CHANGES Tags: IMP_4_3, IMP_4_3_RC2 |
|
1.268 (+2 -2 lines) |
08/15/2008 03:54 AM |
Michael M Slusarz slusarz |
Cache results of the IMP_UI_Mailbox::getFrom() call, since calls to the
IMP::parseAddressList are expensive. |
|
1.76.10.73 FRAMEWORK_3 (+2 -2 lines) |
06/25/2008 05:03 AM |
Jan Schneider jan |
MFH: 1.267 Tags: IMP_4_2_1_RC1 |
|
1.267 (+2 -2 lines) |
06/25/2008 04:55 AM |
Jan Schneider jan |
Fix parentheses. |
|
1.76.10.72 FRAMEWORK_3 (+2 -2 lines) |
06/03/2008 04:36 PM |
Michael M Slusarz slusarz |
MFH 1.266 |
|
1.266 (+2 -2 lines) |
06/03/2008 04:36 PM |
Michael M Slusarz slusarz |
Make sure we are receiving a copy of the cache data, so we can't
unknowingly modify the data ourselves. |
|
1.76.10.71 FRAMEWORK_3 (+3 -3 lines) |
03/20/2008 09:53 PM |
Michael M Slusarz slusarz |
Bug: 6449
MFH 1.265 Tags: IMP_4_2, IMP_4_2_RC4 |
|
1.265 (+3 -3 lines) |
03/20/2008 09:50 PM |
Michael M Slusarz slusarz |
Bug: 6449
Fix name of cache entry. |
|
1.76.10.70 FRAMEWORK_3 (+49 -25 lines) |
03/20/2008 01:08 PM |
Michael M Slusarz slusarz |
Bug: 6507, 6508
MFH 1.264 |
|
1.264 (+49 -25 lines) |
03/20/2008 01:07 PM |
Michael M Slusarz slusarz |
Bug: 6507, 6508
Right idea, wrong implementation. We can't keep track of the hide deleted
status in the cache key since the key needs to be an unadultered mailbox name
so that other code can reliably access the entry. Instead, keep track of
hide deleted status within the data that is affected by the setting - namely
arrival time and the message list. |
|
1.76.10.69 FRAMEWORK_3 (+5 -5 lines) |
03/19/2008 03:39 PM |
Michael M Slusarz slusarz |
Bug: 6449
MFH 1.263 |
|
1.263 (+5 -5 lines) |
03/19/2008 03:39 PM |
Michael M Slusarz slusarz |
Bug: 6449
Missed several conversions to using _cachedMailbox(). |
|
1.76.10.68 FRAMEWORK_3 (+21 -9 lines) |
03/14/2008 01:55 PM |
Michael M Slusarz slusarz |
MFH: CHANGES - 1.1104; Mailbox.php - 1.262 |
|
1.262 (+21 -9 lines) |
03/14/2008 01:51 PM |
Michael M Slusarz slusarz |
Fix mailbox list caching when hiding deleted messages. |
|
1.76.10.67 FRAMEWORK_3 (+6 -6 lines) |
03/10/2008 01:13 PM |
Michael M Slusarz slusarz |
IMP_MailboxCache -> IMP_MessageCache. Tags: IMP_4_2_RC3 |
|
1.261 (+6 -6 lines) |
03/07/2008 08:23 PM |
Michael M Slusarz slusarz |
This has bothered me for the longest time - we are storing messages in this
cache, not mailboxes. Change the library name now and corresponding config
options so we don't need to change them after 4.2 is released. |
|
1.76.10.66 FRAMEWORK_3 (+10 -6 lines) |
02/13/2008 01:49 AM |
Michael M Slusarz slusarz |
MFH 1.260 |
|
1.260 (+10 -6 lines) |
02/13/2008 01:37 AM |
Michael M Slusarz slusarz |
Allow header information to be returned in getMailboxArray(). |
|
1.76.10.65 FRAMEWORK_3 (+2 -11 lines) |
01/03/2008 02:07 AM |
Michael M Slusarz slusarz |
Bug: 5234
MFH: Add hook for adding formatting information to a message list row. Tags: IMP_4_2_RC2 |
|
1.76.10.64 FRAMEWORK_3 (+2 -2 lines) |
01/02/2008 06:31 AM |
Jan Schneider jan |
Happy New Year |
|
1.259 (+2 -2 lines) |
01/02/2008 06:12 AM |
Jan Schneider jan |
Happy New Year |
|
1.258 (+2 -11 lines) |
12/26/2007 05:27 PM |
Michael M Slusarz slusarz |
Bug: 5234
Merge after: 3 days
Add hook for adding formatting information to a message list row. |
|
1.76.10.63 FRAMEWORK_3 (+2 -6 lines) |
12/21/2007 04:29 PM |
Michael M Slusarz slusarz |
MFH 1.257 |
|
1.257 (+2 -6 lines) |
12/21/2007 04:17 PM |
Michael M Slusarz slusarz |
Bug: 6023
Don't expire cache when traversing through virtual INBOX via the message
screen (we don't want flagging a message to destroy the cached value of the
mailbox). |
|
1.76.10.62 FRAMEWORK_3 (+477 -607 lines) |
12/20/2007 08:59 AM |
Jan Schneider jan |
Merge from HEAD. |
|
1.256 (+5 -8 lines) |
11/23/2007 06:19 AM |
Jan Schneider jan |
Revert direct link to thread view. Tags: BEFORE_MERGE_3_2, IMP_4_2_RC1 |
|
1.255 (+8 -5 lines) |
11/21/2007 01:10 PM |
Jan Schneider jan |
Add direct link to the thread view from the mailbox (Request #5902). |
|
1.254 (+29 -17 lines) |
10/03/2007 10:12 AM |
Michael M Slusarz slusarz |
Reduce session storage space (especially with large mailboxes) by not storing
mailbox names for each uid if we are in a non-search mailbox. |
|
1.253 (+4 -1 lines) |
09/28/2007 06:47 AM |
Michael M Slusarz slusarz |
Sanity checking |
|
1.252 (+2 -2 lines) |
06/05/2007 12:43 PM |
Jan Schneider jan |
Use our own set of IMAP flags to not unnecessarily reopen mailboxes. Tags: IMP_4_2_ALPHA |
|
1.251 (+10 -2 lines) |
05/22/2007 10:39 AM |
Michael M Slusarz slusarz |
getSortedList() should return an array with message numbers starting at 1,
not 0. |
|
1.250 (+4 -2 lines) |
05/08/2007 12:15 PM |
Michael M Slusarz slusarz |
Only rebuild mailbox on message count determination when we are not dealing
with a virtual folder. |
|
1.249 (+4 -3 lines) |
05/08/2007 10:06 AM |
Michael M Slusarz slusarz |
Makes more sense to return message number starting at 1 rather than an
array-like 0. |
|
1.248 (+2 -1 lines) |
05/07/2007 10:48 AM |
Michael M Slusarz slusarz |
Our internal range indices are 1 less than the given ranges. |
|
1.247 (+9 -8 lines) |
05/07/2007 09:53 AM |
Michael M Slusarz slusarz |
Rename buildMailboxArray() to getMailboxArray() to more clearly indicate that
we are not necessarily generating a "page" of information. Furthermore,
change parameters to allow a defined set of message numbers we want information
about. |
|
1.246 (+2 -1 lines) |
05/07/2007 07:21 AM |
Michael M Slusarz slusarz |
Make sure mailbox is updated before we try to get message count. |
|
1.245 (+13 -13 lines) |
05/02/2007 11:46 AM |
Michael M Slusarz slusarz |
Make sure we always resort the sorted list because we are unsure of what
an underlying function might do with the data.
Shortcircuit some cache clearing code if we explicitly rebuild the mailbox. |
|
1.244 (+4 -6 lines) |
04/18/2007 11:54 AM |
Michael M Slusarz slusarz |
The cached imap_status() object must be cleared on flag change. |
|
1.243 (+16 -1 lines) |
04/18/2007 06:07 AM |
Michael M Slusarz slusarz |
Need to give public access to imap cache status string. |
|
1.242 (+2 -2 lines) |
01/12/2007 09:51 AM |
Jan Schneider jan |
true == 2 |
|
1.241 (+5 -3 lines) |
01/12/2007 03:08 AM |
Michael M Slusarz slusarz |
Add way to override pref and always return preview information. |
|
1.240 (+9 -6 lines) |
01/04/2007 02:14 PM |
Chuck Hagenbuch chuck |
unset doesn't throw notices, so this should protect us (isset does if
a key inside the isset expression isn't set, since that's evaluated
before the isset). |
|
1.239 (+3 -2 lines) |
01/03/2007 12:00 AM |
Michael M Slusarz slusarz |
Bug: 4830
Silence undefined warning. |
|
1.76.10.61 FRAMEWORK_3 (+2 -2 lines) |
01/02/2007 08:54 AM |
Jan Schneider jan |
Happy New Year Tags: IMP_4_1_6, IMP_4_1_5, IMP_4_1_4, IMP_4_1_4_RC1 |
|
1.238 (+2 -2 lines) |
01/02/2007 07:47 AM |
Jan Schneider jan |
Happy New Year |
|
1.237 (+2 -2 lines) |
01/01/2007 07:41 PM |
Jan Schneider jan |
Assign copyright to The Horde Project for those copyright holders that already agreed to it. |
|
1.236 (+13 -2 lines) |
12/11/2006 03:40 AM |
Michael M Slusarz slusarz |
Make sure arrival cache data is updated when we delete messages. |
|
1.235 (+14 -2 lines) |
12/06/2006 02:50 AM |
Michael M Slusarz slusarz |
Fix *extremely* difficult to track down bug - we were doing an update instead
of a store when switching sort directions, which was causing the cache to
not be correctly updated with the updated cache key. Was causing 1 particular
installation to have 1 sort column on 1 mail server not updated correctly when
toggling - and I can't event begin to explain this behavior. |
|
1.234 (+15 -1 lines) |
09/16/2006 03:37 AM |
Michael M Slusarz slusarz |
Add _getSortedList(). |
|
1.233 (+12 -12 lines) |
09/04/2006 06:43 PM |
Michael M Slusarz slusarz |
coding standards: don't use is_null(). |
|
1.232 (+6 -6 lines) |
08/27/2006 04:55 AM |
Michael M Slusarz slusarz |
Add parameter to determine whether to include preview information. |
|
1.231 (+4 -5 lines) |
08/25/2006 10:44 AM |
Michael M Slusarz slusarz |
Yuck. The way we were storing data in the cache could cause a message list in
a virtual folder to have missing messages - since UIDs are not unique across
mailboxes. Fix this by changing the storage structure in the cache. |
|
1.76.10.60 FRAMEWORK_3 (+1 -2 lines) |
07/27/2006 10:15 AM |
Jan Schneider jan |
Remove debug line. Tags: IMP_4_1_3 |
|
1.230 (+2 -2 lines) |
07/18/2006 02:00 AM |
Michael M Slusarz slusarz |
Bug: 3171
Remove current mailbox information from session - allows multiple
simultaneous open IMP windows. |
|
1.76.10.59 FRAMEWORK_3 (+2 -2 lines) |
07/03/2006 09:34 AM |
Jan Schneider jan |
Fix undefined index, use logic from HEAD. |
|
1.229 (+11 -11 lines) |
06/03/2006 11:55 AM |
Michael M Slusarz slusarz |
Remove 'stream' as a session variable. it is nothing more than a disguised
global since it doesn't persist between page accesses.
Don't require us to pass the imap stream to several overriden functions since
we can do the necessary stream passing in the overriden functions themselves. |
|
1.228 (+3 -1 lines) |
05/31/2006 05:29 PM |
Michael M Slusarz slusarz |
Refactor code so Auth_imp:: only deals with authenticating to the IMAP server.
Auth_imp no longer automatically opens a connection to the current mailbox. We
must now manually call IMP_IMAP::changeMbox() anytime we are working with the
IMAP stream and require a connection to a mailbox. Much cleaner, and should
eliminate any issues with clearing the 'recent' flag incorrectly. |
|
1.227 (+2 -2 lines) |
05/28/2006 04:40 PM |
Michael M Slusarz slusarz |
learn to spell michael |
|
1.226 (+3 -2 lines) |
05/28/2006 04:39 PM |
Michael M Slusarz slusarz |
eliminate repetitive function calls in a loop. |
|
1.225 (+3 -3 lines) |
05/24/2006 12:07 PM |
Michael M Slusarz slusarz |
Bug: 3877
I *think* this fixes the issues in Bug 3877. Namely, we may not have the
current up-to-date mailbox list when we are removing the messages - since we
may be somewhere, like a search screen, where we only use the cached mailbox
and make no attempt to update the mailbox from the current state. Thus, if
messages have come in since the last time we directly accessed the mailbox,
they won't be in the sorted list and won't appear when we rewrite the cache
entry with the current imap_status information. Solution: simply update the
current cache entry. If this caused the mailbox to change (imap_status() info
message changes), this will already be caught the next time we need to view
the full mailbox. |
|
1.224 (+7 -6 lines) |
05/24/2006 11:38 AM |
Michael M Slusarz slusarz |
More tweaking (cleanups as I go through this code line-by-line). |
|
1.223 (+11 -1 lines) |
05/23/2006 01:16 PM |
Michael M Slusarz slusarz |
Rather than comparing objects directly (I don't trust PHP), this is probably
a better check to make sure we don't do multiple updates of a single object. |
|
1.222 (+19 -10 lines) |
05/21/2006 08:07 PM |
Michael M Slusarz slusarz |
Correctly fix sortlimit check. |
|
1.221 (+24 -24 lines) |
05/21/2006 07:09 PM |
Michael M Slusarz slusarz |
Add sort preferences to the IMAP cache information. Needed because the sort
preference may change in a mailbox without any user request - i.e. a mailbox
exceeded the sort limit. |
|
1.220 (+5 -3 lines) |
05/20/2006 02:24 AM |
Michael M Slusarz slusarz |
Only call getSort() when needed. |
|
1.219 (+7 -103 lines) |
05/20/2006 02:11 AM |
Michael M Slusarz slusarz |
Much improved sort preference handling - instead of handling in 3 different
functions in 2 different libraries, a single IMP::getSort() will now return
the correct sort preference for the current mailbox. |
|
1.218 (+47 -22 lines) |
05/19/2006 12:41 PM |
Michael M Slusarz slusarz |
1 less imap_search() call, but only if we are not hiding deleted messages.
imap_status() has truly become our friend. |
|
1.217 (+14 -29 lines) |
05/19/2006 12:20 PM |
Michael M Slusarz slusarz |
Move some display logic from IMP_Mailbox:: to mailbox.php.
If we don't need to hide deleted messages, just use imap_status() information
in newMessageCount() instead of doing a search. |
|
1.216 (+3 -2 lines) |
05/19/2006 08:29 AM |
Jan Schneider jan |
Restore PHP 4 BC. |
|
1.215 (+2 -3 lines) |
05/19/2006 06:07 AM |
Michael M Slusarz slusarz |
Fix message arrival number generation from cached data.
Remove unneeded var. |
|
1.214 (+46 -55 lines) |
05/19/2006 06:01 AM |
Michael M Slusarz slusarz |
A more extensible way of allowing us to (eventually) store more information
about message indices without increasing the number of class variables and
drastically increasing sessions sizes.
Clean up _setSorted() to make it easier to understand what it is being asked
to do at any given time. |
|
1.213 (+20 -2 lines) |
05/18/2006 04:54 PM |
Michael M Slusarz slusarz |
Cache the arrival order in the mailbox list cache - saves us an IMAP access
on every mailbox page load when the cache is still valid. |
|
1.212 (+3 -4 lines) |
05/16/2006 01:21 AM |
Michael M Slusarz slusarz |
only need imap_cache here in this method. |
|
1.211 (+15 -7 lines) |
05/16/2006 01:17 AM |
Michael M Slusarz slusarz |
re-add - we do need this. |
|
1.210 (+35 -26 lines) |
05/16/2006 12:58 AM |
Michael M Slusarz slusarz |
Compromise for mailbox caching - having mailbox_start set to either first
unseen or last unseen messages was killing the whole concept of caching - since
we would have to do a search every page to determine location. Instead, only
honor preference the first time we load mailbox; subsequent visits to mailbox
will start up where the user last left the mailbox. Honestly, this seems
to be better behavior anyway (and more like other mail clients) IMHO. |
|
1.209 (+16 -38 lines) |
05/16/2006 12:30 AM |
Michael M Slusarz slusarz |
clean up some unneeded/duplicative variables/functions. |
|
1.208 (+6 -3 lines) |
05/10/2006 03:53 PM |
Michael M Slusarz slusarz |
Bug: 3913
Fix seen flag when stripping part.
Save a call to flag() because it seems imap_append() accepts a list of flags to
set (not documented very well).
Make 2nd parameter to IMP_Mailbox::updateMailbox() optional.
Make sure if we invalidate the current mailbox object that we ensure
_buildMessage() will correctly re-build the next time we run it. |
|
1.207 (+18 -16 lines) |
05/10/2006 01:27 PM |
Michael M Slusarz slusarz |
getMailboxArrival() makes more sense in IMAP_Cache instead of mailbox caching.
Simplify cache expiration by having a single function that can do 3 different
types of cache expiration.
We need to make sure we expire cached results of imap_search() arrival searches
since mailbox actions may alter the results of these searches. |
|
1.206 (+5 -11 lines) |
05/07/2006 11:04 PM |
Michael M Slusarz slusarz |
Simplify code |
|
1.205 (+14 -5 lines) |
05/07/2006 11:02 PM |
Michael M Slusarz slusarz |
Need to expire any cached imap_status() information if we do anything to alter
the mailbox during the page access. |
|
1.204 (+28 -17 lines) |
05/06/2006 07:44 PM |
Michael M Slusarz slusarz |
Bug: 3877
Yet more improvements to mailbox list cache updates.
Biggest fix: when in search mailboxes, make sure to not only update list of
indices in the base mailbox of the messages, but also update the mailbox list
in the search mailbox entry. Therefore, we need to pass in mailbox information
with indices to updateMailbox() so that the search mailbox object can correctly
determine the array index from the UID. |
|
1.203 (+8 -6 lines) |
05/05/2006 01:41 AM |
Michael M Slusarz slusarz |
Rework IMP_Message:: so that the trigger to update the mailbox list cache
is via either expunging or flagging.
Do some fancy, smart indices manipulation when we are given an exact range
of messages to expunge. This allows us to selectively keep other messages
in the mailbox marked as deleted even after an expunge. This is great when
there are messages marked as deleted in a mailbox and we are using a trash
folder, we can now move messages when not using trash and the old message
is deleted instead of simply marked as deleted, etc. This costs us an
extra imap_search for deleted flags, but this shouldn't be too expensive of
a call and once we improve caching a bit more will save us in the long run. |
|
1.202 (+5 -7 lines) |
05/04/2006 07:14 PM |
Michael M Slusarz slusarz |
Don't need a 'move' update action (since a move is really either a
'flag' or 'delete' action). |
|
1.201 (+9 -36 lines) |
05/04/2006 07:06 PM |
Michael M Slusarz slusarz |
Move incrementing current indices to message.php. We only need to increment
these indices if we are in the message view and, from a design standpoint, this
is a UI issue anyway.
Vastly simplify IMP_Message::undelete().
No need to directly update mailbox cache on either copy or undelete. |
|
1.200 (+13 -6 lines) |
05/04/2006 04:01 PM |
Michael M Slusarz slusarz |
Correctly update mailbox list cache if expunging messages. |
|
1.199 (+50 -46 lines) |
05/04/2006 12:44 AM |
Michael M Slusarz slusarz |
More improvements to mailbox list cache updating. |
|
1.198 (+6 -5 lines) |
05/03/2006 12:10 PM |
Michael M Slusarz slusarz |
Can return success information and list of updated indices using a single
parameter. Now just need to use the list of updated indices to update the
mailbox status in updateMailbox(). |
|
1.197 (+4 -12 lines) |
05/03/2006 10:42 AM |
Michael M Slusarz slusarz |
no longer need this function now that setIndex() is public. |
|
1.196 (+7 -9 lines) |
05/03/2006 10:40 AM |
Michael M Slusarz slusarz |
Bug: 3876
Make the set index function public. |
|
1.195 (+36 -22 lines) |
05/03/2006 01:10 AM |
Michael M Slusarz slusarz |
Bug: 3867
Fix undefined function error. |
|
1.194 (+2 -2 lines) |
04/28/2006 01:38 AM |
Michael M Slusarz slusarz |
correct object |
|
1.193 (+15 -1 lines) |
04/28/2006 01:37 AM |
Michael M Slusarz slusarz |
Make sure _buildMessage() is only processed once per instantiation.
If $index is passed to singleton(), make sure it gets propogated to object. |
|
1.192 (+5 -16 lines) |
04/28/2006 01:28 AM |
Michael M Slusarz slusarz |
minor cleanups |
|
1.191 (+100 -113 lines) |
04/28/2006 12:51 AM |
Michael M Slusarz slusarz |
These changes seems to make caching work much, much better.
Search results seem to be working again.
We now cache thread objects.
We should only rebuild the mailbox list now in the following situations:
+ first access to mailbox
+ if mailbox has changed (per imap_status() call)
+ in message view, only when we reach the last message in list.
+ for search mailboxes, every mailbox access
What are we gaining? In cases 2 and 3 above, we used to always generate
the mailbox list - now we only regenerate if needed.
In case 1 above, we used to regenerate every time we switched mailboxes. now
we only regenerate when switching mailboxes if the mailbox has changed. |
|
1.190 (+4 -2 lines) |
04/27/2006 04:01 PM |
Michael M Slusarz slusarz |
Actually, it seems as if there are a few bugs left. Therefore, in order to
keep CVS working as expected, just rebuild the mailbox on every page load for
now. Inefficient, but it works. |
|
1.189 (+32 -64 lines) |
04/27/2006 03:54 PM |
Michael M Slusarz slusarz |
combine some duplicative functions.
many less calls to _buildMailbox().
Still not working entirely properly with search mailboxes, but doesn't seem
to be throwing errors anymore with these mailboxes and seems to be working just
fine for regular mailboxes. |
|
1.188 (+12 -1 lines) |
04/27/2006 12:14 AM |
Michael M Slusarz slusarz |
Improve mailbox cache updating. |
|
1.187 (+2 -1 lines) |
04/26/2006 11:26 PM |
Michael M Slusarz slusarz |
This got deleted accidentally. |