Commit graph

199 commits

Author SHA1 Message Date
Erin Schnabel
8b02cc2477 require the hide_squirrelmail_header value to be defined as a constant
to avoid manipulation via GET/POST
2005-11-28 17:12:57 +00:00
Erin Schnabel
2317f3f40f reword some of the text around email/full name options, and introduce
a variable that can be added to config_local to remove the SM header
altogether if desired (e.g. in home installations).
2005-11-27 19:36:35 +00:00
Fredrik Jervfors
c5fc10f625 Formatting as in STABLE 2005-11-09 23:45:20 +00:00
Fredrik Jervfors
9ed98bb1ec phpDocumentor updates 2005-09-18 10:25:54 +00:00
Fredrik Jervfors
d3abcd651b Adding more index.php files
Unifying index.php files
2005-09-11 07:05:54 +00:00
tokul
06bee52aca Add extra checks in In-Reply-To header generation. Removes E_NOTICE level
error in php 5.0.4+ (#1206474)
2005-07-20 08:47:47 +00:00
pdontthink
46c104a047 Fix that addresses inconsistency in PHP's chunk_split; was breaking attachments. Thanks to Roalt Zijlstra 2005-06-03 19:56:36 +00:00
tokul
42076e5d0c updating @since tags to indicate version in stable 2005-05-22 14:22:44 +00:00
tokul
c30a0f5bf2 adding index files in order to prevent directory listing.
adding some phpdoc blocks to mime classes.
tagging possible programming errors
2005-05-22 08:20:11 +00:00
tokul
804506dbe4 confused original code with php5 fix 2005-05-20 07:33:41 +00:00
tokul
574965eb4f replacing skip_SM_header with two different options. If admins want to shoot
their own foot, they have to do that themselves and remove headers
completely by modifying SquirrelMail scripts.
2005-05-12 08:15:19 +00:00
stekkel
1ceda93625 More possible NUL character problems solved. 2005-04-27 17:04:00 +00:00
Fredrik Jervfors
2531f52955 Trimming whitespace and replacing tabs 2005-04-23 12:08:00 +00:00
pdontthink
e7dae17b4b It isn't a workaround 2005-04-14 11:01:25 +00:00
pdontthink
b0d0e420b6 Workaround for Courier when sending mixed messages with nested multipart/alternative parts 2005-04-13 23:22:53 +00:00
Jimmy Conner
53fe64165f Fixed a few warning messages I ran into today when SMTP had died. We already output nice SMTP error messages, so no need to have the PHP code display its own errors.
Also, the property dlv_server_msg was only being set in the errorCheck function, which was never ran if the socket connection failed, so we would get an undefined error.
2005-03-21 20:35:33 +00:00
pdontthink
bb12b30d86 Linefeed not allowed in middle of Content-Type header 2005-02-28 04:20:44 +00:00
stekkel
f1f8c4b41e Remove NUL characters in case of text and message parts. 2005-02-18 02:19:10 +00:00
Thijs Kinkhorst
86f4edf09a Do not send quality-headers if they are set to Normal, which is the default. 2005-02-08 15:56:18 +00:00
Thijs Kinkhorst
692119e3c4 Fix a couple more 'string concat on array push' bugs like the
one Marc just fixed.
2005-02-06 14:18:13 +00:00
stekkel
d808a39e8c Fix typo. php 5 errors out on this. 2005-02-05 17:53:53 +00:00
Fredrik Jervfors
5fcc041bd2 Replacing tabs with spaces, trimming white space at EOL and newline at EOF (PHP only) 2005-01-07 17:42:23 +00:00
Thijs Kinkhorst
a73561b911 Increment year in copyright notice. 2004-12-27 15:04:02 +00:00
jangliss
fb093cf7a6 RFC822 complianced with Received header. Fixes #1088548. 2004-12-22 05:08:52 +00:00
Fredrik Jervfors
8c8ecffa57 Replacing tabs with spaces, trimming white space at EOL and newline at EOF 2004-11-02 22:21:34 +00:00
tokul
3815e401d7 qmail-inject does not support -i option. Thanks to Ken Brush for report 2004-11-01 10:59:22 +00:00
Jimmy Conner
2cd94f0d75 Removed variables that were initialized, but never actually used
Also remove a few more globals that were unused
Remove a few newlines at the end of files
Hopefully this will help shrink the memory footprint of SM just slightly
2004-11-01 02:05:15 +00:00
Thijs Kinkhorst
f13893fc99 It seems more logical to use the SERVER_NAME as the RHS of the Message-ID
than to use the remote host from which the user is connecting. Even more
since the REMOTE_ADDR is already contained within the Message-ID.
2004-08-11 11:03:37 +00:00
Thijs Kinkhorst
333090049b If we use the IP as the RHS of the Message-ID, we need to enclose it in brackets
(RFC 822). And if we have the hostname available, we might as well use that.
Spotted by Andreas M. Kirchwitz, closes #1001295
2004-08-03 11:29:07 +00:00
Fredrik Jervfors
8a714b865f Phpdocumentor update - sed is your friend for these kinds of things ;) 2004-05-22 13:41:17 +00:00
stekkel
6649c488bf Fixed typo, thnx paul_s - psunners for spotting this. 2004-05-21 18:03:44 +00:00
tokul
571c4c3c6f class needs phpdoc @package declaration 2004-05-10 10:00:00 +00:00
stekkel
7223179643 Documentation 2004-05-04 10:15:06 +00:00
stekkel
cd899f79a4 Documentation. 2004-05-04 09:51:13 +00:00
vanmer
7d5fd30fc5 -implented function clean_crlf
-Implemented to fix sendmail->postfix rejection of messages with attachments because of stray LF's
2004-05-03 22:22:44 +00:00
stekkel
d8688258f8 Bypass foldLine functions for email addresses to avoid wrong folding of
very long email addresses (>76 characters)
2004-04-26 17:29:10 +00:00
stekkel
7f510a8b05 merge back from stable, rfc2821 fix. Fall back to HELO if EHLO is not
supported.
2004-04-21 18:16:52 +00:00
stekkel
f56521638f Fixed sending MDN messages. According RFC2298:
The From field of the message header of the MDN MUST contain the
   address of the person for whom the message disposition notification
   is being issued.

   The envelope sender address (i.e., SMTP MAIL FROM) of the MDN MUST be
   null (<>), specifying that no Delivery Status Notification messages
   or other messages indicating successful or unsuccessful delivery are
   to be sent in response to an MDN.
