]> code.delx.au - offlineimap/blobdiff - offlineimap/mbnames.py
Sort mbnames for each account before writing
[offlineimap] / offlineimap / mbnames.py
index 27ce7979bb819ec77b8e4cfa668865d5bceebcf5..08591c7b4945977013b250f88fcc1fde7f59cdff 100644 (file)
@@ -14,7 +14,7 @@
 #
 #    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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
 import os.path
 import re                               # for folderfilter
@@ -36,6 +36,9 @@ def add(accountname, foldername):
     if not foldername in boxes[accountname]:
         boxes[accountname].append(foldername)
 
+def sort(accountname, foldersort):
+    boxes[accountname].sort(foldersort)
+
 def write():
     # See if we're ready to write it out.
     for account in accounts: