Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

add aliases feature #1523

Merged
merged 5 commits into from
Aug 4, 2016
Merged

add aliases feature #1523

merged 5 commits into from
Aug 4, 2016

Conversation

tahaalibra
Copy link
Contributor

@tahaalibra tahaalibra commented Jun 8, 2016

this will solve #122
this will allow sending email from aliases

Note:
much of it is incomplete

Time to review

@ChristophWurst @Gomez

@ChristophWurst
Copy link
Contributor

Looks promising!

@ChristophWurst
Copy link
Contributor

ChristophWurst commented Jun 9, 2016

(copied from #1500)

Account settings - Aliases #122

  • DB design/implementation (schema, mapper, entity)
  • Controller/service adjustments
  • UI design (mockup, gui)
  • Client-side implementation
    • Alias configuration (account setup/settings view)
    • Alias selection when sending new mails
  • Server-side adjustments for sending mails and storing drafts (I guess we'll need to fix that)
  • Validation of alias email / check if it already existsl

@ChristophWurst
Copy link
Contributor

I'd like to talk about the DB schema design. What was the motivation to model it that way? I'm pretty sure we should re-think that and create a true 1:n relation of account:alias. Hence, the alias table would look like id, account_id and alias.

@Gomez
Copy link
Contributor

Gomez commented Jun 10, 2016

Correct, email is a duplicate. @tahaalibra You agree?

@tahaalibra
Copy link
Contributor Author

yes thank makes sense,
selection_002
i will update this in the next PR

@ChristophWurst
Copy link
Contributor

@tahaalibra what would we need the user_id in the aliases table for? Isn't that redundant?

i will update this in the next PR

please use this PR so we have the whole alias feature in one single PR.

@tahaalibra
Copy link
Contributor Author

@ChristophWurst yes i mean update in the next commit, my bad ;)....i think you are right user_id does seem redundant.

@ChristophWurst
Copy link
Contributor

when adding new commits, please try to use meaningful commit messages. That makes reviewing easier ;-)

<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 schema looks good

@tahaalibra
Copy link
Contributor Author

tahaalibra commented Jun 14, 2016

new commit, this is still very unstable, fixed most of the previous bugs

cc @ChristophWurst @Gomez

@tahaalibra
Copy link
Contributor Author

tahaalibra commented Jun 18, 2016

sending mail with aliases is working (tested using mail setting provide by @Gomez )

to send mail using alias

  1. head over to account setting
  2. then add alias email
  3. after that head over to inbox and refresh the webpage( currently refreshing is used to fetch new alias from the DB, this is temporary),
  4. head over to composer and a send mail :)

@ChristophWurst @Gomez

@Gomez
Copy link
Contributor

Gomez commented Jul 22, 2016

@tahaalibra Is something blocking you? We are near to merge, would be cool to get in done soon. (Btw. i use this branch nearly every day :)))

@@ -509,6 +509,11 @@ define(function(require) {
alias = _.find(this.aliases, function(alias) {
return alias.emailAddress === require('state').currentAccount.get('email');
});
} else {
var firstAccount = this.accounts.at(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you add one account and then another, the accounts are ususally ordered as account1, unified account, account2. Therefore you'd select the unified inbox, although you actually want the first account. Use something like this.accounts.filter(…accountId not -1…).at(0).

@ChristophWurst
Copy link
Contributor

please fix CI errors, otherwise this can not be merged

@ChristophWurst
Copy link
Contributor

I can not delete aliases:
ReferenceError: event is not defined, aliases-list.js:40:4

@ChristophWurst
Copy link
Contributor

tested with a single account configured and it still does not select an email address by default :-(

@jancborchardt
Copy link
Contributor

It would be good to merge this PR as soon as possible and work on the additional stuff in follow up pull requests. Otherwise it gets too big!

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

fixes and improvments

remove old code that prevented selecting default account on composer

ui improvment
@ChristophWurst
Copy link
Contributor

Small enhancement for a follow-up PR:

  • Hide account dropdown of the composer if there's only one email address (one account, no aliases)

@ChristophWurst
Copy link
Contributor

👍 from my side. Nice job @tahaalibra!

@jancborchardt another quick testing/review?

@jancborchardt
Copy link
Contributor

When opening an email with multiple people in recipients or cc, only the first person is shown in the »to« field of the reply. In master, all people are shown correctly in to/cc.

👎 til that’s fixed.

@jancborchardt
Copy link
Contributor

And in the settings, the placeholder for the input field should be called »Mail address« instead of »Alias«.

If those 2 things are fixed then we can merge. :)

@tahaalibra
Copy link
Contributor Author

@jancborchardt @ChristophWurst can you review the fixes...

@ChristophWurst
Copy link
Contributor

Merge branch 'aliases' of https://github.com/owncloud/mail into aliases

What did you merge there?

@ChristophWurst
Copy link
Contributor

ah, you merged my commit

@jancborchardt
Copy link
Contributor

@tahaalibra the cc issue still exists. Only the person whom the mail is from will be put in the »to«, but all people from cc just vanish.

@tahaalibra
Copy link
Contributor Author

@jancborchardt its working fine on my side, the cc list is showing. Still pushed another commit, try if its working?

@jancborchardt
Copy link
Contributor

Works now, but one last issue:

  • When there are multiple people whom the mail is addressed to, the selected »from« address is always the first one in the dropdown. Not the correct one.

@ChristophWurst
Copy link
Contributor

Works now, but one last issue:

When there are multiple people whom the mail is addressed to, the selected »from« address is always the first one in the dropdown. Not the correct one.

Can't reproduce ->merge

@ChristophWurst ChristophWurst merged commit 0a3015c into master Aug 4, 2016
@ChristophWurst ChristophWurst deleted the aliases branch August 4, 2016 13:31
@jancborchardt
Copy link
Contributor

Ok, guess it might have been only my issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants