You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by GitBox <gi...@apache.org> on 2021/12/27 12:12:48 UTC

[GitHub] [incubator-ponymail-foal] sebbASF opened a new issue #193: Permalinks and other items can be dropped when importing mails

sebbASF opened a new issue #193:
URL: https://github.com/apache/incubator-ponymail-foal/issues/193


   The database design includes some fields in the mbox index entry which are not directly derived from the email.
   
   These include:
   - permalinks
   - deleted flag
   - previous, top, thread
   - _notes, _archived_at
   
   These fields will be lost if an entry is added to the index with the same id.
   This may occur when importing historic emails, e.g. to backfill missing messages.
   
   It's not unknown for the same message to be delivered twice to the same list.
   Such deliveries normally occur within a short space of time.
   It's not yet clear whether significant mbox fields can be lost in this way, but _notes and _archived_at will be affected, as will the dbid entry which points to the source index. This will generally result in an orphan source entry.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ponymail-foal] sebbASF commented on issue #193: Permalinks and other items can be dropped when importing mails

Posted by GitBox <gi...@apache.org>.
sebbASF commented on issue #193:
URL: https://github.com/apache/incubator-ponymail-foal/issues/193#issuecomment-1013559234


   As far as importing mails is concerned, by default the code should not overwrite any existing entries.
   If an mbox entry is found to exist, then the corresponding source entry should not be imported.
   Duplicate source entries can just be dropped; this will preserve existing settings.
   
   Any duplicate emails should be reported so action can be taken as needed.
   
   An option can be added to retain the current behaviour, but it should be made obvious that using the option can result in loss of data.
   
   ===
   
   It's not so obvious what to do in the case of the archiver, because the input is generally ephemeral.
   Duplicate source entries should be dropped, but duplicate mbox entries may perhaps result from different input messages.
   This needs further analysis; it may be necessary to update the mbox entry if it has a different source id.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-ponymail-foal] sebbASF commented on issue #193: Permalinks and other items can be dropped when importing mails

Posted by GitBox <gi...@apache.org>.
sebbASF commented on issue #193:
URL: https://github.com/apache/incubator-ponymail-foal/issues/193#issuecomment-1025126672


   If an email is re-imported using a different list-id, it will get a new mbox id, but the source id will be the same.
   The source index entry permalinks will then be wrong/incomplete


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ponymail.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org