Giter Club home page Giter Club logo

cozy-emails's Introduction

This repository was part of CozyV2 which has been deprecated. Read more.


Cozy Emails

Cozy Emails lets you read and write your emails from your Cozy. The project is about to start, here are the main features we want to have:

  • Simple UI
  • Read/write emails
  • Multiple mailboxes
  • Attachments management (synced with Files!)

Install

We assume here that the Cozy platform is correctly installed on your server.

Graphically

You can simply install the Emails application via the app registry. Click on the Choose Your Apps button located on the right of your Cozy Home.

CLI

From the command line you can type this command:

$ cozy-monitor install emails

Contribution

You can contribute to the Cozy Emails in many ways:

Stories in Ready

Hack

Hacking the Emails app requires you setup a dev environment. Once it's done you can hack the emails just like it was your own app.

$ git clone https://github.com/cozy/cozy-emails.git
$ npm install
$ cd client
$ npm install

Development

Run it with:

$ npm run watch

The watch task starts 3 daemons:

  • the server one, running coffee-script server-side code through a nodemon process that reload the server part each time you make a change
  • a node-inspector process, that let you use the Chome/Chromium devtools applied to your node process and debug it directly in your browser
  • a brunch watcher which recompiles and reload through browser-sync your front-end app in your browser each time you make a change

Build

The build is a part of the publication process, and you'll probably never need it explicitly. If you want to build you app anyway (e.g. to deploy it in a sandboxed cozy for tests purposes), you can achieve a build by running:

$ npm run build

Please, do not push your local builds in your PR, as long as we make the build process when we release the app.

If you need to run the tests suite to your build:

$ npm run test:build

Naming conventions

We've adopted IMAP naming conventions, which means:

  • Account: bound to a provider like Gmail
  • Mailbox: equivalent to imap folder
  • Message: an email
  • Conversation: a thread of Message

Tests

A tests suite is available. You can run it with:

npm run test

Feel free to adapt/fix/add your own tests in your PR ;).

Frontend

Tests suite is based on CasperJS. Tests data are loaded by cozy-fixtures.

$ npm run fixtures

To run the client's tests, you need to start the server:

$ npm run watch:server

Then you can run the client's tests in another terminal:

$ npm run test:client

Backend

Build Status

Running tests requires a Vagrant. Tests load a Dovecot instance in a Vagrant virtual machine. Make sure your Vagrant box is running, then run:

$ npm run test:server

In order to run the tests, you must only have the Data System started. The tests wont pass if you already have an account in your data-system

Mail Loader

Mail loader test is based on the Dovecot Testing repository.

Icons

By Fontawesome. Main icon by Elegant Themes.

License

Cozy Emails is developed by Cozy Cloud and distributed under the AGPL v3 license.

What is Cozy?

Cozy Logo

Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you.

Community

You can reach the Cozy Community by:

  • Chatting with us on IRC #cozycloud on irc.freenode.net
  • Posting on our Forum
  • Posting issues on the Github repos
  • Mentioning us on Twitter

Technical reference

You will find all relevant resources about Emails development under this section.

Javascript

Layout and styles

Useful resources

This section references RFC and resources to understand IMAP.

cozy-emails's People

Contributors

aenario avatar benibur avatar clochix avatar cylwin avatar felix-lambert avatar frankrousseau avatar jsilvestre avatar kelukelu avatar kosssi avatar lapalice avatar m4dz avatar misstick avatar nono avatar poupotte avatar ptbrowne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cozy-emails's Issues

Error message should disappear when changing mailbox

I experienced this

  1. Tried to delete one message in the Trash box
  2. Got this ominous pink-backgrounded poem "Argh, I'm unable to perform this action, please try again" (I like poetry no prob)
  3. Clicked on another mailbox (hence leaving the Trash box)
  4. When content of the other mailbox is displayed, there is still the persistent error message which is now a meaningless visual annoyance.

Only mean to make it disappear is to click on the cross on top right corner.
I suggest it should disappear by itself when user changes its focussed mailbox.

