Commit graph

478 commits

Author SHA1 Message Date
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
pdontthink
62ea6e4a60 Correct value of undefined hostname 2008-02-10 19:07:20 +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
Thijs Kinkhorst
a0aa659487 add space for nicer formatting 2008-02-10 15:02:33 +00:00
pdontthink
dd4d515baf Correct disappearing addresses when address book entry has email address without host portion 2008-02-06 08:14:37 +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
4f1a58c843 avoid E_STRICT errors 2008-01-06 03:16:00 +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
jangliss
248b4050ce Invalid initialization of To: header (#1772893).
Thanks Tomas.
2007-11-15 06:00:41 +00:00
Thijs Kinkhorst
f197218fd3 Fix off-by-one in bodystructure parsing triggered by servers sending
a body location part (e.g. Sun Java System Messaging Server). Thanks
John Callahan (#1808382).
2007-11-04 10:12:58 +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
pdontthink
310d01467d Make identities matching case insensitive 2007-08-31 23:19:36 +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
b50ee09af8 Don't include svn files in any of the cached template files 2007-07-08 00:25:23 +00:00
Thijs Kinkhorst
fc3206645c Always treat Content-Type case-insensitively (#1732092).
Thanks Rich Pinkall Pollei!
2007-06-08 18:28:30 +00:00
Thijs Kinkhorst
2af3dba26b state license as recommended by the free software foundation 2007-05-31 12:27:08 +00:00
Thijs Kinkhorst
621a1e897d also fix duplicated version of parsepriority code
and remove a 3rd version
2007-05-17 16:29:47 +00:00
Thijs Kinkhorst
54242c1880 using split() with wrong perl regexes will not work. 2007-05-17 15:39:06 +00:00
pdontthink
ee0444272e Remove $version, use SM_VERSION constant instead 2007-03-22 20:01:33 +00:00
Thijs Kinkhorst
754716c77f fixes for r12283: mistakenly passed already-split date to date_unparsed,
and correct a mistaken comment at that header
2007-02-27 19:42:21 +00:00
Thijs Kinkhorst
03a31465c8 also store the unparsed date, and display it when we
failed to parse a Date. This allows RFC-incompatible
dates to still be seen in e.g. read_body in their
original form, better than nothing. For safety split
any "<",">" out, something might rely on the date being
completely safe to print.
2007-02-27 18:57:18 +00:00
Thijs Kinkhorst
c91591f9ea misspelled reply_to and in_reply_to attributes 2007-01-24 14:50:31 +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
pdontthink
16ddf3151b Allow template sets to filter or completely change header delivery 2007-01-09 08:03:54 +00:00
pdontthink
5c8bf54951 Fix for unknown index notices caused in templates when looking for plugin output in what was an empty string instead of an empty array 2007-01-03 20:33:11 +00:00
pdontthink
176eafce61 New hook. See added comments if you care. 2007-01-03 10:08:00 +00:00
stekkel
c1a22636b6 At this moment concat_hook_function can return string and arrays.
In php 4.3.x a notice will be raised (i.e. in login.tpl) when a string is passed
as $aPluginOutput.
TODO, only return an arrays by concat_hook_function.
2007-01-02 19:31:45 +00:00
pdontthink
9972bd918f Update for new location of global template utilities. Note that templates/util_global.php is already included by the Template class so is ALWAYS available for ALL template files. 2006-12-30 21:24:00 +00:00
pdontthink
c047501dc9 Allow template sets to override plugin configuration. See config file in template directories. 2006-12-12 10:43:00 +00:00
pdontthink
717be5c30c Massive update to plugin system architecture. Please test! Not all core plugins are tested yet, please point out issues that need to be fixed. Please see http://marc.theaimsgroup.com/?t=116282394000001&r=1&w=2 2006-12-10 05:07:54 +00:00
stekkel
eb9248997e Bodystructure parsing fix 2006-11-26 21:29:46 +00:00
pdontthink
c4d5b290c4 Added comment 2006-11-16 01:44:35 +00:00
pdontthink
0d1813d698 Adding contact info to author name 2006-11-10 23:35:09 +00:00
Randall Smith
b99f103616 Add support for SpamAssassin's X-Spam-Status header (#1589520). 2006-11-10 17:07:17 +00:00
pdontthink
bdaaca8540 Alternate stylesheets function now returns listing of DIRECTORIES in templates/<template name>/css/alternates instead of just .css files therein, so we are consistent with themes provided in the core 2006-10-13 04:24:03 +00:00
stekkel
e8bdd2a04b The error handler catched a delayed error => check if dnt is set. 2006-10-09 20:03:41 +00:00
pdontthink
b42b0a4e5e Strict type check prevents old config files from breaking everything (per new changes to templateset_default and _fallback) 2006-10-09 11:52:17 +00:00
pdontthink
a7eb6ab52c templateset_default and templateset_fallback are IDs now, not unpredictable index numbers 2006-10-09 11:35:21 +00:00
pdontthink
c9a09ee14b Missed a spot. Please use less accusatory language when telling ppl they broke plugins or other things, cuz you make goofs too! ;-) 2006-10-08 16:39:33 +00:00
tokul
f9583348c5 fixed phpdoc formating. require() call loaded before first phpdoc block.
improved template cache. Don't store SM_PATH information in cache. SM_PATH
is ../ in main scripts, but it is ../../ in plugins. Plugin option pages
break if cache stores SM_PATH.
2006-10-07 15:32:40 +00:00
stevetruckstuff
e499b62301 New function to return only the email address. For use with templates. 2006-10-06 21:53:04 +00:00
pdontthink
5ee2685bda Better stylesheet ordering 2006-10-02 12:37:46 +00:00
pdontthink
88c0e28be1 Changes that follow per the inheritance and associated changes to Template.class.php 2006-10-02 09:38:49 +00:00