Revisions for imp/lib/Folder.php

Location: [ Horde ] / imp / lib / Folder.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.227 (+2 -2 lines) 11/09/2008 02:38 AM Michael M Slusarz slusarz

Add a condensed version of Horde_Imap_Client:: for now so that we can remove
Horde_Imap_Client from CVS.

1.226 (+75 -70 lines) 10/13/2008 04:51 PM Michael M Slusarz slusarz

More merges from my private dev branch.

1.225 (+6 -4 lines) 10/11/2008 03:04 AM Michael M Slusarz slusarz

Point to new location of removeBareNewlines().

1.224 (+2 -3 lines) 10/09/2008 01:37 AM Michael M Slusarz slusarz

Second parameter doesn't do anything and no need to return reference.

1.223 (+2 -2 lines) 08/15/2008 03:54 AM Michael M Slusarz slusarz

small tweak.

1.130.10.48 FRAMEWORK_3 (+11 -19 lines) 08/08/2008 01:07 AM Michael M Slusarz slusarz

Bug: 7157
MFH:
1.222     +11 -19    imp/lib/Folder.php
1.203     +36 -10    imp/lib/IMAP/Tree.php

Tags: IMP_4_3, IMP_4_3_RC2

1.222 (+11 -19 lines) 08/07/2008 05:00 PM Michael M Slusarz slusarz

Bug: 7157
Add parameter to IMP_Tree::folderList() to allow obtaining a partial folder
list.  Use this partial folder list in IMP_Folder::rename().
Make sure to add the original renamed folder to the list of deleted folders
in rename().

1.130.10.47 FRAMEWORK_3 (+4 -4 lines) 03/10/2008 01:13 PM Michael M Slusarz slusarz

IMP_MailboxCache -> IMP_MessageCache.

Tags: IMP_4_2_1_RC1, IMP_4_2, IMP_4_2_RC4, IMP_4_2_RC3