Special characters in attachment

  • need to be compatible with weird characters
  • need to allow downloading of attachment with whitespace
  • add such mail to dovecot-testing
Error: expected: 201, got: 500 -- 
  at CozyDataSystem.exports.CozyDataSystem.CozyDataSystem.checkError (/home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/lib/cozy_data_system.js:459:25)
  at /home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/lib/cozy_data_system.js:417:24
  at Request._callback (/home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/node_modules/request-json/main.js:83:18)
  at Request.self.callback (/home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/node_modules/request-json/node_modules/request/index.js:148:22)
  at Request.EventEmitter.emit (events.js:98:17)
  at Request.<anonymous> (/home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/node_modules/request-json/node_modules/request/index.js:876:14)
  at Request.EventEmitter.emit (events.js:117:20)
  at IncomingMessage.<anonymous> (/home/frankrousseau/mycloud/products/cozy-emails/node_modules/americano-cozy/node_modules/jugglingdb-cozy-adapter/node_modules/request-json/node_modules/request/index.js:827:12)
  at IncomingMessage.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:920:16
  at process._tickCallback (node.js:415:13)

Explicit error on account creation

Reported by @clochix on behalf of @goofy-bz

One of our error for account creation was not explicit enough. Goofy, do you remember what you did / what was the error displayed ?

No helpful message when a new mail account creation fails

Here is what I recently experienced:

  1. Clicked on the left-hand side button in order to create a new mailbox account.
  2. Filled the various fields and probably dropped wrong parameters :)
  3. Instead of one expected error message such as:
    Connection failed, please check your parameters or contact you sysadmin

...there appeared a long yellow streak without information nor comfort :) see screenshot
erreurcreationcompte

[minor annoyance] "No email in this box" message briefly displayed though box is not empty

There is a short delay between the moment when you click on a subfolder in your mail and the moment when the content of the relative box is displayed.
During a while (depending on the number of messages to be retrieved on some distant mail server) there appears a "No email in this box" message. This is slightly confusing, since the numerous fucking useless interesting mails are displayed one second later.
I suggest there should be some message like "Loading emails for this box…" and the "no email" message appearing later if/when there is actually no message.

Improve Mobile Usability

Globally it works well on mobile (for a casual usage like reading most recent emails). But it requires to fix some margins and to not display contact tooltips.

Problem modifying an account immediately after its creation

Quote from an early tester:

tiens j'ai voulu revenir sur "modifier le compte " pour changer le nom du compte : impossible
à chaque fois que je veux changer une lettre dans le champ "nom" le nom initial se remet automatiquement
le champ est impossible à effacer avec la touche retour arrière

Problem disappear after reloading page

[feature request] A delete feature for messages without being obliged to open-read them

It happens every now and then that a quick glance on a mail title is enough to decide to delete it. In the current config, you need to open the message and display it in the side column to be able to find the tiny trashcan button.
I wish I could delete one message at once with a little delete icon next to its title or with a big delete button displayed permanently and active as soon as one message title is focussed.
Also, a confirm deletion message is careful and ok but there should be the option to skip confirmation dialog in the settings of the account.
Please help me to kill all these fucking useless messages efficiently :)

Deleted messages are not unselected

When I delete a message it is kept as selected. In fact, when I perform several deletion in a row, it pop ups toasts telling me that previously deleted message are deleted again.

Improve extended message headers

The layout and the information are not properly displayed. It's disappointing to see the same header as before in case of simple headers.

First mailbox loading experience improvements

Here is a suggestion list to improve the first time connection:

  • Display by defaul the mailbox creation screen
  • Change the label "Label" with something more explicit (title?).
  • Give more information about how to add a gmail box (tell to Google that cozy-emails is not an intruder).

Quick filters & change of box

When I switch to another mailbox,
the quickfilter stay in its state (good)
but LayoutActionCreator query mails without it

Conversation: every messages are loaded in the left column

When a conversation is displayed, every messages are loaded in the left column.
An easy way to reproduce it is to make one email of the conversation as important. Then reload the app. Apply the important filter, then click on the conversation message. You should see the weird message list in the left column.

Improve contact tooltip UX

The contact adding UX is bad: it displays poorly the contact information, the contact picture is bigger than the tooltip and the button doesn't react when mouse is over.

Timeouts

Getting always timeouts for all my different imap mail servers using port 993. It looks like the connection cannot be established. The (debian) cozy-server's port 993 and 9282 are open in the firewall. Do I need additional ports in the firewall opened? Or how can I investigate the cause of this timeout deeper? Can anyone help?

The cozy-email production log tells me this:

[2014-07-30 20:22:26:421] info - americano | add plugin: americano-cozy
[2014-07-30 20:22:26:425] info - americano-cozy | mailfolder - byType request creation...
[2014-07-30 20:22:26:462] info - americano-cozy | succeeded
[2014-07-30 20:22:26:462] info - americano-cozy | mailfolder - byMailbox request creation...
[2014-07-30 20:22:26:483] info - americano-cozy | succeeded
[2014-07-30 20:22:26:483] info - americano-cozy | mailfolder - all request creation...
[2014-07-30 20:22:26:503] info - americano-cozy | succeeded
[2014-07-30 20:22:26:503] info - americano-cozy | mailbox - byEmail request creation...
[2014-07-30 20:22:26:522] info - americano-cozy | succeeded
[2014-07-30 20:22:26:522] info - americano-cozy | mailbox - all request creation...
[2014-07-30 20:22:26:540] info - americano-cozy | succeeded
[2014-07-30 20:22:26:540] info - americano-cozy | email - folderDate request creation...
[2014-07-30 20:22:26:557] info - americano-cozy | succeeded
[2014-07-30 20:22:26:557] info - americano-cozy | email - dateByMailbox request creation...
[2014-07-30 20:22:26:577] info - americano-cozy | succeeded
[2014-07-30 20:22:26:577] info - americano-cozy | email - byMailbox request creation...
[2014-07-30 20:22:26:597] info - americano-cozy | succeeded
[2014-07-30 20:22:26:597] info - americano-cozy | email - dateId request creation...
[2014-07-30 20:22:26:615] info - americano-cozy | succeeded
[2014-07-30 20:22:26:615] info - americano-cozy | email - date request creation...
[2014-07-30 20:22:26:635] info - americano-cozy | succeeded
[2014-07-30 20:22:26:635] info - americano-cozy | email - all request creation...
[2014-07-30 20:22:26:652] info - americano-cozy | succeeded
[2014-07-30 20:22:26:652] info - americano-cozy | All requests have been created
[2014-07-30 20:22:26:652] info - americano | americano-cozy loaded.
[2014-07-30 20:22:26:678] info - americano | Routes loaded.
[2014-07-30 20:22:26:683] info - americano | Configuration for production loaded.
[2014-07-30 20:22:26:683] info - americano | Cozy Mails server is listening on port 9282...
info: socket.io started
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] reset finished...
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Try to connect...
127.0.0.1 - GET /emails/rainbow/100/undefined HTTP/1.1 200 2 - 16 ms
{ [Error: Connection timed out] level: 'timeout' }
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] ready!
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Connection failed
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Error: Connection timed out
at [object Object]._onTimeout (/usr/local/cozy/apps/emails/emails/cozy-emails/node_modules/imap/lib/imap.js:726:15)
at Timer.listOnTimeout as ontimeout

[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Server connection closed.
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Start import
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Try to connect...
127.0.0.1 - PUT /mailboxes/f5a34d62ed2db21d14bd0cf09d028839 HTTP/1.1 200 16 - 24 ms
{ [Error: Connection timed out] level: 'timeout' }
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] ready!
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Connection failed
[Mailbox kvd f5a34d62ed2db21d14bd0cf09d028839] Server connection closed.
info: handshake authorized ih2pdBzL17-IGEkqgk5k
127.0.0.1 - GET /emails/rainbow/100/undefined HTTP/1.1 200 2 - 19 ms

From button is broken

Due to my recent changes, the from button is broken. It doesn't display the combo box on remote Cozy. On local Cozy, it the dropdown is broken.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.