Commit graph

178 commits

Author SHA1 Message Date
Erin Schnabel
bdb5ae1bbd Corrected display (on Courier at least) of mailboxes with INBOX
prefix. INBOX was being added to the tree twice (was already the
root), and then because it was root, the link (with proper nesting)
wasn't being displayed.

Also corrected setting 'noselect' for INBOX (now tree root) -
was being errantly set as 'flag' which was causing errors about
not havign noselect set...

Also removed the places where it was checking whether or not
noselect was set for a mailbox - given the structure, noselect should
always be set - and we should get an error if it isn't (for boxlist
formed from LSUB).
2003-06-15 00:40:58 +00:00
Thijs Kinkhorst
9c129d3265 E_ALL notice removal 2003-06-13 10:42:59 +00:00
Erin Schnabel
20b51df26d UW Folder badness take two. 2003-05-01 04:56:50 +00:00
Erin Schnabel
eaccc266f1 Additional tweaks for folder create/rename/delete display and behavior. 2003-05-01 01:46:57 +00:00
Erin Schnabel
4626ea9a10 First crack at 725443. 2003-05-01 00:09:14 +00:00
jangliss
9e667d7a4a Empty $mailbox causes sent append to break. 2003-04-14 18:21:44 +00:00
Thijs Kinkhorst
b2cd55c4bd Fix copyerror, this eliminates some warnings of undefined index in the msg list. 2003-03-10 16:31:57 +00:00
stekkel
0c732bedbd lot's of fixes:
* removed htmlspecialchars from charset_decode because of double
htmlspecialchars calls
* fix for \NoSelect folders
* code cleanups
* added htmlspecialchars for displayattachmnent (filename)
* fixed charset issue with base64 encoded strings (decodeHeader)
2003-02-24 18:49:53 +00:00
Erin Schnabel
a28c320c37 Fix for 636577.
Make subfolders of Sent/Drafts show To: instead of From:
(like Sent and Drafts do already).
Needs some UW verification but should work pretty well.
2003-02-07 20:34:09 +00:00
tassium
c153825d61 Removed function sqimap_mailbox_has_children() from imap_mailbox.php
Marc pointed out that \HasChildren is an extension, not part of IMAP4rev1.
Got the effect I needed from already existing code.

Summary: Display purge link for trash in all cases, this time done in accordance with RFC 2060. (Eliminates an extra IMAP call, too.)
2003-01-10 15:48:49 +00:00
tassium
fa8f8b94e4 Fixed left_main.php to show purge link for trash if it contains folders but no messages.
New function in functions/imap_mailbox.php: sqimap_mailbox_has_children(mailbox,stream)
(Stream is optional)
2003-01-09 19:22:15 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
stekkel
44fd88a40a fix for checking specialmailboxes.
This solves the problem when a special mailbox isn't set and IsBoxBelow
gives a warning
2002-11-14 10:29:30 +00:00
Thijs Kinkhorst
342677f96d Of course the real fix for using utf7-functions inconsistently is making them more
consistent, so from now on we assume that all input to these imap_mailbox_ functions is
utf7 in stead of non-utf7 for some and utf7 for others.
2002-10-28 15:01:49 +00:00
Thijs Kinkhorst
33c53f089b Fix inconsequent use of utf7_encode which causes problems with creating/renaming
folders with special chars like '&': sometimes doesn't get encoded, other times does,
sometimes gets encoded twice.
2002-10-28 14:24:45 +00:00
Thijs Kinkhorst
fbd91a1a58 Merge utf7_decode_local and utf7_encode_local into one file. 2002-10-28 13:00:44 +00:00
Thijs Kinkhorst
bc654ad1e2 Obsolete array.php 2002-10-26 17:10:21 +00:00
indiri69
0c68f83077 Some code cleanups. 2002-10-24 16:35:16 +00:00
sizzlingmercury
a55cce3a7a Folder Selection changes integrated from sizzle-ui stream..
Options for how folder selection list is displayed is on Folder Options page
Folder lists on Search, Folders, and Folder Options Pages, as well
as Folder selection lists used by the Message Index and the
Delete_move_next plugin all modified to use new Option list
creation method in imap_mailbox.
2002-10-24 05:45:48 +00:00
stekkel
1c7d5b8467 speed improvements 2002-10-18 11:34:50 +00:00
stekkel
fb711df79e speed improvements mailbox_list. Need testing before we release! 2002-10-18 10:50:12 +00:00
robsiemb
0ddd8468f9 more noselect fixes 2002-09-17 20:57:13 +00:00
robsiemb
afb51c2333 don't STATUS a mailbox that isn't selectable 2002-09-17 20:48:06 +00:00
thomppj
de9848ded8 A terrible pile of things done to the code. Did a little bit of SM_PATH
stuff in plugins.

Then I moved some files:
  src/validate.php         -> include/validate.php
  src/load_prefs.php       -> include/load_prefs.php
  src/options_personal.php -> include/options/personal.php
  src/options_display.php  -> include/options/display.php
  src/options_folder.php   -> include/options/folder.php

Basically, the concept here is that src/ should ONLY contain files that
actually get called from the web browser as a php script directly. All
of these files do not really contain functions or anything (so the
functions/ directory did not really make sense), but were more strictly
include files.

Of course, the name functions for a directory is bad organization, IMHO,
anyhow. I guess class would fall in the same category. Oh well, some of
that might get fixed someday.

So, new rule. Only put it in src/ if it gets called directly.

That was really sort of an unwritten rule before. However, since it was
never really enforced or officialized, things got sloppy.

I think I have everything fixed in the CORE with this traumatic moves. I
am sure all of the plugins will be broken. Oh well, the error messages
should be pretty loud and easy enough to fix.
2002-09-06 01:16:40 +00:00
thomppj
9001d31cf8 Converted all files in functions/ to use SM_PATH. This will break all
plugins. Each callable script needs a:

  define('SM_PATH', '../../');

Or something like that put at the top.
2002-09-06 00:31:43 +00:00
robsiemb
550f4e31ee correctly detect \Noselect in LSUB responses, and set $mbx->is_noselect
so that the folder tree does not allow you to select a nonexistant
mailbox
2002-08-29 15:43:38 +00:00
philippe_mingo
c8103ced19 Marc check this. 2002-08-26 09:38:08 +00:00
jmunro
106fbdca43 fix for bug #578156 2002-07-21 04:16:41 +00:00
stekkel
6855005803 fix for expunge with UID in the sid 2002-07-05 17:07:48 +00:00
stekkel
7a28df6a9e modified sqimap_expunge to return the number of expunged messages and to
give and optional id range to expunge.
2002-07-05 13:12:56 +00:00
stekkel
9d7031cde4 put all the information returned from a select in the result 2002-07-03 13:50:41 +00:00
jmunro
0eec03f0b9 fix for bug #559257 2002-06-17 14:27:53 +00:00
jmunro
6a3893a4f0 this is a fix for the LSUB with a % when getting the folder list. This makes the % argument an option in conf.pl, menu 3 option 18. The default is to not use the "%". See patch #452178 for more info. 2002-06-11 14:52:54 +00:00
Thijs Kinkhorst
87364ac55e Remove $boxesnew from global to make new way of getting mailboxlist
work.
2002-06-02 11:44:53 +00:00
jmunro
01c46aa9b9 fix for folders with '*'. bug #552180 2002-05-27 23:55:30 +00:00
stekkel
f78575b90e restore imap_utf7 encoding 2002-05-23 13:20:01 +00:00
stekkel
ad289878f7 fix for alternative mailbox-tree 2002-05-23 13:11:11 +00:00
stekkel
c4bd150546 fix for mailboxes with trailing delimiter in the new mailboxtree 2002-05-17 08:27:41 +00:00
centaurix
480cf248b1 patch #551871 for feature request #545070 from Stefan Tietke (stfn) regarding utf7 imap encoding 2002-05-16 12:17:15 +00:00
stekkel
9b8e49abcd fixed missed folder_prefix in new mailboxtree 2002-05-16 09:24:56 +00:00
stekkel
906a6835b8 Added new experimental functions for mailbox-tree's 2002-05-15 10:05:19 +00:00
jmunro
eb7eb24b9b thread sort view is now saved per folder thanks Robert Packard 2002-04-02 14:55:35 +00:00
philippe_mingo
13cfb682e6 Non-ascii characters caused problems with SVN function and were replaced
with a ? by SourceForge.net in your original log message, which follows:
Asunto: [SM-DEVEL] Bug in mime.php:decodeHeader()
De: Christian Schmidt <christian@ostenfeld.dk>
Fecha: S?b, 23 de Marzo de 2002, 14:48

Currently, the decodeHeader decodes headers containing several
encoded-words incorrectly. E.g. the header "=?iso-8859-1?Q?=C9?= and
=?iso-8859-1?Q?=E9?=" is decoded into "? and ?" and not into "? and ?"
as expected.

Also, it currently does not ignore white-space between consecutive
encoded-words as it should.
2002-03-24 08:09:35 +00:00
philippe_mingo
05747bc945 Optimization:
readMailboxParent was only been used in imap_mailbox. Removed from
strings.php as this is a frequent loaded module.
2002-03-23 16:23:57 +00:00
jmunro
ac4448bf2c fixed a problem with preg_match when mailbox delimiter is "/" 2002-03-19 23:33:56 +00:00
jmunro
0691e83458 a little more clean-up 2002-03-19 23:00:42 +00:00
jmunro
86a658444d tweaking special folder sub folder fix 2002-03-19 22:23:48 +00:00
jmunro
997c7e5434 fix orphaned subfolders on the folder list when they are subfolders of a special mailbox and "list special boxes first" is on 2002-03-19 18:22:05 +00:00
indiri69
5efca09a45 Tons of formatting changes by Jon Tai.
Didn't merge changes to imap_search.php, as I wanted to take a
closer look at it.

Jon Tai said:
I cleaned up the four imap_*.php files - fixed comments so they use the
/* */ style, fixed spacings, added { } around logic blocks that didn't
have them, etc.

I also hacked sqimap_find_email() in imap_general.php to support strings
in the form of "lehresma@css.tayloru.edu (Luke Ehresman)".
2002-03-16 19:44:50 +00:00
jmunro
0a4194b3fb filter fix on folder/rename is back in. added hooks back to imap_mailbox.php, reworked function in filters.php. should work now. 2002-03-12 20:40:03 +00:00