Commit graph

1976 commits

Author SHA1 Message Date
tokul
17c56f73ed two more subpackage blocks 2004-04-12 08:03:39 +00:00
tokul
8a3d91bd28 moving forms to separate subpackage. It is easier to dig through functions
when they are splitted into categories
2004-04-12 08:02:15 +00:00
tokul
a8eaccc965 missing phpdoc declaration 2004-04-12 08:00:53 +00:00
tokul
3302330906 Moving addressbook functions to separate phpdoc subpackage. 2004-04-12 08:00:07 +00:00
tokul
a3f79a274e phpdoc fix. 2004-04-12 07:55:24 +00:00
tokul
2d1cdc406f phpdoc fixes 2004-04-12 07:54:20 +00:00
tokul
60435fc01f Don't use htmlentities() to sanitize input/output.
It breaks things outside of Western Europe/US.

Changing functions to use htmlspecialchars(). It still breaks things
in compose, when is_conversion_safe($charset)=true.

at least it breaks less.
2004-04-08 17:09:58 +00:00
tokul
934030dc78 http://validator.w3.org/docs/errors.html#bad-entity 2004-03-31 16:33:33 +00:00
jangliss
e4f6cc3969 Password can accept a value as well. 2004-03-31 16:04:53 +00:00
tokul
19eb3b72e5 removing gettext function. there is no human readable string 2004-03-31 15:23:50 +00:00
tokul
c5ba519e85 adding two hooks that allow integrating third party address book backends 2004-03-31 15:10:32 +00:00
Thijs Kinkhorst
14cc9f11af Add form functions for password, submit and reset. 2004-03-31 11:46:28 +00:00
Erin Schnabel
6c8fa85ba0 correct appearance of Thread View link.. 2004-03-30 22:23:35 +00:00
alex-brainstorm
2a40ae5545 Move Thread View link to the upper header together with other links. Behaviour can be swapped for comparison. Also fix backslash in Flagged test. 2004-03-30 13:40:47 +00:00
Erin Schnabel
7a611a6ea9 updates for move & next when moving first message 2004-03-29 18:55:16 +00:00
Erin Schnabel
fe2f0f7eae thought of this last night, but forgot about it. Seth called me on it.. *sigh* 2004-03-29 17:41:15 +00:00
Erin Schnabel
c83dcc0345 remove perlishly commented debug lines. my bad. 2004-03-29 16:58:20 +00:00
Erin Schnabel
027240f167 Zap the soupNazi to use the same JS test everything else does. 2004-03-28 23:06:12 +00:00
Erin Schnabel
f3a24d0463 updates to make javascript actually behave correctly for real.
Autodetection is fixed, load of JS dependent items (like address book and
search) will be set to false if javascript_on session var is false/0.

javascript_on will ONLY be true if:
  javascript_setting = 1 (ALWAYS)
  javascript_setting = 2 (Autodetect, and test works)

If you change your javascript settings, javascript_on will change
immediately.

We might actually want to DISABLE Always, and have it be either Never, or autodetect.
Since Always might not always work.. :-P
2004-03-28 22:47:11 +00:00
Erin Schnabel
c072809def finish "buttonizing" read_body header.
Correct some mistakes (compose_in_new, resume draft, edit as new)
Centralize javascript detection in prefs.php - checkForJavascript
Move javascript_on from prefs to session - have just javascript_setting in prefs.
2004-03-28 20:45:20 +00:00
Thijs Kinkhorst
f6df87c185 Functions to build HTML forms.
I've created this for another project of mine, and think they come in useful
here. They are kept simple on purpose. Advantage is less typing
[eg addHidden('startMessage', $startMessage)] and everything is encoded
automatically. Could be extended with submit/reset and other form elts
not covered yet.
2004-03-28 14:35:37 +00:00
jangliss
2f22395f11 Fix part 1 for XSS issue... call page like this:
src/compose.php?mailbox="><script>alert('Nuts!');</script>

Because this file is included in other pages, it could affect others too.
2004-03-28 11:50:13 +00:00
Erin Schnabel
e6f521cdc0 changes for read_body link line - now buttons - more like message index 2004-03-27 22:25:17 +00:00
Jimmy Conner
e46abc71b8 Addressbook Fix. This code was suppose to allow the user to select
whether to have the fullname, nickname, ect... returned from the addressbook to
the the compose screen, but it was not working at all.  Granted we do not have
an option for this yet either, but that will follow fairly quickly.