2004-04-05 23:42:26 +00:00
stekkel
e5cd713f54 When the data stream wasn't ending with \r\n the finalize stream function
could raise a 502 error. I hope this fixes it.
2004-03-30 17:42:21 +00:00
Erin Schnabel
c95bd9c564 Add SMTP setting to suppress SquirrelMail Received: header..
(may cause some email to be marked as spam if originating server
has dynamic IP, etc)
2004-03-27 23:27:29 +00:00
Thijs Kinkhorst
35716f7189 Add a comment to the X-Priority header (Highest,Normal,Lowest).
This is common in other clients, and some SpamAssassin rule triggers
on the absence of such.
2004-03-04 18:49:26 +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
stekkel
9cc667d5b3 rollback, no time to find out what's wrong, postponed to after the release 2004-01-30 19:14:06 +00:00
stekkel
9e337827b5 Make an exception for email addresses in case of folding Header lines. 2004-01-30 18:57:43 +00:00
tokul
0d18ddba8e It complains even more about FAKED_MUA_01 when both headers are present.
SA has to be fixed, not SquirrelMail.
2004-01-28 19:55:40 +00:00
Erin Schnabel
cfdced5f7b Some tweaks to SMTP auth to allow a site-wide user/pass override
(for those of us with a home installation that want to go out
using the ISP's SMTP server because people arbitrarily block
our dynamic IP addresses).

new function in auth.php assigns the correct user/pass values
based on the auth mechanism.

For some reason the initStream method in Deliver_SMTP was not using
the passed in user name, it was using the global $username, and had
the key and onetimepad declared, though it always used the passed in
parameter pass instead - cleaned that up so it used the user/pass values
passed in instead.

read_body and compose were updated to use the new function in auth.php
to get the correct username and password for SMTP auth, and pass these
values to initStream.

Works for me.
2004-01-04 06:11:15 +00:00
tassium
46e4bd65a4 phpdocumentor basic preparation, continued 2003-10-28 21:30:57 +00:00
Brian G. Peterson
b40ce99ee0 fixed @returns to @return and added a few more comments 2003-10-28 19:44:39 +00:00
Brian G. Peterson
4596690121 added php docblocks to Deliver class and all functions 2003-10-28 19:34:43 +00:00
stekkel
b39f674f1d fix boundary_end in case of recursion
Thnx Aaron van Meerten for spotting this.
2003-10-24 19:15:51 +00:00