diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/adapter/pixelated_mailbox.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/pixelated/adapter/pixelated_mailbox.py b/service/pixelated/adapter/pixelated_mailbox.py index 3424ddd7..ecd83d6e 100644 --- a/service/pixelated/adapter/pixelated_mailbox.py +++ b/service/pixelated/adapter/pixelated_mailbox.py @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. +import os + from pixelated.adapter.pixelated_mail import PixelatedMail from pixelated.adapter.tag import Tag from pixelated.adapter.tag_index import TagIndex @@ -66,4 +68,5 @@ class PixelatedMailbox: @classmethod def create(cls, account, mailbox_name='INBOX'): - return PixelatedMailbox(account.getMailbox(mailbox_name), '~/.pixelated_index') + db_path = os.path.join(os.environ['HOME'], '.pixelated_index') + return PixelatedMailbox(account.getMailbox(mailbox_name), db_path) |