This repository has been archived by the owner on Nov 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add aliases feature
add aliases feature
mapper entity service and controller for aliases
comments and fixes
minor bug fix
minor changes
aliases js service, database update and some security fixes
minor fixes for saving and loading aliases
send mail from composer using alias
small fixes
fix most test, delete alias work, better ui
set an alias name with alias id
using alias name when sending email works
big fixes
big fixes
reply composer using aliases
bug fixes and aliases collection
minor bug fixes
minor fix
radio for aliases controller and service
fix for when refrshing settings page
fix email length in the database
[tx-robot] updated from transifex
change to secure connection
remove secure http: false
[tx-robot] updated from transifex
Correct return for getFolderById - fixes #1514
account !== folder
fetch UIDs and DATEs of all messages and do the pagination client side
use search strategy only if SORT is not supported
update changelog for 0.5.2
Update composerlock to https
remove more message button is obsolete with infinite scroll
[tx-robot] updated from transifex
[tx-robot] updated from transifex
[tx-robot] updated from transifex
refactor message 'load' event parameters
messagecontent -> foldercontent
pass account/folder via constructor
also use the new collection when refreshing
inject messages collection
Fix jscs errors
sync karma require config with runtime require config
open first mailbox when clicking the account's email address
fix jscs error
update grunt
0.5.3 version bump
update/unify license headers
use underscore to debounce search filters; do not re-search the same term
remove obsolete folder reset event + event handler
smoother transition when adding another account
remove user id from alias table and js bug fix and optimization
add new keyboard channel and port existing key listener
allow navigation with j, k
allow left/right arrow to switch messages
use 'mail' instead of 'Mail' for bower to prevent warning
merge conflict resolve
squash and rebase commits
fix AccountsControllerTest::testIndex
travis js fix
alias collection update
adding aliases collection and bug fixes
big fixes
show you when mail is sent to an alias or email
select current account as default in composer
fix for selecting default account on composer
fix grunt issues
- Loading branch information
1 parent
d4cdfde
commit 173aeb8
Showing
31 changed files
with
967 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* @author Tahaa Karim <tahaalibra@gmail.com> | ||
* | ||
* ownCloud - Mail | ||
* | ||
* This code is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3, | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License, version 3, | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* | ||
*/ | ||
|
||
define(function(require) { | ||
'use strict'; | ||
|
||
var $ = require('jquery'); | ||
var _ = require('underscore'); | ||
var Radio = require('radio'); | ||
|
||
Radio.aliases.reply('load:alias', loadAliases); | ||
Radio.aliases.reply('save:alias', saveAlias); | ||
Radio.aliases.reply('delete:alias', deleteAlias); | ||
|
||
/** | ||
* @param {Account} account | ||
* @returns {undefined} | ||
*/ | ||
function loadAliases(account) { | ||
var fetchingAliases = Radio.aliases.request('entities'); | ||
|
||
$.when(fetchingAliases).fail(function() { | ||
Radio.ui.trigger('error:show', t('mail', 'Fetching Aliases Failed.')); | ||
}); | ||
|
||
return fetchingAliases; | ||
} | ||
|
||
/** | ||
* @param {Account} account | ||
* @param alias | ||
* @returns {undefined} | ||
*/ | ||
function saveAlias(account, alias) { | ||
var savingAliases = Radio.aliases.request('save', account, alias); | ||
|
||
$.when(savingAliases).fail(function() { | ||
Radio.ui.trigger('error:show', t('mail', 'Saving Aliases Failed.')); | ||
}); | ||
|
||
return savingAliases; | ||
} | ||
|
||
/** | ||
* @param {Account} account | ||
* @param aliasId | ||
* @returns {undefined} | ||
*/ | ||
function deleteAlias(account, aliasId) { | ||
var deletingAliases = Radio.aliases.request('delete', account, aliasId); | ||
|
||
$.when(deletingAliases).fail(function() { | ||
Radio.ui.trigger('error:show', t('mail', 'Deleting Aliases Failed.')); | ||
}); | ||
|
||
return deletingAliases; | ||
} | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* ownCloud - Mail | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Tahaa Karim <tahaalibra@gmail.com> | ||
* @copyright Tahaa Karim 2016 | ||
*/ | ||
|
||
define(function(require) { | ||
'use strict'; | ||
|
||
var Backbone = require('backbone'); | ||
|
||
/** | ||
* @class Alias | ||
*/ | ||
var Alias = Backbone.Model.extend({ | ||
defaults: { | ||
}, | ||
initialize: function() { | ||
|
||
}, | ||
toJSON: function() { | ||
var data = Backbone.Model.prototype.toJSON.call(this); | ||
if (data.alias && data.alias.toJSON) { | ||
data.alias = data.alias.toJSON(); | ||
} | ||
if (!data.id) { | ||
data.id = this.cid; | ||
} | ||
return data; | ||
} | ||
}); | ||
|
||
return Alias; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* ownCloud - Mail | ||
* | ||
* This file is licensed under the Affero General Public License version 3 or | ||
* later. See the COPYING file. | ||
* | ||
* @author Tahaa Karim <tahaalibra@gmail.com> | ||
* @copyright Tahaa Karim 2016 | ||
*/ | ||
|
||
define(function(require) { | ||
'use strict'; | ||
|
||
var Backbone = require('backbone'); | ||
var Alias = require('models/alias'); | ||
|
||
/** | ||
* @class AliasesCollection | ||
*/ | ||
var AliasesCollection = Backbone.Collection.extend({ | ||
model: Alias | ||
}); | ||
|
||
return AliasesCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.