Commit graph

199 commits

Author SHA1 Message Date
pdontthink
581dc23061 Happy 2014 2014-01-01 20:33:20 +00:00
Fredrik Jervfors
c076a1f1ae Update copyright 2013-07-26 17:31:02 +00:00
pdontthink
152869c29f Fix E_STRICT notices 2012-04-01 22:18:51 +00:00
pdontthink
f63b89047c Fix E_STRICT notice 2012-04-01 21:27:53 +00:00
pdontthink
b2cc0dac1c Revert changes in revision 14302. Revision 14302 should only have changed functions/imap_general.php 2012-04-01 20:09:11 +00:00
pdontthink
33ebad3f5c Fall back to using LIST if NAMESPACE answer is malformed or otherwise problematic. This still doesn't account for situations where the NAMESPACE or LIST answer can't be parsed correctly. 2012-04-01 19:50:49 +00:00
pdontthink
acc409fb2a Updating copyrights. Happy New Year. 2012-01-02 02:09:17 +00:00
pdontthink
d7ee5f0bba Fix hook name clash: new smtp_auth hook added recently (a few months ago) has been renamed to smtp_authenticate 2011-09-05 07:00:18 +00:00
pdontthink
eee0c34977 Add smtp_auth hook (thanks to Emmanuel Dreyfus) 2011-04-02 19:19:45 +00:00
pdontthink
fc57bf2b59 Happy New Year! 2011-01-06 03:16:21 +00:00
pdontthink
7aa0e60863 Update copyrights to 2010 2010-01-25 03:23:30 +00:00
Fredrik Jervfors
134d462c94 The copyright symbol isn't really needed since the word "copyright" is there. Also it doesn't display right in the documentation. 2009-09-29 12:15:33 +00:00
pdontthink
6092b83f73 Remove personal data from Message ID seed. (#880029/847107) 2009-07-31 05:23:04 +00:00
pdontthink
6618a28091 Anchor the regexp. Thanks Thijs Kinkhorst. 2009-05-21 09:21:56 +00:00
pdontthink
ef75b59bbb When sending an address literal to an SMTP EHLO command, do it with the right syntax 2009-05-20 20:59:44 +00:00
Fredrik Jervfors
0a6245814a There are too many modified files being committed without the copyright year being updated, so here's a copyright year update the old-fashioned style. 2009-04-15 22:00:49 +00:00
pdontthink
326a1c7f10 Encode outgoing attachments that have lines longer than allowed per RFC. Otherwise, they can be corrupted when artificially (forced) folding - unfolding typically produces an extra space at the fold in most MUAs. This fixes #2226470 and #1473714. Thanks to Kelly Fallon. 2009-04-03 08:31:17 +00:00
pdontthink
1dca6f714b Rewrite foldLine(). The old version *might* have been fixable, but it contained several bad assumptions, RFC misunderstandings and design problems. The new one is better documented if nothing else. PLEASE PLEASE PLEASE TEST THIS. This is a candidate for backporting to STABLE since it fixes some buggy behaviors - see #2501008 and #1951776 and others 2009-04-03 01:21:07 +00:00
pdontthink
d8660a41f4 Documentation fix 2009-04-01 20:53:02 +00:00
pdontthink
fed4b6376b Make our Date header RFC-compliant. Redundant timezone info does not comply with RFC 822 section 5.1 2009-04-01 20:39:41 +00:00
pdontthink
e54daefe82 Supposedly user info could be removed from received header regardless of edit_identity setting, but this was not the case - now it is; Also add one more clarifying note to config script. 2008-12-05 21:05:16 +00:00
pdontthink
8523ca3d2c Allow a different server address for the POP server to be configured when using POP before SMTP 2008-07-19 17:27:54 +00:00
pdontthink
42240d3964 Change order of arguments 2008-04-28 02:19:12 +00:00
pdontthink
c7baefdde0 Don't open multiple IMAP connections when building reply headers during send 2008-04-25 21:59:00 +00:00
pdontthink
50df633836 Don't put encoding on multipart/alt message parts 2008-04-20 02:21:33 +00:00
pdontthink
05bc865055 Change approach for making things like Message-ID available after sending. Tracker #1322898 inspired me to do what I was originally thinking, even though this shows SM's design weaknesses. I also now guarantee that the Message-ID and Date headers will be the same between that sent to the recipient and that stored in the Sent folder. 2008-02-13 03:56:19 +00:00
Thijs Kinkhorst
40f5f2b9d3 improve message ID generation: put together a string based on user-data
(username, IP, remote port), serial data (time in ms) and randomness,
and put this all through a one-way hash. This makes the chance on
collisions unrealistically small, and at the same time prevents all
kinds of trouble when some vars are not available or contain non-allowed
information (like IPv6 addresses).
2008-02-10 16:21:46 +00:00
pdontthink
9880c85539 Make message ID available after message is sent. Not the best solution, but it's smallish and SM design doesn't suit very well 2008-02-06 08:13:33 +00:00
pdontthink
117413554f Correct misplaced code 2008-01-06 01:05:38 +00:00
pdontthink
efd332278a Don't start message ID with a dot when no remote port is available 2008-01-02 08:52:04 +00:00
pdontthink
35cd41b16e Refactor how IMAP messages are "sent" 2007-12-19 08:24:36 +00:00
pdontthink
49d815ef25 Fix outgoing messages to allow addresses such as "0" or "000", etc. See #1818398 2007-10-24 10:37:30 +00:00
pdontthink
87f4892057 Restore outgoing reply headers 2007-10-24 09:34:21 +00:00
Thijs Kinkhorst
f4fc35cef1 Silence fsockopen since errors are handled internally.
Use more sensible return values for this function.
2007-07-20 16:53:10 +00:00
Thijs Kinkhorst
beaac6787b Use attachment_dir only at the point where we're actually
reading from / writing to the files, do not carry it around
in the object. This makes us safer in the event the object
is somehow exposed to the outside world.

I may be cleaning this up some more for devel.
2007-07-16 20:48:46 +00:00
pdontthink
ee0444272e Remove $version, use SM_VERSION constant instead 2007-03-22 20:01:33 +00:00
Thijs Kinkhorst
5679469a5a do not add spaces to references header (#1634294),
thanks SOCS
2007-01-18 16:11:28 +00:00
Thijs Kinkhorst
11b10ba5d1 increment year in copyright notices 2007-01-13 20:15:44 +00:00
stekkel
e8bdd2a04b The error handler catched a delayed error => check if dnt is set. 2006-10-09 20:03:41 +00:00
tokul
59ae6f3ac2 removing trailing ?> from function scripts 2006-07-15 12:01:32 +00:00
tokul
dbd9f69d03 resubmitting last Monday updates and adding php 5.1.0 timezone support 2006-05-13 19:11:08 +00:00
Thijs Kinkhorst
f46dd4944d - Improve recovery when EHLO not supported on legacy SMTP servers
(#1031455).
2006-05-12 14:39:55 +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
Thijs Kinkhorst
409270e9cf Reduce references header in a smart way to avoid "header too long"
errors from SMTP servers in really long threads (#1167754, #1465342).
2006-04-18 16:38:38 +00:00
stekkel
5963418896 Fix from Dimitar Pashev to make sure the rfc822 from adres isn't mixed up
when we set the $from vars to '' to make sure MAIL FROM <> is sent (MDN
receipt).
Could be a php 5.x thing because normally $from isn't a reference.
2006-03-14 17:05:01 +00:00
jangliss
b25a3ff9bf Make the use_*_tls options half respect old values. If you leave it as
true, then it would try to use STARTTLS.  While I understand this is a
new feature, and this is the dev branch, a little backwards compatibility
is easy in this case.  The value 2 is considered true... Using === instead
is an exact match, so you'd have to have 2 in the use_*_tls options for it
to trigger starttls mode.
2006-02-26 06:32:17 +00:00
tokul
57ae2c61ce Added IMAP and SMTP STARTTLS extension support.
Saved SMTP EHLO response in class parameters.
Moved sanitizing of SMTP errors from delivery class to display scripts.
Allowed to use configtest.php when client_ip matches server_ip.
There is no 1.3.3 version. TLS was introduced in 1.4.0.
2006-01-28 19:24:08 +00:00
tokul
83fdb4c332 copyright update 2006-01-23 18:46:41 +00:00
tokul
e482d9d3d7 adding error checking in deliver_sendmail class.
sendmail -i -t arguments moved to configuration
fixed unsanitized output in plain_error_message() calls.
2005-12-08 18:24:47 +00:00
tokul
d58b6ad0b0 if we can't open stream. we make up server's error message 2005-12-07 06:49:07 +00:00