Commit graph

478 commits

Author SHA1 Message Date
stekkel
a95d16b308 fix undefined var 2002-09-18 12:55:09 +00:00
Thijs Kinkhorst
5b9ce7663d Make directories unbrowsable. 2002-09-09 17:25:05 +00:00
stekkel
85d71cbd97 fix for bcc 2002-09-06 13:03:26 +00:00
stekkel
6c8afaf665 second try to fix sendMail. Return true after finalizeStream.
Very very stupid mistake from me. Maybe I shouldn't code anymore when I'm
tired.
2002-09-06 12:01:14 +00:00
stekkel
cc8ebf2298 Forgot to return the stream 2002-09-06 07:41:56 +00:00
thomppj
c8b6bdf9d9 More SM_PATH fixes. This time, everything in class/. 2002-09-06 00:21:24 +00:00
thomppj
73b01eeacb Fixed require_once paths in class/deliver/deliver_FOO.class.php 2002-09-05 23:39:33 +00:00
stekkel
ae9f77ebef remove unnessecarry \r\n 2002-09-05 12:48:44 +00:00
stekkel
d95ec7dffd extra error checking 2002-09-05 12:07:55 +00:00
stekkel
aca38665cc undisclosed recipients fix 2002-09-05 09:38:47 +00:00
stekkel
27b5ce3c1b xtra check for To addresses, if not available don't show the headerline.
Fix for bcc addresses. the returned length should contain the length of the
bcc-line because we want this information in the sent_folder.
2002-09-05 09:25:44 +00:00
stekkel
fb9dd1d095 Added function for initializing attachments (for compose) 2002-09-04 23:19:07 +00:00
stekkel
e0ef9312a3 fix for getbcc 2002-09-04 23:12:49 +00:00
stekkel
28fd011322 added info 2002-09-04 23:12:28 +00:00
stekkel
66cb0a4172 IMAP backend for the deliver class 2002-09-04 22:00:49 +00:00
stekkel
48d7c0d392 Sendmail backend for the deliver class 2002-09-04 22:00:19 +00:00
stekkel
847aef2731 SMTP backend for the Deliver class 2002-09-04 21:59:53 +00:00
stekkel
d1d860294f Make the thing actually work :-) 2002-09-04 21:59:08 +00:00
stekkel
73bbac7f3f testing fase 2002-09-03 20:55:30 +00:00
stekkel
43f9f16e50 code cleanup 2002-09-03 15:40:08 +00:00
stekkel
c6618da648 added file info 2002-09-02 19:35:25 +00:00
stekkel
637d5fc02c development work on the Deliver class.
Still not finished yet
2002-09-02 19:31:57 +00:00
stekkel
89c37601ed init 2002-08-30 17:30:55 +00:00
stekkel
0738fdaf7a init deliver class as replacement of smtp.php 2002-08-30 17:29:02 +00:00
stekkel
860b3cf49a code cleanup 2002-08-30 16:42:16 +00:00
stekkel
cf3fe28bd6 fix for getEntity 2002-08-30 15:05:33 +00:00
thomppj
2692b136f3 Ok. One simple mistake... :) 2002-08-29 23:45:08 +00:00
thomppj
caeff8b548 First, more formatting conventions.
1. Wrap all operands of a complex expression with parentheses.
     For instance:
         if ($bob == 'foo' || $bob == 'bar') {
     is wrong. Do this instead:
         if (($bob == 'foo') || ($bob == 'bar')) {

  2. Carefully decide between pre and post incrementation. If it
     does not matter, always choose pre because it is technically
     more efficient. For instance:
         for ($i = 0; $i < $count; $i++) {
     is wrong. Do this instead:
         for ($i = 0; $i < $count; ++$i) {

  3. Classes should be named in style like this:
         MessageHeader
         Rfc8222Header
     etc. When there is an acronym at the beginning, treat it
     like a word - do NOT captitalize each letter of the acronym.

  4. Put each class in a seperate file named ClassName.class.php.
     Related classes can be put in one directory and then included
     in a main include file.

Second, big changes with mime.class.php here. And I don't think I broke
anything. (Sounds like famous last words, eh?)
2002-08-29 23:42:46 +00:00
indiri69
f905ffeb5e Move -1 to first section of for loop. 2002-08-28 20:38:33 +00:00
stekkel
ab66eca299 code cleanup 2002-08-28 16:35:37 +00:00
stekkel
8cece0472d added var to message-class where we put the location of the temporary
attachment name in case we use the message-object also for composing
messages. (Not finished yet but I'm working on it)
2002-08-28 16:23:25 +00:00
indiri69
ab5e17e9a9 Changed the way we handle entities in message/rfc822 types. $msg->entity_id++
would increment by 0.1 in php 4.0.4 but would increment by 1.0 in php 4.0.6.
This meant that a message/rfc822 type with only a text/plain part would label
the text/plain part entity 3.0 instead of 2.1.  This should fix that problem.
2002-08-26 22:13:56 +00:00
stekkel
8d8ad53091 fix for getFilename 2002-08-26 14:21:35 +00:00
stekkel
e4518532d4 fix for the bodystructure parser 2002-08-26 10:07:22 +00:00
indiri69
6ac50d3de5 More code cleanup 2002-08-24 21:37:52 +00:00
indiri69
2d12473e69 Code cleanup 2002-08-24 21:28:18 +00:00
indiri69
91d07bb8f4 Added argument $strict to findDisplayEntity. When false (the default) it
assume 'text/plain', 'text/html', and 'text/message' are viewable.  When
true (strict mode), it will only treat the types passed as viewable.  This
means if you pass just 'text/html' in alt_order, then it will only return
those parts that are viewable 'text/html'.
2002-08-24 19:34:57 +00:00
indiri69
f5fd7d5dbd Cleaned up parseComments so it handles comments inside of comments. Changed
a for to a foreach for simplify the clean up function.
2002-08-23 16:31:32 +00:00
stekkel
b43252a5df Bugfixes mime class. (Like I mentioned in the mail Paul) 2002-08-23 12:33:08 +00:00
indiri69
fcc5426708 Fixed a few typos, removed so trailing spaces. 2002-08-22 21:54:22 +00:00
thomppj
90fa1d7ea2 Reformatted, cleaned up, optimized, and so forth... Dang, people! Write
neat code. I removed almost 400 lines of code do to sloppy coding!
2002-08-22 20:15:13 +00:00
indiri69
ea06e59f3a Subject doesn't have comments 2002-08-22 15:14:12 +00:00
stekkel
a3aa553ca0 removed double code (sorry forgot) 2002-08-22 13:07:40 +00:00
stekkel
fdcfd2b03a added user-agent check (from Masato Japanese patches)
(this has nothing to do with Japanese, just an enhancement)
2002-08-22 12:20:48 +00:00
philippe_mingo
db3fa82a09 Indentation & Bugfix 2002-08-22 10:04:34 +00:00
stekkel
6f4e609385 added function to extract filename from an entity with error correction in
case the disposition isn't defined
2002-08-22 08:43:29 +00:00
stekkel
754582f5c3 fix for getEntity and the return of a non-object 2002-08-21 10:09:15 +00:00
indiri69
51df4b8b4f A few changes, mostly to make the code more readable. In
findAlternativeEntity we now compare current or greater best_view since
RFC2046 says we should use the LAST viewable part.
2002-08-20 21:13:45 +00:00
stekkel
a0abf08b16 1 == 1.1 => true? changed to === fixed this. 2002-08-19 14:46:25 +00:00
stekkel
9ebc41acf1 extra function for getting the disposition properties 2002-08-19 09:57:03 +00:00