mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #817] Mail show failed #727
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#727
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ezhishui on GitHub (Dec 16, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/817
Hi,
i have sent a mail which contains a picture in body,not as a attachment.
it showed the error when visit "/webmail/#?action=viewmail&mbox=INBOX&mailid=23":
IOError at /webmail/getmailcontent
[Errno 2] No such file or directory: u'./media/modoboa_webmail/23_DAE3C92E@E70C435A.430E7156.jpg'
Request Method: GET
Request URL: https://iwho.xyz/webmail/getmailcontent?mbox=INBOX&mailid=23&links=0
Django Version: 1.7.11
Exception Type: IOError
Exception Value:
[Errno 2] No such file or directory: u'./media/modoboa_webmail/23_DAE3C92E@E70C435A.430E7156.jpg'
Exception Location: /srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_webmail/lib/imapemail.py in _fetch_inlines, line 185
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.6
Python Path:
['.',
'',
'/srv/modoboa/env/lib/python2.7',
'/srv/modoboa/env/lib/python2.7/plat-x86_64-linux-gnu',
'/srv/modoboa/env/lib/python2.7/lib-tk',
'/srv/modoboa/env/lib/python2.7/lib-old',
'/srv/modoboa/env/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/srv/modoboa/env/local/lib/python2.7/site-packages']
Server time: Wed, 16 Dec 2015 11:34:58 +0100
The traceback:
Environment:
Request Method: GET
Request URL: https://iwho.xyz/webmail/getmailcontent?mbox=INBOX&mailid=23&links=0
Django Version: 1.7.11
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'django.contrib.staticfiles',
'reversion',
'modoboa',
'modoboa.core',
'modoboa.lib',
'modoboa_admin',
'modoboa_admin_relaydomains',
'modoboa_admin_limits',
'modoboa_amavis',
'modoboa_pdfcredentials',
'modoboa_postfix_autoreply',
'modoboa_sievefilters',
'modoboa_stats',
'modoboa_webmail')
Installed Middleware:
('x_forwarded_for.middleware.XForwardedForMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'modoboa.lib.middleware.AjaxLoginRedirect',
'modoboa.lib.middleware.CommonExceptionCatcher',
'modoboa.lib.middleware.RequestCatcherMiddleware')
Traceback:
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: IOError at /webmail/getmailcontent
Exception Value: [Errno 2] No such file or directory: u'./media/modoboa_webmail/23_DAE3C92E@E70C435A.430E7156.jpg'
@tonioo commented on GitHub (Dec 16, 2015):
Looks like the /srv/modoboa/instance/media/modoboa_webmail folder does not exist. Create it and your issue should be fixed.
@ezhishui commented on GitHub (Dec 16, 2015):
Thank you, i will have a try tomorrow i am not sure whether the folder is exist.If it will be created automatically when the picture is received will be better.
@ezhishui commented on GitHub (Dec 17, 2015):
I have create the folder /srv/modoboa/instance/media/modoboa_webmail, and the error disappear but i can not see the picture in the email body from Inbox of modoboa.The picture is in the folder already,and i have read the email in vmail/myuser/cur,the base64 code of the pictrue is exist.
@ezhishui commented on GitHub (Dec 17, 2015):
The email page source code:
The tag "
@tonioo commented on GitHub (Jan 8, 2016):
Hi, have you tried this: https://github.com/tonioo/modoboa/issues/819 ?