Commit graph

3121 commits

Author SHA1 Message Date
Thijs Kinkhorst
125af3afaf drop very old and very obsolete function 2006-08-07 18:47:59 +00:00
tokul
6ed4d410df information about #1312915 fix and phpdoc updates 2006-08-05 11:21:35 +00:00
tokul
1fe8997b16 don't add delimiter to folder name, when folder with subfolders is
created. Use sqimap_mailbox_create() $type option. If suffix is added,
sqimap_mailbox_create() uses incorrect subscription command (#1315912).
2006-08-05 10:42:20 +00:00
tokul
87871e2f42 username should not be empty 2006-08-05 08:22:45 +00:00
tokul
f5f9bc8e67 don't tag subfolders of Drafts,Trash and Sent as special in folder management
page. Allows rename and delete operations with subfolders.

don't treat INBOX.Trash as special on Courier. Trash folder can have subfolders
in courier. Only XMAGICTRASH extension can cause errors when trash folder is
deleted. Courier does not document commands that allow to detect folder that
is used as magic trash.
2006-08-04 09:17:43 +00:00
tokul
21a68c9e3f phpdoc source parsing locks on trailing comments. 2006-08-04 07:36:52 +00:00
Thijs Kinkhorst
4bda93b39e some code simplification 2006-08-03 16:06:47 +00:00
Thijs Kinkhorst
c3f1d98653 Fixed resuming of compose when session expired while writing, and make
sure the code only sets those variables that are needed in compose and
are not already set. Thanks James Bercegay from GulfTech for pointing
this out.
2006-08-03 15:03:44 +00:00
Thijs Kinkhorst
c1b2637b2d templatize folder management (create, rename, delete, subscribe).
it's not complete in the sense that it still uses $color etc, feel free to
cssify! I'd like feedback if this is not the proper way to templatize something.
2006-08-01 15:34:19 +00:00
Fredrik Jervfors
7e5335065a Fixing PHP notice which was introduced in 1.42 of this file. If this should be somewhere else, considering the centralized init, pleae move it. 2006-07-29 06:47:59 +00:00
Thijs Kinkhorst
e703e30bdd Make the base for the SquirrelMail URL configurable. Adds a new variable
config_base_location to config.php and a new option to conf.pl. This is
to prevent problems in installs where our heuristic doesn't work
correctly (#1521299, #1460675, #1110064, #1000850, #1113791)

I believe this is one of the most commonly reported issues in current
stable. That's why I've created the code to be minimally invasive: it only
allows to set the proto+host+port part, because this means all changes
can remain within get_location().

I want to backport this bugfix to stable so I appreciate any feedback
on it. And also of course if you think that this is the wrong way to
solve it :)
2006-07-17 14:42:06 +00:00
tokul
7b57ed883e adding safety checks. if invalid backend number was used, script used invalid
object calls
2006-07-15 12:35:16 +00:00
tokul
59ae6f3ac2 removing trailing ?> from function scripts 2006-07-15 12:01:32 +00:00
vanmer
1555dc6e62 - added template output for style links before link to style.php 2006-07-09 22:29:07 +00:00
Thijs Kinkhorst
be88f14bc2 make a start with adding labels for html form elements. this aids disabled
users, but also e.g. allows one to click the text next to a checkbox to
select it.
2006-07-09 22:26:05 +00:00
tokul
94c3c393b0 Address book file backend will break with error message, if required
address book fields are not available. Prevents address book corruption
and address book format violations that can cause PHP notices.

Added line length setting in local_file address book backend (#1181561).
2006-06-27 10:08:53 +00:00
Fredrik Jervfors
339f867fb5 Using IEC standard prefixes. 2006-06-15 16:35:26 +00:00
tokul
5e5c23dca1 msgs_list_copy arguments and return codes differ from msgs_list_move.
php 4.3.10 does not complain about boolean true feeded to foreach. new php
versions do complain about it. thanks to Henrik Andreasen
2006-06-12 16:26:47 +00:00
indiri69
f65b92a48d Stupid IE 6 bugs should use stupid IE conditionals that conform to HTML standards. Tested in IE 6 and Firefox 1.5. 2006-06-12 02:27:11 +00:00
tokul
5064335080 Removed html formating from address book backend classes. Added
fullname() method to addressbook_backend class. Moved
htmlspecialchars() sanitizing from address book backend classes to
html output code. If third party code displays errors from address
book object in html, errors must be sanitized and ASCII line feeds
should be converted to html line breaks.

'addressbook' strings are replaced with 'address book'. Spellcheck
fails on 'addressbook'.
2006-06-04 12:42:24 +00:00
tokul
14b6285361 adding message copy buttons. 2006-06-04 09:18:20 +00:00
tokul
853981da02 wrong default left after testing backend. 2006-06-03 17:23:59 +00:00
tokul
d0dd94c15c Adding write support to address book ldap backend. Patch by David Hardeman
(#1495763).
2006-06-03 17:14:49 +00:00
tokul
eedb860aa6 translating folder names in selection box. 2006-05-30 16:30:00 +00:00
tokul
b47b0babc1 translate folder names in mailbox tree 2006-05-29 17:30:05 +00:00
tokul
37b294db59 don't use $r == DB_OK checks, because they cause PHP warnings when $r is DB_Error object.
turned on field case portability for Oracle.
escaped SQL wildcards in search() method
handle nickname changes in modify() method. Users could get DB error when new nickname is already in use
make search case insensitive in serch() method.
2006-05-28 09:13:03 +00:00
Alexandros Vellis
95296e46ea Fix capability retrieval for "double" cases in server capability response, for instance in a new Cyrus: SORT SORT=MODSEQ . This patch will eliminate a notice that was displayed. 2006-05-26 12:53:18 +00:00
Thijs Kinkhorst
7392b8753d Take X-Forwarded-Host HTTP header in consideration when constructing
base_uri for redirects; reduces problems with transparent proxies
(#1488590). Also test strcasecmp on literally '0' with respect to
#1047883 although I don't think it's absolutely necessary, it's safest.
2006-05-18 15:09:30 +00:00
tokul
05d7753547 documentation fix. 2006-05-15 18:38:51 +00:00
tokul
f3a2225bc5 documenting function changes
sanitizing imap folder name in plain_error_message function.
2006-05-14 17:36:16 +00:00
tokul
4115a9110e updating error_box() function calls. second argument was modified.
using squirrelmail template code for closing html tags.
added some comments in footer.tpl in order to detect generated footer
2006-05-14 17:09:29 +00:00
tokul
edd3a34104 handle DB.php load errors inside preference class and don't worry about
error_box function and other code.
2006-05-14 16:13:02 +00:00
tokul
aa6d0623eb validator.w3.org fails if id attribute contains brackets 2006-05-14 14:59:46 +00:00
tokul
e13f94232d moving error message to class constructor function. Prevents
output when functions/abook_database.php is loaded.
2006-05-14 14:58:10 +00:00
tokul
dbd9f69d03 resubmitting last Monday updates and adding php 5.1.0 timezone support 2006-05-13 19:11:08 +00:00
tokul
044df44299 same text icon style as the one that is used in msg listing. Using nbsp
instead of regular space in order to prevent wrapping
2006-05-06 06:48:34 +00:00
Thijs Kinkhorst
5641a73844 Correct references trimming: array_walk can't in all PHP versions use
a callback function that is a member function. Moving the function out
of the class seems the best solution.
2006-05-03 13:37:53 +00:00
tokul
41165180cf extra sanitizing was added in B and Q header decoding, when SquirrelMail tried to
convert header to user's character set (#1460638).
2006-04-24 17:47:58 +00:00
tokul
ca0bf2e239 if $key is set to false, sqimap_login() function will use sqauth_read_password()
to retrieve user password.
sqimap_login() calls in plugins are modified to use this code.
It allows to centralize place that is used to access password information.

Older way is preserved for backwards compatibility and different IMAP login
credentials.
2006-04-19 18:03:24 +00:00
tokul
a2a55ecd09 information about IE Mac 2006-04-13 16:57:49 +00:00
stekkel
9d27b0b41d The header function of PHP sucks hard.
By sending multiple headers at once i got the HttpOnly thing working. Now
PHP 5.1.2 and 4.4.2 forbid that because of security reasons. So i fallback
to setcookie until this is resolved.
2006-04-06 20:56:26 +00:00
stevetruckstuff
a5413ffe04 Create template for errors when not logged in. 2006-04-06 20:01:45 +00:00
stevetruckstuff
92c4b751b7 Fixed typo in error handling in displayHTMLHeader() 2006-04-06 19:51:09 +00:00
stekkel
d971de24d8 Fix for compose in new. Now use the constant SM_BASE_URI.
TODO, move this function to the same place as makeInternalLink.
2006-04-06 11:09:04 +00:00
stekkel
0a70f643f2 Centralized init 2006-04-05 00:22:11 +00:00
stevetruckstuff
de0fbd4c1d Adding template for error box. 2006-03-28 22:39:52 +00:00
stevetruckstuff
8ca0997cc8 Added ability for template authors to include additional stylesheets. This allows them to add additional CSS defs while maintaining SQM default defintions. 2006-03-28 22:17:44 +00:00
stekkel
1ca59fc121 Fix for updating the mailbox cache concernig flags 2006-03-17 17:48:31 +00:00
stekkel
ac5f37ba81 possible fix for unsolicited fetch responses during select call (IA Mail
Server v.5.3 Corporate Edition
2006-03-09 18:22:47 +00:00
jangliss
c49201169d - Issue loading options page always loaded the prefs
initial_value on display, instead of the users' value.
2006-03-08 19:57:24 +00:00