offlineimap.conf: improve namtrans doc a bit

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-10-15 13:42:17 +02:00
parent 5ea2106da8
commit 8cbe5640b2

View File

@ -941,16 +941,17 @@ remoteuser = username
# folders, UNLESS the second values are filtered out by folderfilter below. # folders, UNLESS the second values are filtered out by folderfilter below.
# Failure to follow this rule will result in undefined behavior. # Failure to follow this rule will result in undefined behavior.
# #
# See the user documentation for details and use cases. They are also online at: # If you enable nametrans, you will likely need to set the reversed nametrans on
# http://docs.offlineimap.org/en/latest/nametrans.html # the other side. See the user documentation for details and use cases. They
# are also online at: http://offlineimap.org/doc/nametrans.html
# #
# This example below will remove "INBOX." from the leading edge of folders # This example below will remove "INBOX." from the leading edge of folders
# (great for Courier IMAP users). # (great for Courier IMAP users).
# #
#nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername) #nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
# #
# Using Courier remotely and want to duplicate its mailbox naming # Using Courier remotely and want to duplicate its mailbox naming locally? Try
# locally? Try this: # this:
# #
#nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername) #nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)