From 3025922d5ccc02031143568cbb9cdec84f13de32 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 12:06:12 +0100 Subject: [PATCH] Remove path from index entries --- inbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inbox.py b/inbox.py index 3b69bfa06..e4936a890 100644 --- a/inbox.py +++ b/inbox.py @@ -1512,6 +1512,8 @@ def inboxUpdateIndex(baseDir: str,handle: str,destinationFilename: str,debug: bo indexFilename=baseDir+'/accounts/'+handle+'/inbox.index' if debug: print('DEBUG: Updating index '+indexFilename) + if '/index/' in destinationFilename: + destinationFilename=destinationFilename.split('/index/')[1] if os.path.isfile(indexFilename): with open(indexFilename, 'r+') as indexFile: content = indexFile.read()