Commit graph

1696 commits

Author SHA1 Message Date
jangliss
3d391f4472 Eugh, this code is getting messy, can somebody verify this regex for me,
I'm trying to get it to match on "INBOX" or INBOX but nothing afterwards,
but some IMAP servers are returning an extra char or two on the end, so
a direct match is messing up, so I've tried something a little different
and told it to do a full match, but fail it if the next char after INBOX is
a delimiter (do we have a full list of possibilities?).

Tested on uw, courier, exchange, and cyrus, and the list builds nicely now.
uw still has some odd behaviours when you have a default folder prefix, but
the others seem a lot better... got to do some minor tweaks, and I think this
can go for full testing.
2003-06-16 03:59:45 +00:00
tokul
da21e87205 Added experimental iso-8859-6 decoding support. 2003-06-15 11:39:17 +00:00
tokul
0388a1a9dd Added experimental windows-1255 and windows-1256 decoding support. 2003-06-15 11:35:52 +00:00
tokul
83359e745e Added koi8-u decoding support. Changed windows-1251 and iso-8859-5 decoding
order. Now decoding does not use php decode_cyr_string function. See SM patch 622280.
2003-06-15 11:05:11 +00:00
jangliss
55ecf21b0c Back again... should have looked at my exchange window first... *grumbles*
UW is a royal pain :P
2003-06-15 06:57:24 +00:00
jangliss
bde60ca9f9 UW can return a slightly different format for the LSUB when you step outside
the default_folder_prefix area, also they return NIL for the delimiter which
means the previous regex would always fail as it is looking for a 1 char
delimiter between ""
2003-06-15 06:52:48 +00:00
jangliss
184bbe5507 Couple of tweaks... must include inbox otherwise it becomes an unselectable
link, which isn't good.  Some weird stuff happens when using the default
folder prefix check, so removed... fixes courier and uw for having INBOXes,
now just have to make uw's inbox really work now.
2003-06-15 05:10:05 +00:00
jangliss
2d40cc0b02 Moved the INBOX check higher to save code duplication... something else in
here too... but cannot remember...
2003-06-15 03:21:45 +00:00
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
philippe_mingo
5be178d2f6 Faroese by Danial Olsen 2003-06-14 07:36:01 +00:00
stekkel
cea04e81b1 in case of BYE response display errormessage 2003-06-13 15:30:28 +00:00
Thijs Kinkhorst
9c129d3265 E_ALL notice removal 2003-06-13 10:42:59 +00:00
stekkel
7a8f5cdf94 Another failsafe check which I missed. Thnx Erin. 2003-06-12 14:17:10 +00:00
stekkel
00da36c274 better error processing, immediate break out of the while loop in case of an
error.
2003-06-12 09:42:10 +00:00
Erin Schnabel
adbde2554f align cases so they're easier to find..
{} and comments for the bigger blocks
2003-06-11 20:41:39 +00:00
stekkel
430d013987 fixed formatting, sjeesh that's realy dull work. Makes me simple :(
The only exiting part was working with VIM for the first time. And I still
thing it's not the most user friendly editor unless you know all keycodes
which I don't know.
2003-06-11 19:53:22 +00:00
Erin Schnabel
85092927dc bring up fix for default_pref file name (double-slash) 2003-06-11 18:33:25 +00:00
Erin Schnabel
74c7a174b8 update error_box, use more echos rather than big concat,
ensure header check in both stable and devel
2003-06-11 18:30:37 +00:00
stekkel
9287970385 extra safetycheck before we process group addresses 2003-06-11 17:54:12 +00:00
stekkel
c429d58a2d * fix for messageheader caching. We didn't cache somebody broke it :(
* fix for very large msgs_str genered by sqimap_msg_squisher. We don't need
that if we want to fetch the whole list (1:*)
Now the imapserver doesn't return BYE because of the size of the imap
request
2003-06-11 17:26:52 +00:00
stekkel
28a9dd7eb8 Rewrite of sqimap_read_data_list. This will raise performance and it's more
accurate.
2003-06-11 17:16:29 +00:00
stekkel
3d33baeb93 performance tweak 2003-06-11 17:09:15 +00:00
Thijs Kinkhorst
0a3a6cf2ed Make sure we have a HTML-header already outputted before we send
the error message.
2003-06-09 14:39:15 +00:00
Thijs Kinkhorst
e49b29a2d1 MS Exch can be set up that users have to use DOMAIN/username/mailbox
to log in. We need to strip these chars before creating the prefs
file, because of course a slash in the name gives problems.

It may be possible to strip out other 'illegal' chars here aswell.
Closes (#745814).
2003-06-08 16:15:02 +00:00
Thijs Kinkhorst
e816eb6f38 Fix stupid mistake. 2003-06-08 15:34:48 +00:00
Thijs Kinkhorst
9d5490c98a Fix comp_in_new: make outputing the compose link a function so that
the comp_in_new works the same everywhere.
In this new function, make sure that comp_in_new still works when
JavaScript off.
When JavaScript off, do not output all kinds of JavaScript functions
which are never going to be called.
2003-06-08 14:37:35 +00:00
Thijs Kinkhorst
1f4f6cf114 Fix this awfully ugly error message, finally. 2003-06-08 12:39:49 +00:00
stekkel
ae819876ed Fixed 2 issues:
1: Removal of preleading space caused by decodeHeader.
2: Changed call to decodeHeader from compose to htmlsafe = false so we do
not see spaces changed to   => wordwrap stops working;
2003-05-30 17:23:56 +00:00
stekkel
ecba9561b9 logmes 2003-05-30 17:17:50 +00:00
stekkel
a35241077e encodeheader / decodeHeader fixes. Removal of <space> between 2 encoded
header strings. The space is part of the protocol and should be ignored
2003-05-28 22:14:41 +00:00
tokul
b9bc45c0a4 Changed name of Indonesian translation to Bahasa Indonesia. 2003-05-26 18:14:47 +00:00
Thijs Kinkhorst
5136084e4e Prevent loop in parseAddress: if the address is invalid and looks like:
Thijs <aap
(no closing ">"), parseAddress would enter an infinite loop. This is
solved by increasing $pos when no closing > is found. Closes 742584,
thanks Jeroen van Wolffelaar.
2003-05-25 18:58:15 +00:00
tokul
396b7181e8 Welsh is cy_GB and not uk_UA. 2003-05-25 09:51:27 +00:00
philippe_mingo
f458884aff Welsh added 2003-05-23 17:09:55 +00:00
stekkel
00cbd8dac8 Minor fixes in parseAddress and limit the returned results to 1 address
(performance) in case we are displaying the sent folder
2003-05-23 11:51:05 +00:00
Thijs Kinkhorst
62a3b54436 Remove some obsoleted parsing functions. 2003-05-22 16:22:52 +00:00
Thijs Kinkhorst
11675ad552 Drop obsoleted imap_parse.php 2003-05-22 15:22:07 +00:00
stekkel
e2b01ef8de fix warning when we access fillMessagesArray from a search 2003-05-17 17:10:31 +00:00
stekkel
2a676bec2a Missed a spot, now the date is also extracted from the header 2003-05-17 17:00:54 +00:00
stekkel
77a9ce5a49 Rewrite of the sqimap_get_small_header_list function.
Now we can handle returned fetch responses with a different order of
returned arguments. UID i.e. can be properly detected if it is returned
after the HEADER data.
Another issue I fixed is adapting the msgs_id_str to 1:* in case we request all
headers for a mailbox.
If we don't do that the msgs_id_str can become pretty large and in my case
it was 12kb large and the imap server returned a BYE, querystring to long.

We should inspect the last issue better because there are situations where I
can still trigger the error. Setting the number of messages to display to a
large value would cause a BYE again.
2003-05-16 22:46:20 +00:00
tokul
c53cfa5e46 Added bind_textdomain_charset function. Allows to use non default
charset for gettext enabled php. For example ru_RU locale in ISO8859-5
and SquirrelMail ru_RU translation done in koi8-r or cp1251.
Works only with php 4.2+, but squirrelmail can function without it.

Thanks to Viktor S. Grishchenko and Grisha Mokhin
2003-05-11 10:08:12 +00:00
Erin Schnabel
6edec3e3eb Remove "absolute_dl" flag from default link for general attachments
(general meaning not images, not messages, not something we have
other special handling for)..
The link with the attachment name should allow a view (if the type
is known, while the download link will swizzle to application/octet-stream
for download purposes...

also fixed some SM_PATH references
2003-05-10 02:53:46 +00:00
indiri69
8ff26b6e1a Change message highlighting so order matters. It will not select the first
match it finds (old way was last match).  You can also reorder highlighting
now.
2003-05-02 21:31:25 +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
tokul
51665e43d9 Ported short name of mount/weekday support from 1.2stable 2003-04-30 08:28:59 +00:00
graf25
21bff0074d Fixing what I broke. 2003-04-26 04:29:53 +00:00
stekkel
fb9dea3eb1 fix for addresses containing groups 2003-04-25 17:35:24 +00:00
stekkel
ff1d3a53b5 moved address-parsing to the displayable messages 2003-04-25 16:21:19 +00:00