aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-10-16 04:27:49 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-10-16 04:27:49 +0800
commitf2a00a74bc94a940f0db7d424999ec66a7a486cd (patch)
tree1bbc7aa267e8e39fab20d8d58f688f0dbfc7e8bd
parentc17ecff2170a09736718442c42d26bae5f43e6fd (diff)
downloadgsoc2013-evolution-f2a00a74bc94a940f0db7d424999ec66a7a486cd.tar.gz
gsoc2013-evolution-f2a00a74bc94a940f0db7d424999ec66a7a486cd.tar.zst
gsoc2013-evolution-f2a00a74bc94a940f0db7d424999ec66a7a486cd.zip
renamed delete_originals to move. clearer. cleaner. shorter. not as ugly.
svn path=/trunk/; revision=27601
-rw-r--r--camel/providers/imap4/camel-imap4-folder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/camel/providers/imap4/camel-imap4-folder.c b/camel/providers/imap4/camel-imap4-folder.c
index 81296985bc..9fc12fea2b 100644
--- a/camel/providers/imap4/camel-imap4-folder.c
+++ b/camel/providers/imap4/camel-imap4-folder.c
@@ -66,7 +66,7 @@ static CamelMimeMessage *imap4_get_message (CamelFolder *folder, const char *uid
static void imap4_append_message (CamelFolder *folder, CamelMimeMessage *message,
const CamelMessageInfo *info, char **appended_uid, CamelException *ex);
static void imap4_transfer_messages_to (CamelFolder *src, GPtrArray *uids, CamelFolder *dest,
- GPtrArray **transferred_uids, gboolean delete_originals, CamelException *ex);
+ GPtrArray **transferred_uids, gboolean move, CamelException *ex);
static GPtrArray *imap4_search_by_expression (CamelFolder *folder, const char *expr, CamelException *ex);
static GPtrArray *imap4_search_by_uids (CamelFolder *folder, const char *expr, GPtrArray *uids, CamelException *ex);
static void imap4_search_free (CamelFolder *folder, GPtrArray *uids);
@@ -884,7 +884,7 @@ info_uid_sort (const CamelMessageInfo **info0, const CamelMessageInfo **info1)
static void
imap4_transfer_messages_to (CamelFolder *src, GPtrArray *uids, CamelFolder *dest,
- GPtrArray **transferred_uids, gboolean delete_originals, CamelException *ex)
+ GPtrArray **transferred_uids, gboolean move, CamelException *ex)
{
CamelIMAP4Engine *engine = ((CamelIMAP4Store *) src->parent_store)->engine;
int i, j, n, id, dest_namelen;
@@ -931,7 +931,7 @@ imap4_transfer_messages_to (CamelFolder *src, GPtrArray *uids, CamelFolder *dest
switch (ic->result) {
case CAMEL_IMAP4_RESULT_NO:
/* FIXME: would be good to save the NO reason into the err message */
- if (delete_originals) {
+ if (move) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("Cannot move messages from folder `%s' to folder `%s': Unknown"),
src->full_name, dest->full_name);
@@ -943,7 +943,7 @@ imap4_transfer_messages_to (CamelFolder *src, GPtrArray *uids, CamelFolder *dest
goto done;
case CAMEL_IMAP4_RESULT_BAD:
- if (delete_originals) {
+ if (move) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("Cannot move messages from folder `%s' to folder `%s': Bad command"),
src->full_name, dest->full_name);
@@ -958,7 +958,7 @@ imap4_transfer_messages_to (CamelFolder *src, GPtrArray *uids, CamelFolder *dest
camel_imap4_command_unref (ic);
- if (delete_originals) {
+ if (move) {
for (j = i; j < n; j++) {
info = infos->pdata[j];
camel_folder_set_message_flags (src, camel_message_info_uid (info),
f00ff">`yarn lint` We also use [Prettier](https://prettier.io/) to auto-format our code. Be sure to either add a [text editor integration](https://prettier.io/docs/en/editors.html) or a [pre-commit hook](https://prettier.io/docs/en/precommit.html) to properly format your code changes. If using the Atom text editor, we recommend you install the following packages: * [atom-typescript](https://atom.io/packages/atom-typescript) * [linter-tslint](https://atom.io/packages/linter-tslint) * [prettier-atom](https://atom.io/packages/prettier-atom) * [language-ethereum](https://atom.io/packages/language-ethereum) Our CI will also run TSLint and Prettier as a part of the test run when you submit your PR. Make sure that the CI tests pass for your contribution. ### Branch structure & versioning We use [semantic versioning](http://semver.org/), but before a package reaches v1.0.0 all breaking changes as well as new features will be minor version bumps. We have two main branches: `master` and `development`. `master` represents the most recent released (published on npm) version. `development` represents the development state and is a default branch to which you will submit a PR. We use this structure so that we can push hotfixes to the currently released version without needing to publish all the changes made towards the next release. If a hotfix is implemented on `master`, it is back-ported to `development`.