On Tue, Feb 21, 2017 at 05:13:57PM +0000, Homan, Philipp wrote: > Oswald Buddenhagen writes: > >> /Archive/cur/'1487608528.de209b1bae3fa41e.L_LAPTOP:2,S,U=4367' > >> > >> had been refiled and synced under mbsync (after renaming the message > >> with the syntax you suggested) and it does show up as unread again. > >> > > yes, because that's still messed up. > > rename 's/(:2,(?:[A-Z]+,)?)(U=[0-9]+)$/\2\1/' */*/* > > Are you sure about the syntax? > no. the disclaimer from the previous mail still applied. ^^
> Before: /Archive/cur/1487568064.cb55ebb042c5c66b.L_LAPTOP:2,RS,U=4366 > After: /Archive/cur/1487568064.cb55ebb042c5c66b.L_LAPTOPU=4366:2,RS, > > Did you mean 's/(:2,(?:[A-Z]+,)?)(U=[0-9]+)$/;\2\1/' ? > no, that still makes a mess. this seems to work for a bunch of cases: 's/(:2,(?:[A-Z]+)?),?(U=[0-9]+)$/,\2\1/' (i don't know how messages without flags got garbled, so the expression is quite lenient about the commas.) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel