Commit graph

868 commits

Author SHA1 Message Date
Jim Jagielski
3634ac5442 PSR studlyCaps 2015-01-30 07:15:36 -05:00
Jim Jagielski
5a1058706d we use msg 2015-01-29 16:48:21 -05:00
Jim Jagielski
ae31708bb1 Unstale when we refresh, and not a cached message 2015-01-29 16:34:21 -05:00
Jim Jagielski
ac3ff14c55 pull in just the message body, as parsed. 2015-01-29 14:41:59 -05:00
Jim Jagielski
07daf5ebd7 and more stream goodness. 2015-01-29 14:08:44 -05:00
Jim Jagielski
41fe13b068 work around stream_copy_to_stream memory issues... 2015-01-29 13:44:03 -05:00
Jim Jagielski
8548f4d7e7 prepare subdir 2015-01-29 13:15:45 -05:00
Jim Jagielski
825b4c4a41 work thru attachs 2015-01-29 12:58:07 -05:00
Jim Jagielski
3a4dec0b9e all rets 2015-01-29 10:14:43 -05:00
Jim Jagielski
56dadda63b hash return 2015-01-29 10:09:54 -05:00
Jim Jagielski
719b7c402a we use header 2015-01-29 10:05:25 -05:00
Jim Jagielski
b4e90de73a Once we initially add it, allow for updates in same session 2015-01-29 10:05:01 -05:00
Jim Jagielski
a30c120955 stream logging 2015-01-29 09:21:07 -05:00
Jim Jagielski
c581c7c0a1 fix localname 2015-01-29 09:10:36 -05:00
Jim Jagielski
93aff54dee priority fixes 2015-01-29 08:47:04 -05:00
Jim Jagielski
ea8136f7e3 we are really concerned if the dir structure is flat or not 2015-01-29 06:26:41 -05:00
Jim Jagielski
774db4f2e0 localname is now the filename, not full path. We calc full path
when/if we need it.
2015-01-29 05:20:21 -05:00
Jim Jagielski
8179c27a0c always return tstreams rewound 2015-01-29 04:23:27 -05:00
Jim Jagielski
6613aef830 tune 2015-01-29 04:17:49 -05:00
Jim Jagielski
5bed11a465 Make the transition easier... fetch_structure is the key
to where we can either use a stream or string for the
body. By calling it with a string, we can maintain
the old flow while still allow for tuning elsewhere
as time progresses.
2015-01-29 04:10:41 -05:00
Jim Jagielski
d2f9b78250 allow maxmem to be changed 2015-01-29 03:41:09 -05:00
Jim Jagielski
72a265c9e4 Use a wrapper so we can adjust, universally, the max size. 2015-01-28 18:31:49 -05:00
Jim Jagielski
595eb90e5e for large strings, allow for use of php temp streams
to keep memory under control.
2015-01-28 18:00:18 -05:00
Jim Jagielski
5f21b85cf5 faster check 2015-01-28 16:36:02 -05:00
Jim Jagielski
80333e770a use temp streams and refactor to make it clear 2015-01-28 16:07:29 -05:00
Jim Jagielski
838c6c135a We need 2 options: create a full msg from a raw email message,
and just parse the body
2015-01-28 15:15:09 -05:00
Jim Jagielski
f742a1654c We need a better way to handle the local name... for sure,
storing complete path info is dangerous and screws with
migration.
2015-01-28 14:09:38 -05:00
Jim Jagielski
46de498473 better logging 2015-01-28 13:33:36 -05:00
Jim Jagielski
d21db3881c prevent err 2015-01-28 12:34:26 -05:00
Jim Jagielski
5cca22800e trans 2015-01-28 12:12:06 -05:00
Jim Jagielski
f13b220b48 start using uidl as key, instead of idx for some funcs 2015-01-28 10:35:21 -05:00
Jim Jagielski
44b08779a2 more simplyfication 2015-01-27 16:30:45 -05:00
Jim Jagielski
199394c4ff Fold all common JS into commonJS and eval as needed.
Yeah, I know. eval.
2015-01-27 16:00:29 -05:00
Jim Jagielski
d6034596b3 move this big block of js out. 2015-01-27 14:41:41 -05:00
Jim Jagielski
68265b5624 start attachments logic 2015-01-27 13:24:20 -05:00
Jim Jagielski
3d5f8b62a3 reorg 2015-01-27 13:02:17 -05:00
Jim Jagielski
aa0a26784c new method: get_message() 2015-01-27 10:31:47 -05:00
Jim Jagielski
df1d442989 o more formatting
o new uniq_id method to make it even more unique and random
2015-01-26 15:58:15 -05:00
Jim Jagielski
df9a1724cc style changes phpms 2015-01-26 14:54:15 -05:00
Jim Jagielski
312ceed643 Move all 3rd party tools/classes/add to vendor/ 2015-01-26 10:57:00 -05:00
Jim Jagielski
2fc1437990 leverage UID FETCH 2015-01-23 07:56:07 -05:00
Jim Jagielski
9cd3131999 use a ref here, since listing messages may change folder[]
data behind the scenes
2015-01-22 16:10:52 -05:00
Jim Jagielski
8c44df2062 use flags[] 2015-01-22 10:31:43 -05:00
Jim Jagielski
4c8b49aab0 adjust to get names and emails 2015-01-22 09:17:14 -05:00
Jim Jagielski
a4cf9d3c61 restore serialize: For large datasets, it's much more expensive
to keep on parsing headers.
2015-01-22 07:58:55 -05:00
Jim Jagielski
8f10be26d7 Simplify:
1. No need for hparsed
 2. the serialize/unserialize is expensive. No need to store headers[]
 3. make message-id top level
2015-01-22 06:21:26 -05:00
Jim Jagielski
c60a642757 just grab 1st element 2015-01-21 17:58:57 -05:00
Jim Jagielski
0db8eee30f stop w/ refs... 2015-01-21 17:46:52 -05:00
Jim Jagielski
54889f33da and push 2015-01-21 17:24:09 -05:00
Jim Jagielski
fdfe640f94 Keep headers around as raw source 2015-01-21 17:11:17 -05:00