Thanks to William Bishop
2004-03-26 14:23:07 +00:00
alex-brainstorm
8d114e5072 When copying a folder to trash before deletion, check that the top folder name really contains the delimiter. 2004-03-26 12:02:30 +00:00
stekkel
a6215b86bb Break 1 level less, otherwise the rest of the messages are not processed.
I hit this bug by coincidance and thnx to a server crash. Cyrus returned
information like UID, RFC822.SIZE, INTERNALDATE (that info is probably
cached by cyrus) correct, but an empty header. At the end of the response
there was an untagged OK response with as server message: Message <nnn> no
longer exists.
2004-03-26 10:24:45 +00:00
tokul
a452a45771 doc/plugin.txt says that 'refresh' is optional. Making sure that it does not
generate warnings.
2004-03-23 18:00:38 +00:00
Thijs Kinkhorst
67b3f9cb87 Fix quote_imap, the ereg pattern wasn't always interpreted right
due to the escaping of backslashes. I've replaced it with the
faster preg_replace and used double quotes to lessen the escaping
confusion.
2004-03-23 10:39:24 +00:00
Brian G. Peterson
d4b263e22a - fixed SendDownLoadHeaders to solve IE SSL Cache problems
- rearranged the header( ) calls to remove duplication in various paths
2004-03-17 20:35:36 +00:00
tassium
ddc8f6ade3 This segment of code should be left in until at least Squirrelmail 1.7.x, to give plugins a chance to adapt to the $uid_support option being gone. Reversing Thijs's commit. 2004-03-17 18:34:08 +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
Thijs Kinkhorst
28eadb73d0 Move $sqimap_session_id from global to static scope. 2004-03-15 19:57:20 +00:00
Thijs Kinkhorst
eb0871d7c9 Make writing to prefs/abook/calendar files more reliable by handling it
the right way when writing fails (error in stead of truncating file).
2004-03-15 10:10:00 +00:00
tokul
11f1d08305 Use 'answered' instead of 'read'. Icon is different. 2004-03-14 11:11:46 +00:00
tokul
7dc1f9e7d0 freebsd needs locale name without hyphen. linux works with or without it. 2004-03-14 09:08:26 +00:00
Thijs Kinkhorst
644750922c We don't support PHP 4.0.x anymore; update the docs to reflect that and
remove 4.0.x legacy code.
2004-03-11 19:34:43 +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
Erin Schnabel
be1891d209 make sure mailbox is used by get_selectall_link correctly,
account for possible nul mboxresponse
2004-03-01 01:46:41 +00:00
Erin Schnabel
9091c1e016 odd logout case..
(in a tabbed browser, pull up SM, then click 'Sign Out' as an "open in new tab"
then click something in the current window, you'll get an error trying to
execute unknown function do_hook on line 88 of display_messages).

So we'll just add the require, just to make sure..
2004-02-29 22:52:36 +00:00
Thijs Kinkhorst
af4bc6527f Better support for malformed/absent dates and headerlines ending in only "\n". 2004-02-28 15:13:17 +00:00
alex-brainstorm
0b49ff34d7 Dont utf7_decode translated INBOX name, which is html encoded 2004-02-27 14:37:42 +00:00
stekkel
c51abba34c Fixed the issue where inbox showed up in the lsub response with a \NoSelect
flag. If we detect inbox with \NoSelect we unset the result for inbox and do
a list request for inbox.
2004-02-26 18:01:59 +00:00
tassium
efc02d8258 Brain-damage in sqimap_create_stream(). Can't believe I let myself commit this function in such poor shape, and further that nobody else caught it until now ;)
sqimap_create_stream() was not as generalized as it should have been - it was still using $imap_server and $use_imap_tls, etc.  Now obeying passed params as it should.
2004-02-26 16:19:29 +00:00
Thijs Kinkhorst
e424ef3bc1 Tweak the LSUB INBOX regexp to allow for only 1 space between LSUB and
the mailbox name.
2004-02-25 17:28:39 +00:00
Thijs Kinkhorst
634f4d6cdc Fix the display of a subfolder "foo.inbox" aswell. 2004-02-25 14:38:05 +00:00
Thijs Kinkhorst
b7c512df9a Require whitespace in the LSUB before the mailbox name to prevent a
subfolder called "foo.bar.inbox" to be treated as INBOX.
2004-02-25 14:25:49 +00:00
pdontthink
1e2de27518 Added Flag/Unflag buttons. I have been up for 2 days straight. Please check for mistakes. :) 2004-02-25 10:43:33 +00:00
indiri69
fe990f0951 Verify that concat_hook_function actually returned something before writing over string. 2004-02-24 22:07:27 +00:00
tokul
cc065c6cef Adding full locale names. Enabled ukrainian and russian-ukrainian 2004-02-24 18:12:22 +00:00
Thijs Kinkhorst
cde0377d36 We're living in 2004 now... perl is your friend for these kinds of things :) 2004-02-24 15:51:22 +00:00