[PATCH 4/8] Re: Create new folders on srcrepo if needed

Nicolas Sebrecht nicolas.s-dev at laposte.net
Tue Sep 6 17:23:58 BST 2011


On Mon, Sep 05, 2011 at 11:06:57AM +0200, Sebastian Spaeth wrote:

> > - do the remote folder creation, fetch the new list of folder, apply
> >   folderinclude on it, apply nametrans on it, apply whatever is needed
> >   to have the name we'll have on next run, check that the final local
> >   foldername matches the original local foldername:
> > 
> >     - if they match: accept the creation.
> > 
> >     - if they don't match: refuse and delete the remote foldername, or
> >       rename/move the original local foldername to match the resulting
> >       foldername.
> 
> > Not sure. I agree if you're saying "we might want to use the nametrans
> > setting /on/ the /newly created/ dest repo".
> > 
> > Or, I misunderstood. :-/
> 
> I think I meant we should configure and behave the way we do now. What
> we can actually do to improve is to use a safeguard as you propose
> above:
> 
> - We actually apply the nametrans rules in both ways and see if we end
>   up with the same folder name, if yes we are fine, if not there is a
>   misconfiguration.
>   I think that is easy and feasible and we can warn the user about it
>   preventing her from shooting herself in the foot. But we can merge

Ok. I will merge this topic in pu, for now.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list