1.221 (+4 -4 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.130.10.46 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:31 AM Jan Schneider jan

Happy New Year

Tags: IMP_4_2_RC2

1.220 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.130.10.45 FRAMEWORK_3 (+35 -41 lines) 12/26/2007 01:59 AM Michael M Slusarz slusarz

MFH 1.219

1.219 (+35 -41 lines) 12/26/2007 01:58 AM Michael M Slusarz slusarz

Same update code used in both rename() and delete() - abstract out so we
ensure that we are always doing the necessary updating in both places (e.g.
we were missing a step in rename() previously).

1.130.10.44 FRAMEWORK_3 (+163 -243 lines) 12/20/2007 08:59 AM Jan Schneider jan

Merge from HEAD.

1.218 (+5 -11 lines) 11/01/2007 01:25 AM Michael M Slusarz slusarz

On second thought, only show notification for original folder rename -
showing notification for all subfolders may result in thousands of
notification messages.

Tags: BEFORE_MERGE_3_2, IMP_4_2_RC1

1.217 (+27 -52 lines) 11/01/2007 01:18 AM Michael M Slusarz slusarz

Bug: 5764
Upon re-reading of RFC, IMAP servers *MUST* rename all child folders if the
parent folder is renamed.  Thus, don't even attempt to hack around this
problem - if the IMAP server doesn't rename child folders, then it is
totally broken.
Additionally, caught two instances of calling expireCache() where we were
not passing in the mailbox name.

1.216 (+4 -5 lines) 09/26/2007 01:59 PM Michael M Slusarz slusarz

Looks like imap_status(), on some servers, will kill the IMAP stream if the
mailbox does not exist.  Stupid c-client.  Thus, we need to do this check
another way.

1.215 (+3 -1 lines) 09/26/2007 01:15 PM Michael M Slusarz slusarz

Short circuit fixed folders test if it is not defined.

1.214 (+11 -7 lines) 09/20/2007 05:27 PM Jan Schneider jan

Allow maintenance tasks to rename and delete fixed folders (Bug #5592).

1.213 (+1 -2 lines) 08/01/2007 12:11 AM Chuck Hagenbuch chuck

Jon has assigned his copyrights to The Horde Project.

Tags: IMP_4_2_ALPHA

1.130.10.43 FRAMEWORK_3 (+3 -4 lines) 07/18/2007 04:09 PM Chuck Hagenbuch chuck

MFH: [cjh] Lower memory usage when downloading folders
(Andrew Morgan <morgan@orst.edu>).

Tags: IMP_4_1_6, IMP_4_1_5

1.212 (+3 -4 lines) 07/18/2007 04:09 PM Chuck Hagenbuch chuck

[cjh] Lower memory usage when downloading folders
(Andrew Morgan <morgan@orst.edu>).

1.211 (+2 -2 lines) 06/27/2007 01:23 PM Jan Schneider jan

Bump year, looks like a missed a few last time.

1.210 (+9 -1 lines) 06/25/2007 12:40 PM Jan Schneider jan

Add configuration for folders that may not be modified.

1.209 (+9 -10 lines) 06/15/2007 12:12 PM Michael M Slusarz slusarz

Cleaner rename algorithm that avoids a preg_replace() call.

1.208 (+2 -2 lines) 06/05/2007 12:43 PM Jan Schneider jan

Use our own set of IMAP flags to not unnecessarily reopen mailboxes.

1.207 (+4 -4 lines) 02/09/2007 01:44 AM Michael M Slusarz slusarz

Use unaliased keys to access imap tree elements.

1.130.10.42 FRAMEWORK_3 (+3 -3 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

Tags: IMP_4_1_4, IMP_4_1_4_RC1

1.206 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

1.205 (+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.204 (+3 -3 lines) 12/30/2006 03:24 PM Jan Schneider jan

Standardize copyright wrapping and spacing.

1.130.10.41 FRAMEWORK_3 (+3 -3 lines) 12/01/2006 03:41 PM Michael M Slusarz slusarz

MFH: CHANGES - 1.993; Folder.php - 1.203

1.203 (+12 -9 lines) 12/01/2006 03:20 PM Michael M Slusarz slusarz

Always subscribe to created folders.

1.202 (+4 -19 lines) 10/04/2006 01:36 AM Michael M Slusarz slusarz

Always unsubscribe from folder when deleting, even if subscriptions is not
currently on.

1.201 (+4 -4 lines) 09/12/2006 12:05 PM Michael M Slusarz slusarz

no need to rebuild VF list during a session.

1.130.10.40 FRAMEWORK_3 (+6 -1 lines) 09/04/2006 11:47 PM Chuck Hagenbuch chuck

MFH: catch empty folder names.
Bug: 4380

1.200 (+6 -1 lines) 09/04/2006 11:43 PM Chuck Hagenbuch chuck

Catch empty folder names in several places.

1.199 (+2 -2 lines) 09/04/2006 06:43 PM Michael M Slusarz slusarz

coding standards: don't use is_null().

1.198 (+19 -1 lines) 08/09/2006 09:21 PM Michael M Slusarz slusarz

Bug: 4245
Make sure all folder caches are emptied when we rebuild the folder tree.

1.130.10.39 FRAMEWORK_3 (+7 -2 lines) 08/09/2006 09:10 PM Michael M Slusarz slusarz

Bug: 4234
Fix subscriptions when renaming.
Change current mailbox if current mailbox is renamed.

Tags: IMP_4_1_3

1.197 (+3 -11 lines) 06/30/2006 10:39 AM Michael M Slusarz slusarz

Add IMP::removeBareNewlines().

1.130.10.38 FRAMEWORK_3 (+2 -2 lines) 06/08/2006 01:44 AM Michael M Slusarz slusarz

Bug: 4015
MFH 1.196

Tags: IMP_4_1_2

1.196 (+2 -2 lines) 06/08/2006 01:43 AM Michael M Slusarz slusarz

Bug: 4015
Correctly compare folder names without the server prefix.

1.195 (+33 -20 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.194 (+27 -36 lines) 05/31/2006 05:55 PM Michael M Slusarz slusarz

Most likely more efficient to just use an imap_status() call here, not to
mention it prevents us from keeping cached information in two places.
Make sure we expire folder cache information when folders are deleted.

1.193 (+1 -2 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.192 (+1 -2 lines) 05/17/2006 01:44 AM Michael M Slusarz slusarz

Remove unneeded @since entries and fix a few others.

1.191 (+2 -2 lines) 05/09/2006 05:53 PM Jan Schneider jan

Fix parenthesis.

1.190 (+4 -6 lines) 05/04/2006 10:18 PM Michael M Slusarz slusarz

cache values correctly again.

1.189 (+3 -3 lines) 05/04/2006 10:16 PM Michael M Slusarz slusarz

Remove debug code.

1.188 (+26 -94 lines) 05/04/2006 10:13 PM Michael M Slusarz slusarz

Simplify this code a *ton* by simply using the cached values from IMAP_Tree.
Should enable us to only have to call imap_list()/imap_lsub() once per
level/per login.

1.187 (+3 -3 lines) 04/26/2006 12:36 AM Michael M Slusarz slusarz

Remove deprecated assign by reference for new object instantiations.

1.130.10.37 FRAMEWORK_3 (+10 -14 lines) 03/28/2006 05:25 PM Michael M Slusarz slusarz

Bug: 3557
MFH 1.186

Tags: IMP_4_1_1

1.186 (+10 -14 lines) 03/28/2006 05:23 PM Michael M Slusarz slusarz

Bug: 3557
Fix for inconsistent IMAP wildcard behavior.

1.185 (+4 -2 lines) 03/24/2006 12:53 AM Michael M Slusarz slusarz

we need to pass a single mailbox name in to setSort(), not an array.

1.130.10.36 FRAMEWORK_3 (+2 -2 lines) 03/22/2006 05:23 AM Jan Schneider jan

MFH: 1.184

1.184 (+2 -2 lines) 03/22/2006 05:12 AM Jan Schneider jan

Only subscribe to folders if necessary.

1.183 (+4 -1 lines) 03/12/2006 08:27 PM Michael M Slusarz slusarz

Bug: 1483
Allow user to save per-folder sort preferences.

1.130.10.35 FRAMEWORK_3 (+2 -2 lines) 03/01/2006 11:34 AM Jan Schneider jan

MFH: 1.182

Tags: IMP_4_1

1.182 (+2 -2 lines) 03/01/2006 09:55 AM Jan Schneider jan

Looks like Thunderbird/Seamonkey doesn't export sender address with mbox files.

1.130.10.34 FRAMEWORK_3 (+6 -3 lines) 02/21/2006 01:40 AM Michael M Slusarz slusarz

MFH 1.181

1.181 (+6 -3 lines) 02/21/2006 01:39 AM Michael M Slusarz slusarz

a container != a folder.

1.130.10.33 FRAMEWORK_3 (+5 -7 lines) 02/20/2006 08:55 PM Michael M Slusarz slusarz

MFH 1.180

1.180 (+5 -7 lines) 02/20/2006 08:51 PM Michael M Slusarz slusarz

more folder list fixes

1.130.10.32 FRAMEWORK_3 (+72 -50 lines) 02/20/2006 08:33 PM Michael M Slusarz slusarz

MFH: Folder.php - 1.178, 1.179; Client.php - 1.37;
rename_sentmail_monthly.php - 1.34

1.179 (+16 -7 lines) 02/20/2006 08:31 PM Michael M Slusarz slusarz

Speed up IMP_Folder::exists() by checking IMP_Tree:: before doing a server
query.
Fix parsing the results of that server query.
Remove second parameter to exists.  Correctly update exists() cache internally
instead.

1.178 (+58 -45 lines) 02/20/2006 08:18 PM Michael M Slusarz slusarz

Several fixes dealing with correctly showing folders in hidden namespaces.
Slightly faster performance when creating folder lists as we only access the
server once for all known namespaces combined (instead of once each).
Fix IMP_Folder::exists() - as far as I can tell, it was always returning false.

1.130.10.31 FRAMEWORK_3 (+9 -4 lines) 02/15/2006 06:16 PM Michael M Slusarz slusarz

MFH 1.177

1.177 (+9 -4 lines) 02/15/2006 06:13 PM Michael M Slusarz slusarz

Bug: 3342
Fix folder list display at last (I hope).

1.130.10.30 FRAMEWORK_3 (+24 -23 lines) 02/15/2006 01:10 PM Michael M Slusarz slusarz

MFH: Folder.php - 1.175, 1.176; Sort.php - 1.1

1.176 (+2 -2 lines) 02/15/2006 01:08 PM Michael M Slusarz slusarz

Track changes to IMAP_Sort::.

1.175 (+24 -23 lines) 02/15/2006 01:05 PM Michael M Slusarz slusarz

Fix display of folders in personal (non-empty) namespaces.
Add IMP_IMAP_Sort:: to work around BC breaking issue in IMAP_Sort::.

1.130.10.29 FRAMEWORK_3 (+13 -19 lines) 02/15/2006 12:17 AM Michael M Slusarz slusarz

MFH 1.174

1.174 (+13 -19 lines) 02/15/2006 12:15 AM Michael M Slusarz slusarz

simplify code

1.130.10.28 FRAMEWORK_3 (+26 -48 lines) 02/14/2006 09:33 PM Michael M Slusarz slusarz

Bug: 3342
MFH 1.173

1.173 (+26 -48 lines) 02/14/2006 09:31 PM Michael M Slusarz slusarz

Bug: 3342
Clean up folder generation code.  hopefully this fixes any errors with
misplaced container elements.

1.130.10.27 FRAMEWORK_3 (+21 -51 lines) 01/29/2006 03:41 PM Michael M Slusarz slusarz

MFH: Folder.php - 1.172; Tree.php - 1.83, 1.84

Tags: IMP_4_1_RC3, IMP_4_1_RC2

1.172 (+21 -51 lines) 01/29/2006 03:37 PM Michael M Slusarz slusarz

We need a way to indicate what IMAP_Tree object we want the program to update
globally since IMAP_Tree is called all over the place.  Therefore, revert
the IMP_Folder changes and instead define a global variable that can be
used to specify IMAP_Tree init parameters.

1.171 (+6 -6 lines) 01/29/2006 01:06 AM Michael M Slusarz slusarz

MFB: Don't load IMP_Tree unless needed.

1.130.10.26 FRAMEWORK_3 (+55 -25 lines) 01/29/2006 01:05 AM Michael M Slusarz slusarz

MFH 1.170

1.170 (+51 -21 lines) 01/29/2006 01:00 AM Michael M Slusarz slusarz

Allow us to use an external IMAP_Tree object for folder changes (needed for
dimp).

1.130.10.25 FRAMEWORK_3 (+2 -3 lines) 01/25/2006 09:03 PM Michael M Slusarz slusarz

MFH: Tree.php - 1.79; Folder.php - 1.169

1.169 (+2 -3 lines) 01/25/2006 06:28 PM Michael M Slusarz slusarz

Add IMP_Tree::rename().
Fixes bug when renaming - keep polled state for new folder.

1.130.10.24 FRAMEWORK_3 (+1 -2 lines) 01/21/2006 02:51 PM Michael M Slusarz slusarz

MFH 1.168

1.168 (+1 -2 lines) 01/21/2006 02:29 PM Michael M Slusarz slusarz

unneeded bit of logic

1.130.10.23 FRAMEWORK_3 (+2 -2 lines) 01/19/2006 11:57 PM Michael M Slusarz slusarz

Bug: 3307
MFH: flag() is the exclusive way we should set the seen flag.

1.130.10.22 FRAMEWORK_3 (+7 -13 lines) 01/17/2006 11:58 PM Michael M Slusarz slusarz

MFH: New IMP_Search:: framework.  Since HEAD and FRAMEWORK_3 are significantly
different in lots of areas, I had to do quite a bit of manual merging -
hopefully I got everything.

1.167 (+7 -13 lines) 01/16/2006 03:36 PM Michael M Slusarz slusarz

Bug: 3255
Merge after: 1 week
Rewrite of IMP_Search:: and IMP_VFolder::.  We shouldn't need a separate
vfolder library as the vfolder stuff is simply a subset of our searching
code.
Problems with old code: It was impossible to know for sure whether we were
currently in a virtual mailbox vs. just a search mailbox since there was
no location we could reliably check for this.  Now, IMP_Search does all the
work for us - $imp_search will always be available and global if we are using
IMAP.
I realize this is a lot of changes during the RC phase, but necessary since
there were multiple bugs/issues I have found that could not be fixed without
this change (e.g. Bug 3255).  I'm going to give this a few days of testing in
HEAD before I merge so dont expect it in 4.1 immediately.

1.130.10.21 FRAMEWORK_3 (+3 -3 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: IMP_4_1_RC1

1.166 (+3 -3 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.130.10.20 FRAMEWORK_3 (+2 -3 lines) 12/28/2005 02:08 AM Michael M Slusarz slusarz

MFH: Remove 'dotfiles' server parameter.

1.165 (+2 -3 lines) 12/28/2005 02:06 AM Michael M Slusarz slusarz

Remove 'dotfiles' server parameter.

1.130.10.19 FRAMEWORK_3 (+2 -2 lines) 11/29/2005 05:02 PM Michael M Slusarz slusarz

MFH 1.164

1.164 (+2 -2 lines) 11/29/2005 05:00 PM Michael M Slusarz slusarz

copy/paste error

1.130.10.18 FRAMEWORK_3 (+3 -4 lines) 11/29/2005 04:43 PM Michael M Slusarz slusarz

Bug: 3019
MFH 1.163

1.163 (+3 -4 lines) 11/29/2005 04:42 PM Michael M Slusarz slusarz

Bug: 3019
Don't try to split a mailbox name if there is no delimiter.

1.130.10.17 FRAMEWORK_3 (+8 -8 lines) 11/29/2005 04:40 PM Michael M Slusarz slusarz

MFH 1.162

1.162 (+6 -6 lines) 11/29/2005 04:13 PM Michael M Slusarz slusarz

remove some unneeded variables

1.161 (+3 -3 lines) 11/29/2005 02:03 PM Michael M Slusarz slusarz

Bug: 3019
I am dumbfounded as to why this does not throw a warning on my system, even
with E_ALL on.  This index simply does not exist.  (Although I wonder if this
has to do with the $foo{} -> $foo[] switches in the PHP core).

1.160 (+11 -1 lines) 11/10/2005 11:03 PM Michael M Slusarz slusarz

Delete mailboxes from the cache when they are renamed or deleted.

1.159 (+2 -2 lines) 11/09/2005 02:56 PM Michael M Slusarz slusarz

Never set the 'seen' flag unless we explicitly call flag() (i.e. don't let
imap_body() or imap_fetchbody() automatically do it for us).

1.130.10.16 FRAMEWORK_3 (+16 -16 lines) 11/03/2005 06:18 AM Jan Schneider jan

MFH: 1.158

Only showing the 100 latest revisions. Show all revisions? (may take a while).