FAQ.User_Concurrent_Access.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/bin/cat
  2. $Id: FAQ.User_Concurrent_Access.txt,v 1.6 2022/05/05 13:18:29 gilles Exp gilles $
  3. This document is also available online at
  4. https://imapsync.lamiral.info/FAQ.d/
  5. https://imapsync.lamiral.info/FAQ.d/FAQ.User_Concurrent_Access.txt
  6. =======================================================================
  7. Imapsync and user concurrent access.
  8. =======================================================================
  9. =======================================================================
  10. Q. What happens if a user access the mailbox during the transfer process?
  11. R. Think all potential problems with a sync between
  12. a master/source/host1 and a slave/destination/host2
  13. What happens when a user access syncing accounts depends
  14. on what he does, where he does and when.
  15. As a summary, reading is safe, writing/deleting is not.
  16. Details:
  17. * Reading: no problem anywhere, at source/host1 or at destination/host2,
  18. anytime. Reading is safe.
  19. * Writing at source/host1:
  20. * adding folder => will need a resync after
  21. * deleting folder => folders deletions are not synced unless --delete2folders
  22. * deleting message => messages deletions are not synced unless --delete2
  23. * adding message => will need a resync
  24. * moving message => will need a resync. Moving is like adding + deleting
  25. so --delete2 is needed to sync the deletion.
  26. * message flag change => will need a resync
  27. Let's more precise about timing.
  28. Imapsync works per folder, one folder at a time.
  29. If imapsync has already synced a folder during a run,
  30. what happens to this folder now won't be synced by the current run.
  31. If imapsync has not already synced a folder during a run,
  32. what happens to this folder now will be synced by the current run.
  33. If imapsync is syncing a folder during a run,
  34. what happens to this folder now depends on when things happen.
  35. Imapsync starts by listing messages and getting meta data about them,
  36. Message-Id, Date, Size.
  37. A message deleted just after the listing, won't be synced.
  38. A new message arriving just after the listing, won't be synced.
  39. * Writing at destination/host2:
  40. * adding folder => no problem, unless --delete2folders is used
  41. * deleting folder => will reappear by a new sync
  42. * adding message => no problem, unless --delete2 is used on next sync.
  43. * deleting message => might reappear by a new sync.
  44. * message flag change => will be reseted by a new sync.
  45. =======================================================================
  46. =======================================================================