Giter Club home page Giter Club logo

modoboa-webmail's Introduction

modoboa-webmail

gha codecov Documentation Status

The webmail of Modoboa.

Installation

Install this extension system-wide or inside a virtual environment by running the following command:

$ pip install modoboa-webmail

Edit the settings.py file of your modoboa instance and add modoboa_webmail inside the MODOBOA_APPS variable like this:

MODOBOA_APPS = (
  'modoboa',
  'modoboa.core',
  'modoboa.lib',
  'modoboa.admin',
  'modoboa.relaydomains',
  'modoboa.limits',
  'modoboa.parameters',
  # Extensions here
  # ...
  'modoboa_webmail',
)

Run the following commands to setup the database tables and collect static files:

$ cd <modoboa_instance_dir>
$ python manage.py load_initial_data
$ python manage.py collectstatic

Finally, restart the python process running modoboa (uwsgi, gunicorn, apache, whatever).

modoboa-webmail's People

Contributors

christianwgd avatar dependabot-preview[bot] avatar dependabot[bot] avatar disko avatar jeeptwister avatar lefta avatar mohamed-ghayyad avatar nomad2k avatar qthans avatar sergioga avatar spitfireap avatar tmartinfr avatar tonioo avatar tuxis-ie 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modoboa-webmail's Issues

fails for admin account

If one attaches email addresses to the admin user, webmail cannot login to the IMAP backing service and throws

Error: ['[AUTHENTICATIONFAILED] Authentication failed.']

This may be caused due to the [email protected] requirement for mailbox user accounts.

Select all button is missing

Hello !

Not really sure if it's an bug and i post it to the right place, but i noticed the following :
an 'Select all' square or something is really missing from the web interface :-)

If we can help contribute with adding this feature please ping me back, and will do that..

Kind regards,

Server reports error (on opening message ?)

Internal Server Error: /webmail/getmailcontent
Traceback (most recent call last):
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
   response = wrapped_callback(request, _callback_args, *_callback_kwargs)
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/django/db/transaction.py", line 394, in inner
   return func(_args, *_kwargs)
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
   return view_func(request, _args, *_kwargs)
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_admin/lib.py", line 30, in wrapped_f
   return f(request, _args, *_kwargs)
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/views.py", line 491, in getmailcontent
   links=int(request.GET["links"])
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/lib/imapemail.py", line 44, in __init__
   headers = self.msg['BODY[HEADER.FIELDS (%s)]' % self.headers_as_text]
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/lib/imapemail.py", line 82, in msg
   headers=self.headers_as_list
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/lib/imaputils.py", line 757, in fetchmail
   "(BODYSTRUCTURE %s[HEADER.FIELDS (%s)])" % (bcmd, " ".join(headers))
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/lib/imaputils.py", line 200, in _cmd
   return parse_fetch_response(data)
 File "/srv/pythonbrew/venvs/Python-2.7.10/mailadmin/lib/python2.7/site-packages/modoboa_webmail/lib/fetch_parser.py", line 140, in parse_fetch_response
   content += data[cpt]
TypeError: can only concatenate tuple (not "NoneType") to tuple

Request repr(): 
<WSGIRequest
path:/webmail/getmailcontent,
GET:<QueryDict: {u'mailid': [u'6036'], u'mbox': [u'Einladung zu Infoveranstaltung schicken'], u'links': [u'0']}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': '4oCEFlehOQXMVFfwAT55Sp5BjlkBkwWC',
'sessionid': 'a4748q7qjzlaz83hu2tsbuhtzl5hgxjv'},
META:{u'CSRF_COOKIE': u'4oCEFlehOQXMVFfwAT55Sp5BjlkBkwWC',
'DOCUMENT_ROOT': '/var/www/mailadmin/',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'de-de',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=4oCEFlehOQXMVFfwAT55Sp5BjlkBkwWC; sessionid=a4748q7qjzlaz83hu2tsbuhtzl5hgxjv',
'HTTP_HOST': 'domain.com',
'HTTP_REFERER': 'http://domain.com/webmail/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/8.0.6 Safari/600.6.3',
'PATH_INFO': u'/webmail/getmailcontent',
'PATH_TRANSLATED': '/var/www/mailadmin/mailadmin/wsgi.py/webmail/getmailcontent',
'QUERY_STRING': 'mbox=Einladung%20zu%20Infoveranstaltung%20schicken&mailid=6036&links=0',
'REMOTE_ADDR': '111.222.333.444',
'REMOTE_PORT': '49472',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/webmail/getmailcontent?mbox=Einladung%20zu%20Infoveranstaltung%20schicken&mailid=6036&links=0',
'SCRIPT_FILENAME': '/var/www/mailadmin/mailadmin/wsgi.py',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '78.46.64.234',
'SERVER_ADMIN': '[email protected]',
'SERVER_NAME': 'domain.com',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '',
'SERVER_SOFTWARE': 'Apache/2.2.16',
'mod_wsgi.application_group': 'domain.com|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': 'domain.com',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 4),
'wsgi.errors': <mod_wsgi.Log object at 0x7f20bca9c4f0>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f20bcbb0300>,
'wsgi.input': <mod_wsgi.Input object at 0x7f20bca712f0>,
'wsgi.multiprocess': False,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 1)}>

Better handling of IMAP flags

From @tonioo on December 4, 2013 15:24

Originally created by Antoine Nguyen on 2010-07-29T08:31:28Z

Actually, only the '\Answered' flag is considered while listing messages. We should also consider some others like '$forwarded'.

Copied from original issue: modoboa/modoboa#91

New listing actions

From @tonioo on December 4, 2013 15:45

Originally created by Antoine Nguyen on 2012-10-21T09:48:27Z

Add actions to the top menubar (because the drag&drop feature doesn't work everywhere):

  • Remove selection
  • Move selection

Copied from original issue: modoboa/modoboa#324

Webmail: Bug: Error: ["Mailbox doesn't exist: virtual"]

From @piwats on July 4, 2014 15:47

Hello Antoine,

I recently discovered dovecots' virtual mailboxes (http://wiki2.dovecot.org/Plugins/Virtual).

The config is pretty simple:
from 10-mail.conf:

namespace {
prefix = virtual/
separator = /
location = virtual:~/dbox/virtual
}

After having them enabled and configured, Modoboa webmailer refuses to work as desired with this error, no erros in the log:

"Error: ["Mailbox doesn't exist: virtual"]"

If I disable the aforementioned namespace, the webmailer is working properly again.

This is definitely not a blocker or high priority. Yet there might be some use cases and users who depend on this.

-Paul

Copied from original issue: modoboa/modoboa#581

error at sending email

Hello, when i try to send email from wemail, i receive http error 500 with message "'module' object has no attribute 'get_globa_parameters'"

i believe is a typo in modoboa_webmail/lib/sendmail.py

strange enough it worked till today

ps: great job with modoboa

Can't delete message

Hi, I have a problem with webmail. When user is full quota, he can't delete message, error display "Object object". How to resolve problem? thank you very much.

Missing file [email protected]

Get the following error when trying to view some emails via webmail

Not sure why its looking for a file at that location

Traceback (most recent call last):
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
    response = self.get_response(request)
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/django/core/handlers/base.py", line 199, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/modoboa_admin/lib.py", line 30, in wrapped_f
    return f(request, *args, **kwargs)
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/modoboa_webmail/views.py", line 496, in getmailcontent
    "mailbody": email.body if email.body else ""
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/modoboa_webmail/lib/imapemail.py", line 129, in body
    self._fetch_inlines()
  File "/root/.pyenv/versions/modoboa-py2-7-6/lib/python2.7/site-packages/modoboa_webmail/lib/imapemail.py", line 185, in _fetch_inlines
    with open(path, "wb") as fpo:
IOError: [Errno 2] No such file or directory: u'./media/modoboa_webmail/[email protected]'

Unknown encoding exception when loading email with unknown encoding

File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/u2u_decode.py" in decode_mime
  31.         u = unicode(make_header(h))

File "/usr/lib/python2.7/email/header.py" in make_header
  139.         h.append(s, charset)

File "/usr/lib/python2.7/email/header.py" in append
  267.                 ustr = unicode(s, incodec, errors)

Exception Type: LookupError at /webmail/
Exception Value: unknown encoding: windows-874

Fixed with adding LookupError exception in decode_mime in file modoboa/lib/u2u_decode.py:

def decode_mime(m):
    """substitute matching encoded_word with unicode equiv.
    """
    h = decode_header(clean_spaces(m))
    try:
        u = unicode(make_header(h))
    except (UnicodeDecodeError, LookupError):
        return m.group(0)
    return u

Webmail Error: "Modoboa: command UID => got more than 10000 bytes"

From @piwats on November 17, 2014 14:16

Hello,

suddenly, when trying to access the INBOX in the Webamiler under 1.1.7 I am getting this error:

Modoboa: command UID => got more than 10000 bytes

No emails are being shown in the list apart from this error.

Also I get nor errors in my log when this happens...

-Paul

Some information: http://stackoverflow.com/questions/25457441/reading-emails-with-imaplib-got-more-than-10000-bytes-error

Copied from original issue: modoboa/modoboa#635

Release notes missing

The git tags, represented as Releases in GitHub, don't contain release notes, which makes it hard for a third-party developer to follow the changes in development.

Internal error with Spanish locale (or any locale which uses tildes)

Moving from: modoboa/modoboa#882 and expanding with a bit more of information

During my tests I see "Internal error" messages when I click on empty folders (such as drafts) but only with the Spanish locale (tried English and Italian)

Also I tried with another locale (portuguese) and I get the same Internal error, looks like something in the webmail software isn't playing nice with tildes in its localization files.

If it helps to diagnose: I installed modoboa with the installer, default locale in the system is es_ES

Verify messages

From @tonioo on December 4, 2013 15:45

Originally created by Antoine Nguyen on 2012-10-21T10:15:02Z

Add a mechanism to check for trusted messages (using PGP, DKIM, etc.)

Copied from original issue: modoboa/modoboa#333

Caching support

From @tonioo on December 4, 2013 15:45

Originally created by Antoine Nguyen on 2012-10-21T09:54:22Z

To improve performance, Modoboa should use a local cache to store IMAP information. Maybe a Redis or MongoDB backend to store:

  • UID per mailbox
  • Body structures
  • etc.

Copied from original issue: modoboa/modoboa#327

Advanced search

From @tonioo on December 4, 2013 15:45

Originally created by Antoine Nguyen on 2012-10-21T09:50:31Z

Implement a smarter search tool. Think about the way Gmail works.

Copied from original issue: modoboa/modoboa#325

Display messages by discussion

From @tonioo on December 4, 2013 15:24

Originally created by Antoine Nguyen on 2010-07-29T08:41:30Z

Implement another way of displaying messages. Actually, emails are displayed in a flat way (ie. a simple ordered list).

A few ideas to realize this feature:

  • Make a tree based view (like Thunderbird),
  • Make a multi-point base view (like gmail)

A new parameter will be added. It will allow users to choose which method to use when displaying their emails.

Copied from original issue: modoboa/modoboa#93

Error when opening messages

I just upgraded to 1.6.1 and now when I click on a message in my inbox (or in any other folder), I get an error message, a red box saying

Sorry
An internal error occured.

In some sense this is actually an improvement, because before upgrading I would only see a blank white frame. Maybe there's an error message being logged somewhere? Where should I check?

modoboa-admin.py does not create necessary folders in ../media

From @alienmindbender on October 7, 2015 11:18

Hi there,

first post on github ever - so please be lenient with me :)

The script does not create the modoboa_webmail and webmail folders in /media which seem to be needed for sending mails with attachments and viewing embedded pictures in received emails.
I haven't stumbled across the manual setup of these folders in the documentation - and since the script handles the whole directory creation these should be handled as well.

I'am using 1.3.4 btw...

cheers

Copied from original issue: modoboa/modoboa#763

command: LOGIN => Internal error occurred

Helllo,

I have installed modoboa this morning with python script on my debian Jessie on dedicated server.
Problem : I cannot open Webmail, i always have this error :

Erreur: command: LOGIN => Internal error occurred. Refer to server log for more information.

For information i use the port 444 in nginx and i dong't find anything in logs.
I made tail -f on all log files but nothing ...
I give all right to modoboa (visudo), but same error : modoboa ALL=(ALL:ALL) ALL
Thanks in advance.

Atlante

Automatic listing refresh

From @tonioo on December 4, 2013 15:23

Originally created by Antoine Nguyen on 2010-04-30T15:29:56Z

When listing messages, it would be to usefull to refresh the page frequently in order to check for new messages.

At least one parameter is needed to specify the refresh rate.

Copied from original issue: modoboa/modoboa#68

add possibility to add multiple emails in the "To" field of the webmail

From @tonioo on December 4, 2013 15:48

