Humbedooh commented on pull request #517: URL: https://github.com/apache/incubator-ponymail/pull/517#issuecomment-672260461
Furthermore, blue-skying here, this could be made backwards compatible with older databases easily. For all new sources, store the source document with a pibble field inside (next to the source field). For all old sources, the doc ID is the permalink. Thus, to figure out if we need to access directly via permalink ID or via a pibble keyword search, we'd just assess whether the ID of the email being accessed is a pibble or not. Things to consider for later: - Not accessing documents directly via their ID has performance costs - I don't know how significant these are. For general single-source viewing, this should not be much if any. For generating mbox files, it will need some careful thought. - Viewing source via source.(lua|py|whatever) should only yield one result. There should perhaps be an X-Source-Alternate header if an alternate source exists in the DB, so you can look this up if debugging why an email is presumed missing. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
