Commit graph

99 commits

Author SHA1 Message Date
Eric Gregory
7ff5051597 Composer window now centered. Closes #4281 2011-10-24 16:48:36 -07:00
Jim Nelson
cd0b926d57 Engine implementation of conversations: #3808
This introduces Geary.Conversations into the API, which scans a Folder and arranges the
messages into threaded conversations.
2011-10-21 17:04:33 -07:00
Eric Gregory
8ab948bce4 Switched back to libunique and removed GtkApplication. Closes #4266 2011-10-19 12:48:17 -07:00
Eric Gregory
c7fd272908 Toolbar now styled properly. Closes #4273 2011-10-19 12:09:17 -07:00
Jim Nelson
b50b769e77 Really fixes bug where FAST messages had wrong EmailLocations.
Prior commit did not completely fix the problem in the case where a remote folder open took
a long time.  This bulletproofs the solution, but does mean that there will be some
situations where FAST messages return with EmailLocations that radically change in the near
future.  As the contract allows for any changes whatsoever, this is acceptable.
2011-10-18 19:56:54 -07:00
Jim Nelson
e995809f05 Fixes some bugs leftover in my last commit. 2011-10-17 20:42:45 -07:00
Jim Nelson
db62ed5d93 FETCH BODY[section]<partial> support.
This adds support for retrieving partial header and body blocks straight from the email, and
therefore support to pull the References header from a message (which, for some reason, IMAP
doesn't support or include in the FETCH ENVELOPE command).  This is necessary for email conversations (#3808).

This required a change to the database schema, meaning old databases will need to be blown
away before starting.
2011-10-17 19:03:15 -07:00
Jim Nelson
ab69b20b1c Moved a lot of implementation-specific code into a new impl/ directory, keeping the api
directory concerned only with user-facing interfaces.  Also, cleaned up some of the public
interfaces in support modules to private.
2011-10-17 19:03:15 -07:00
Jim Nelson
41e162a9b7 Fixed bug where FAST messages had wrong EmailLocations.
Eric spotted a bug where messages retrieved via FAST (i.e. straight from the database) were
not assigned their proper EmailLocations, which has a lot of ramifications when more emails
are being requested.
2011-10-14 17:54:58 -07:00
Eric Gregory
4a3a137ae2 Disabled type to search in folder list. Closes #4232 2011-10-14 16:15:28 -07:00
Eric Gregory
744d5a8bb2 Message headers are now selectable. Closes #4258 2011-10-14 16:11:12 -07:00
Eric Gregory
5a8db8f215 Adds tooltip to new message button. Closes #4256 2011-10-14 12:41:58 -07:00
Eric Gregory
2f2b4fff27 Pretty message viewer. Closes #4230 2011-10-13 19:16:22 -07:00
Jim Nelson
d74ed8456a Added ability to FETCH partial body sections and headers.
This adds facilities to issue FETCH BODY<partial> syntax commands to IMAP server.  Only
thing that is missing is the ability to specify body MIME parts, which can be added later.
(At that time we'll want to include support for the FETCH BODYSTRUCTURE command.)

This is a necessary component for threading (#3808).
2011-10-13 18:45:24 -07:00
Jim Nelson
8ae5dbb20a Fixed console program.
console app was broken due to changes in Geary.Endpoint.
2011-10-13 17:51:41 -07:00
Jim Nelson
7e8edcb355 Transactions added to database code: Closes #4235
The entire database module now uses Transactions in order to guarantee atomicity of all
operations.  However, due to limitations in SQLHeavy and its implementation of async, we
can't use it (and SQLite's) transactional models.  This patch introduces a rather hamhanded
transactional model where the entire database is locked for each request using a
NonblockingMutex.  This is the safest approach, but certainly not an optimal one.  When
SQLHeavy's code is in place, hopefully we can rip this out with a minimum of fuss.
2011-10-12 16:52:54 -07:00
Eric Gregory
03d63ecc1a Toolbar replaces the menu. Closes #3816 2011-10-11 19:12:20 -07:00
Jim Nelson
05503981bf On second thought, it should be String.escape_markup(). 2011-10-07 18:05:33 -07:00
Jim Nelson
df687bb86c Deal better with mailing list groups when parsing incoming mail.
Mailing list groups aren't completely accounted for in Geary (#3713) but in the last commit
I skipped one place they can easily be dealt with.  This takes care of that.
2011-10-07 17:49:55 -07:00
Jim Nelson
0021b74281 This patch expands Geary.RFC822.Message to be a more full-blown container for an RFC 822
message (email), suitable for decoding a message off the wire or converting a
human-generated form into something suitable for pushing on the wire via SMTP.
2011-10-07 17:33:34 -07:00
Jim Nelson
ee22b632e8 Addresses not stored in database in RFC 822 format: Closes #4231
Email addresses were being stored in the database in a human-readable fashion, not proper
quoted RFC 822 format.  This fixes that, as well as another error this exposed in
MessageListCellRenderer dealing with situations where no From: is available.  Courtesy
Charles Lindsay.
2011-10-07 17:23:20 -07:00
Jim Nelson
af7c5f585e Fixes a crasher when a message on the server has an empty Subject: line. 2011-10-07 16:58:19 -07:00
Jim Nelson
c012c3b3f5 Command tagging restructuring.
Commands were build with their commands prior to this change, for various reasons (mostly as
a convenience for myself).  This is not technically a good way to do things, it's far better
if the Tag is assigned right before the Command is sent to ensure they go out in order.
2011-10-07 13:08:54 -07:00
Jim Nelson
77d9962406 Fixes segfault when navigating between folders: Closes #3820
This bug was exacerbated by rapidly switching between folders.  This patch introduces a
Cancellable to most of the requests the client performs so it can cancel old requests when
the user switches folders.  This fixed some issues but exposed others.

Testing this demonstrates another bug: #4233
2011-10-06 19:04:17 -07:00
Eric Gregory
686f4cbfde Folder list scrolling keeps highlighted item in the view. Closes #4227 2011-10-05 17:08:12 -07:00
Jim Nelson
bbb747e3ce Move to sqlheavy-0.2: Closes #4214
Geary now requires sqlheavy-0.2, currently only available in its gitorious trunk.
2011-10-04 19:38:10 -07:00
Jim Nelson
428c0825a9 Fast listing of messages in a folder
This adds a new flag when listing messages, FAST.  This indicates that the caller wants
messages that are immediately available to the Folder, avoiding a round-trip to the server
(or even disk) if possible.  Not all folders will support FAST, but it can be used (as it is
now in the client) to quickly populate the message list and then initiate a connection in
the background to get the straight dope.
2011-10-04 19:02:59 -07:00
Eric Gregory
aa3044f57d Adds word wrap. Closes #4218 2011-10-04 18:26:56 -07:00
Eric Gregory
570a45c822 Makes message list wider. Closes #4217 2011-10-04 18:24:13 -07:00
Eric Gregory
4d3888da7e Keyboard scrolling in message list; Closes #3922 2011-10-04 17:57:54 -07:00
Eric Gregory
955fdf1f32 Adds copied executables to clean. Closes #4202 2011-10-03 17:26:40 -07:00
Eric Gregory
e6e1ca8357 Composer window. Closes #3711 2011-10-03 12:05:25 -07:00
Jim Nelson
10d714d756 SMTP module added for email composer (#3711)
This adds an SMTP library into Geary that can perform basic client submission of emails.
The interface is exposed generically through the Geary.EngineAccount interface.
2011-09-30 17:29:03 -07:00
Eric Gregory
98f3ef7e00 #4130 remember paned grabber positions 2011-09-27 18:34:26 -07:00
Jim Nelson
fb54fb1847 Now builds with Vala 0.14: closes #3756
This commit introduces a Scheduler module which deals with the problem of scheduling on the
idle or timeout queue unowned SourceFuncs (because the idle and timeout functions require
owned delegates).  It also takes care of a handful of places where an out parameter was not
being set before the method returned, which Vala's new code analysis now picks up.
2011-09-26 16:07:40 -07:00
Jim Nelson
0fdc45e4ec Move to GTK+3: Closes #4163 2011-09-22 13:11:35 -07:00
Eric Gregory
4ad276aa9a 3817 fancy 3-column layout 2011-09-21 18:03:41 -07:00
Jim Nelson
bd9f0c4ff5 Created THANKS file, added Eric to it. 2011-09-20 14:25:51 -07:00
Eric Gregory
9d2b10530c 4028, 3700 login dialog and password persistence
Adds a login dialog box
Support for Glade UI files
Gnome keyring for password storage
Assumption of single Geary account (for now)
2011-09-15 12:19:39 -07:00
Eric Gregory
6a5d1fa048 3701 remember window size
* Added GSettings
* Geary binary copied to project root
2011-09-14 17:38:53 -07:00
Eric Gregory
2e501eff68 changes to build on Ubuntu Natty 2011-08-25 18:45:34 -07:00
Jim Nelson
7442caf88e Detect deleted (or moved) messages in open folder: #3793
This commit finishes the second half of #3793 by detecting when messages have been deleted
(or moved out of) an open folder and notifying the system of the change.  The nonblocking
synchronization primitives have been beefed up and may be broken out to a separate library
some day.

This commit also introduces the ReplayQueue, which replays events that occur on the server
locally.  This class will probably become much more important as time goes on, perhaps used
to store user events that are replayed on the server as well.
2011-07-29 20:10:43 -07:00
Jim Nelson
d1208e8efe Monitor currently selected folder: #3793
This commit represents the first half of this ticket, as it only monitors additions (new
emails) in the folder.  A second commit will follow for monitoring removals (deleted emails)
in the folder.
2011-07-26 15:29:08 -07:00
Jim Nelson
e812ef6166 Some cleanup dealing with commit for #3851.
The commit for #3851 changed the semantics of how messages are stored in the local cache,
and not all the code was properly updated to recognize that, particularly in EngineFolder.

This patch also introduces EmailIdentifier, which allows for a mail message to be fetched by
a unique identifier rather than its position in the folder list.  This is much more
efficient and less error-prone, and means that Email objects don't have to be updated if
their position changes (although there are still some questions in that area).  For IMAP,
this means being able to use the message's UID.
2011-07-19 15:55:56 -07:00
Jim Nelson
9adabb21ed Assertion failure when reading message: #3858
Caused by a valac bug set off by a generic function designed to convert a Gee List to a Vala
array.  Rather than fight it I've removed the function and added to FetchCommand a
constructor to build the command using a Gee Collection.
2011-07-18 15:57:55 -07:00
Jim Nelson
3e308a4d13 Now using new async versions of SQLHeavy.Transaction.commit_async().
This revision of Geary requires the latest revision of SQLHeavy.
2011-07-18 12:26:43 -07:00
Jim Nelson
1683775ddf Added the CLOSE command to the IMAP console program. 2011-07-18 11:55:38 -07:00
Jim Nelson
8b26d6d112 Folder no longer attempts to download existing messages when re-selected: #3851
The SQLite Geary.Folder implementation now uses reference semantics, so when it's reselected
the same Folder object is used and in-memory state is consistent.  Also found an off-by-one
error when first querying an IMAP Folder that caused the most recent new email not to be
downloaded the first time.  Fixed as well in this commit.
2011-07-18 11:48:42 -07:00
Jim Nelson
b1775ae879 Code organization cleanup. 2011-07-15 16:50:12 -07:00
Jim Nelson
8e62435dec Fixes off-by-one error and bitfield issue when fetching an email.
In prior revision, the email message that appeared didn't always match the header selected.  This fixes that problem.
2011-07-15 14:29:33 -07:00