Commit graph

554 commits

Author SHA1 Message Date
Charles Lindsay
fca993fec7 Merge branch 'master' into feature/search
Conflicts:
	sql/version-010.sql
	src/client/folder-list/folder-list-folder-entry.vala
	src/engine/rfc822/rfc822-message.vala

Also, I had to manually fix some compile errors introduced due to
interfaces changing on master.
2013-06-24 17:54:41 -07:00
Jim Nelson
a4ce7899a8 Command continuation and synchronizing literals: Closes #3737
This introduces synchronized literals into the IMAP stack.  This
work also includes a new Memory.Buffer interface (replacing the old
Memory.AbstractBuffer classes) which is more flexible and has more
potential for avoid buffer copies.  Some work in RFC822 and Db use
these new unowned buffer capabilities.

This opens the door for saving drafts (#6992).  It also fixes issues
people have reported using UTF-8 usernames and passwords with IMAP.
2013-06-24 16:46:37 -07:00
Jim Nelson
1bfc75004d Resolves failure to build: "The name add_all_array" does not exist": Closes #7135 2013-06-23 08:25:48 -07:00
Eric Gregory
5806f1eae4 Closes #7119 Single folder properties 2013-06-21 18:24:12 -07:00
Eric Gregory
dc26b19aac Closes #7120 Store and update unseen count in database 2013-06-21 18:20:56 -07:00
Charles Lindsay
316f19c69a Clean up numerous conv. monitor bugs; fix #7103 2013-06-21 17:19:39 -07:00
Charles Lindsay
93a10b243f Move progress bar update to main thread; fix #7124 2013-06-21 17:03:24 -07:00
Jim Nelson
e9e80336f9 Don't treat SELECT/EXAMINE UNSEEN as unseen count: Closes #7121
An UNSEEN response code is the position of the first unseen email,
not the number of unseen messages in the folder.
2013-06-19 15:21:53 -07:00
Jim Nelson
24f76781fa Solves "Requires 280h, only fulfills 80h" messages when opening a folder 2013-06-19 14:46:53 -07:00
Eric Gregory
66c845c11b Closes #6771 Search result highlighting 2013-06-18 11:26:44 -07:00
Charles Lindsay
6fb415356b Fixing merge fallout 2013-06-14 16:34:06 -07:00
Charles Lindsay
bc2146dad5 Merge branch 'master' into feature/search
Conflicts:
	src/engine/imap-db/imap-db-account.vala
	src/engine/imap-engine/imap-engine-generic-account.vala
	src/engine/imap-engine/imap-engine-generic-folder.vala
2013-06-14 15:50:20 -07:00
Jim Nelson
17d05a0fed Add FLAGS flag when setting flags.
Follow?
2013-06-14 12:36:35 -07:00
Charles Lindsay
5aa617820b Fix errors in the query preparer; fix #7084 2013-06-14 10:53:37 -07:00
Charles Lindsay
025328afe9 Index attached emails for search; fix #7069 2013-06-14 10:52:28 -07:00
Jim Nelson
a903b603f4 Clean up some error-reporting that occurs when closing ReplayQueue 2013-06-13 19:21:14 -07:00
Jim Nelson
b3df61ab6b Working around some reported problems with servers not returning FETCH data 2013-06-13 18:54:06 -07:00
Charles Lindsay
78979a1bba Merge branch 'master' into feature/search 2013-06-13 18:06:04 -07:00
Jim Nelson
1a610afa95 Update to last commit
(a) More efficient by using Gee.Iterator.  (b) Deal with trailing
delimiter issue, which the last commit overlooked.
2013-06-13 17:07:44 -07:00
Jim Nelson
989b801cbf Fix situation where server returns parent folder when asking for children
This causes a hard loop during recursive descent.
2013-06-13 16:45:58 -07:00
Charles Lindsay
7cf33f293e Blacklist spam, trash in search; fix #7067 2013-06-13 16:44:46 -07:00
Jim Nelson
6270b80640 Support UIDVALIDITY 2013-06-13 15:58:43 -07:00
Jim Nelson
ad436f22a2 Only fire Imap.Folder signals when opened 2013-06-13 15:49:47 -07:00
Jim Nelson
b091855593 Sort signalled Folders by path so when traversing parents are
always listed before children.
2013-06-11 19:57:43 -07:00
Jim Nelson
52663cff0b Merge branch 'master' into bug/5224-dovecot 2013-06-10 20:08:21 -07:00
Jim Nelson
b254ad54e4 Improved FolderPath and separator handling
This commit fixes a number of issues with traversing, showing, and
opening subfolders, especially on systems that don't use the
forward slash as a separator.
2013-06-10 20:07:12 -07:00
Eric Gregory
e41b0be339 Closees #7062 Conversation monitor signal disconnect assertion fixed 2013-06-10 19:11:42 -07:00
Charles Lindsay
2d2cf74300 Correctly order search results; fix #7068 2013-06-10 18:09:07 -07:00
Charles Lindsay
a77874620e Limit search results from DB; fix #7049
This caps the search results at 1000 emails, due to our unfortunate
requirement of constructing an object for each search result.  A better
way to proceed here would be to do the search only as items were loaded
in the SearchFolder, but that gets complicated when the search phrase
gets updated.
2013-06-10 12:21:28 -07:00
Jim Nelson
f246ff4919 Merge branch 'master' into bug/5224-dovecot 2013-06-07 18:17:45 -07:00
Jim Nelson
28d9c239d3 Fixes crash reported by Matthew Gregg
Gregg's server is quoting the header fields in a BODY return
parameter, which caused Geary to not associate the response with
the request.  This fixes that problem.
2013-06-07 16:54:43 -07:00
Eric Gregory
2b5c3e0ba0 Merging in changes from master 2013-06-07 16:23:45 -07:00
Jim Nelson
55514db9e0 Fixes problem reported by Christopher James Halse Rogers
Some mailboxes cannot be SELECTED or EXAMINED, but ClientSession
was not handling the NO response properly.  Also cleaned up some
other state change handling in there.
2013-06-07 16:11:04 -07:00
Eric Gregory
18b76a5084 Closes #7037 Closes #7038 Closes #7039 Closes #7040 Refactor of controller and conversation viewer, signals in conversation 2013-06-07 15:52:52 -07:00
Charles Lindsay
2a0cb30280 Serialize conv. ops in a work queue; fix #7001
This adds an async queue processor in the background of the conversation
monitor to handle work items serially.  Instead of the conversation
monitor directly running its operations, which would have the potential
to overlap, this ensures they happen in the correct order without
trampling on each other.  This way, one operation isn't adding emails
that a prior operation had already removed the conversations for, for
example.
2013-06-07 14:43:19 -07:00
Jim Nelson
6324c2a8f7 Merge branch 'master' into bug/5224-dovecot 2013-06-07 14:37:55 -07:00
Jim Nelson
870094e9ee GObject type assertion in GMime when parsing spam: Refs #7034
Won't close this quite yet because this workaround shouldn't be
necessary, and introduces a memory copy when dealing with message
headers and bodies, which we'd like to avoid.
2013-06-07 14:36:31 -07:00
Jim Nelson
41e556cae9 Fix and debug for a couple of problems Janosch Rolles has discovered 2013-06-06 20:15:09 -07:00
Jim Nelson
1001d3a895 Merge branch 'master' into bug/5224-dovecot 2013-06-06 12:12:19 -07:00
Jim Nelson
091c6deefb Added Deserializer logging 2013-06-06 12:11:58 -07:00
Robert Schroll
c9a138ada3 Show from Sender doesn't always work: Closes #7033 2013-06-05 19:48:53 -07:00
Jim Nelson
cf589597b0 Broke out Imap.Flag, Imap.Flags, and their subclasses. 2013-06-05 19:42:25 -07:00
Jim Nelson
af479bb700 Fix problem with child detection on Dovecot 2013-06-05 19:04:09 -07:00
Jim Nelson
ff6a92c473 Merge branch 'master' into bug/5224-dovecot 2013-06-05 18:25:19 -07:00
Jim Nelson
ce45d19b9a Broke out Parameters, misc. other fixes 2013-06-05 18:24:42 -07:00
Charles Lindsay
2d67c23aa5 Merge branch 'master' into feature/search 2013-06-05 17:42:21 -07:00
Charles Lindsay
2005e4553c Properly pass comparator to priority queue
There was a bug before where our Nonblocking.Mailbox's priority queue
wasn't actually being created correctly.  This fixes that.  Sounds like
this might affect lots of things, especially the order in which the
background fetcher syncs folders.
2013-06-05 17:40:58 -07:00
Jim Nelson
1f71f02a9d Broke out Commands into separate files with barebone Valadocs. 2013-06-05 15:02:12 -07:00
Jim Nelson
2224928647 Removed Imap.Serializable, moved files into appropriate directories 2013-06-05 14:37:23 -07:00
Jim Nelson
f50f8833ca Fixed some disconnect/tear-down loose ends 2013-06-05 14:28:07 -07:00