Originally created by Fabrice Flore-Thébault on 2013-06-05T11:44:02Z

If you want to send an email to several users using the "To" field and not the "Cc" field, it is not possible at the moment.

Some user tried to add several adresses like @to: [email protected]; [email protected]@, but it doesn't work: see #424.

It would be nice to be able to add some more @to:@ fields like it is done for @cc:@

Copied from original issue: modoboa/modoboa#412

Error on opening mail within a folder containing an umlaut

When opening mail within a folder which contains an umlaut (foldername: "Gelöschte Elemente") the following error occurs:

Exception Type: UnicodeEncodeError at /webmail/
Exception Value: 'ascii' codec can't encode character u'\xf6' in position 3: ordinal not in range(128
)
Request information:
GET:
action = u'viewmail'
mailid = u'1'
mbox = u'Gel\xf6schte Elemente'
_ = u'1445504705457'

I tried it with the following setups - happens in both times:

modoboa-1.3.4
modoboa_admin-1.1.1
modoboa_admin_limits-1.0.2
modoboa_imap_migration-1.0.2
modoboa_postfix_autoreply-1.0.2
modoboa_sievefilters-1.0.1
modoboa_stats-1.0.2
modoboa_webmail-1.0.1

modoboa-1.3.5
modoboa_admin-1.1.2
modoboa_admin_limits-1.0.2
modoboa_imap_migration-1.0.2
modoboa_postfix_autoreply-1.1.0
modoboa_sievefilters-1.0.3
modoboa_stats-1.0.2
modoboa_webmail-1.0.2

can anyone help add draftjs to this webmail client

draft.js is simple and light. it has auto text direction (RTL,LTR) as well.
https://facebook.github.io/draft-js/

I need some guidance to remove CKEditor and add this one to webmail. I quite like Modoboa Webmail, it's very simple and that's what we need for our users. this RTL issue is the only blocking issue we have

PS: it can be configured to have more advanced features but out of the box it's very simple editor. examples here for <textarea> https://github.com/sstur/react-rte

Address book

From @tonioo on December 4, 2013 15:44

Originally created by Antoine Nguyen on 2012-10-21T09:42:45Z

Implement (or find a django application) to provide address books to users.

Copied from original issue: modoboa/modoboa#321

Forwarding mail from within webmail client not possible

Hi,

when trying to forward mail from within the included webmail client the "send" button gets greyed out when pressed and nothing further is happening.
Running with debug = true sheds no light on the issue and there are no strinking entries in the log files either.
However - all other webmail client functions seem to work perfectly fine.
The frontend (1.3.4) is served via apache.

Any ideas how to fix this?

move messages to mail folders

How does one move a message to a mail folder in webmail?
Also, I can see how to create and delete a new mailbox folder. But, when I go to the server in /srv/vmail/user account/Maildir I can see that the folder is still there.

Does it eventually get deleted somehow?

Thanks.

Impacted versions

  • Modoboa: 1.6.3
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Current behavior

Expected behavior

Video/Screenshot link (optional)

Moving message between folders in modoboa webmail keeps the original message in old folder's cur dir in filesystem

Hi!

Newbie here. Just installed a fresh 1.6.0 modoboa instance on a cleanly installed Debian 8.5 system.
Everything is working great, but when i move messages between folders in modoboa-webmail, the original message stays in the 'cur' folder in the filesystem. The affected IMAP folders are updated properly, but not on the filesystem level.

When i move messages with other IMAP clients (tested with a local roundcube instance, remote Outlook 2016, Windows 10 Mail) the message properly deleted from the filesystem as well from the old folder.

Is this a dovecot issue or the modoboa-webmail moves the message using a strange IMAP method?

Grats for this awesome app!

Support for dovecot folder sharing

From @tonioo on December 4, 2013 16:25

Originally created by Miroslav Abrahám on 2013-09-02T22:45:28Z

It would be useful for Modoboa webmail to support dovecot's folder sharing. Currently the webmail does not seem to like any virtual folders, such as "Shared" root folder for other shared folders.
When one is using the share folder plugin and has already subscribed to some folders, entering a webmail does result in a similar error message:

Error: ["Mailbox doesn't exist: Shared"]

Copied from original issue: modoboa/modoboa#489

Css issues on centos7

I have installed modoboa on centos7. It works, but none of the style sheets are working. Makes me wonder what else is broken. The same install on Ubuntu 16 works perfectly.

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.