https://vkrause@svn.kde.org/home/kde/branches/work/~vkrause/enterprise ........ r703856 | vkrause | 2007-08-23 14:57:25 +0200 (Thu, 23 Aug 2007) | 2 lines Add migration infrastructure to transfer local flags to the server. ........ r703887 | vkrause | 2007-08-23 16:34:57 +0200 (Thu, 23 Aug 2007) | 5 lines Configuration update script to trigger migration of local IMAP flags to the server. This should solve a regression due to the recent changes to store the seen flag on the server also for read-only folders where all local flags were overwritten. ........ svn path=/branches/kdepim/enterprise/kdepim/; revision=703903wilder-work
parent
515cd85187
commit
b4d12ce82b
6 changed files with 72 additions and 7 deletions
@ -0,0 +1,39 @@ |
||||
#!/usr/bin/perl |
||||
# |
||||
# Copyright (c) 2007 Volker Krause <vkrause@kde.org> |
||||
# |
||||
# This program is free software; you can redistribute it and/or modify |
||||
# it under the terms of the GNU General Public License as published by |
||||
# the Free Software Foundation; either version 2 of the License, or |
||||
# (at your option) any later version. |
||||
# You should have received a copy of the GNU General Public License |
||||
# along with this program; if not, write to the Free Software Foundation, |
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US |
||||
# |
||||
|
||||
$currentGroup = ""; |
||||
|
||||
$source = $ARGV[0]; |
||||
|
||||
while (<STDIN>) { |
||||
chomp; |
||||
next if /^$/; |
||||
next if /^\#/; |
||||
|
||||
# recognize groups: |
||||
if ( /^\[(.+)\]$/ ) { |
||||
$currentGroup = $_; |
||||
next; |
||||
}; |
||||
|
||||
($key,$value) = split /=/; |
||||
next if $key eq ""; |
||||
|
||||
if ( $currentGroup =~ /^\[Folder/ ) { |
||||
if( ($key eq "UploadAllFlags" or $key eq "StatusChangedLocally") and not $value eq "true" ) { |
||||
$value = "true"; |
||||
print "#DELETE $currentGroup $key\n"; |
||||
print "$currentGroup\n$key=$value\n" |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue