From ab85b2ea164ad14a8f32413d126e3987a40f1ab4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Oct 2019 10:39:07 +0100 Subject: [PATCH] Extra parameters --- posts.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 106c4eee..97621f85 100644 --- a/posts.py +++ b/posts.py @@ -1908,7 +1908,7 @@ def createBoxIndex(boxDir: str,postsInBoxDict: {}) -> int: postsCtr+=1 return postsCtr -def createSharedInboxIndex(sharedBoxDir: str,postsInBoxDict: {},postsCtr: int) -> int: +def createSharedInboxIndex(baseDir: str,sharedBoxDir: str,postsInBoxDict: {},postsCtr: int,nickname: str,domain: str) -> int: """ Creates an index for the given shared inbox """ handle=nickname+'@'+domain @@ -2032,7 +2032,10 @@ def createBoxBase(session,baseDir: str,boxname: str, \ # combine the inbox for the account with the shared inbox if sharedBoxDir: - postsCtr=createSharedInboxIndex(sharedBoxDir,postsInBoxDict,postsCtr) + postsCtr= \ + createSharedInboxIndex(baseDir,sharedBoxDir, \ + postsInBoxDict,postsCtr, \ + nickname,domain) # sort the list in descending order of date postsInBox=OrderedDict(sorted(postsInBoxDict.items(),reverse=True))