Coder Social home page Coder Social logo

Comments (4)

gilleslamiral avatar gilleslamiral commented on June 15, 2024

If not, maybe you should add an entry on the Emptying FAQ about that ?

How about
https://imapsync.lamiral.info/FAQ.d/FAQ.Emptying.txt

=======================================================================
Q. How to delete some folders of an account with imapsync?

R. Use the same account on both sides with the options 
    --delete1 --noexpungeaftereach --delete1emptyfolders
    like when deleting all folders BUT select only the folders
    you want to delete by using options to select folders,
    like --folder or --folderrec or --include or --exclude 

Example, to delete the folder Blabla

  imapsync ... --delete1 --noexpungeaftereach --delete1emptyfolders --folder Blabla

To delete the four folders Kalender Kontakte Aufgaben Notizen:

  imapsync ... --include 'Kalender|Kontakte|Aufgaben|Notizen' \
                 --delete1 --noexpungeaftereach --delete1emptyfolders

I strongly recommend to use --dry first!

To get an overview of how to select folders, see
https://imapsync.lamiral.info/FAQ.d/FAQ.Folders_Selection.txt

=======================================================================

from imapsync.

Mer0me avatar Mer0me commented on June 15, 2024

I know imapsync can delete folders like this, but I think you should warn users that excluded folders are not deleted with delete2folders if they are present on host1.
During the preparation of the migration scenario, I've adjusted options when I've figured out that some folders should not be copied. Mailboxes used during this phase can still have unwanted folders at the end if we don't care.

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 15, 2024

How about changing
https://imapsync.lamiral.info/README
with
,,,

 --delete2folders    : Delete folders in host2 that are not in host1.
                       Only the selected folders are considered, all folders by 
                       default but not all with --exclude --include --folder etc.
                       For safety, first try it like this, it is safe:
                       --delete2folders --dry --justfolders --nofoldersizes
                       and see what folders will be deleted.

from imapsync.

Mer0me avatar Mer0me commented on June 15, 2024

Seems good for me

from imapsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.