Hey,
I’m trying to setup this migration tool wich can be really useful
Here is the error I get when I try to use offlineimap
vmail@mail:~$ offlineimap
OfflineIMAP 7.2.3
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v2.57 (system), Python v2.7.16, OpenSSL 1.1.1d 10 Sep 2019
ERROR: No module named urls
ERROR: Exceptions occurred during the run!
ERROR: No module named urls
Some input
.offlineimap.py
import os
import site
import sys
site.addsitedir("/srv/modoboa/env/lib/python2.7/site-packages")
sys.path.append("/srv/modoboa/instance")
os.environ["DJANGO_SETTINGS_MODULE"] = "instance.settings"
from django.apps import apps
from django.conf import settings
apps.populate(settings.INSTALLED_APPS)
from modoboa_imap_migration.models import Migration
def get_user_password(username):
"""Retrieve a password from Modoboa's database."""
return Migration.objects.select_related().get(
mailbox__user__username=username
).password
Hey, I’m trying to setup this migration tool wich can be really useful Here is the error I get when I try to use offlineimap
Some input
.offlineimap.py
~.offlineimaprc