X-Git-Url: https://code.delx.au/offlineimap/blobdiff_plain/d839be3c61888a837bf2de52939eca9831e68dfc..a8a2a87e1e75136bc1a657048bb83968977ca8ab:/offlineimap/mbnames.py diff --git a/offlineimap/mbnames.py b/offlineimap/mbnames.py index 27ce797..08591c7 100644 --- a/offlineimap/mbnames.py +++ b/offlineimap/mbnames.py @@ -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: