/head: changeset 39

Completed name change to offlineimap
This commit is contained in:
jgoerzen 2002-06-21 11:01:10 +01:00
parent cf52b56246
commit 292df13aec
10 changed files with 18 additions and 18 deletions

View File

@ -22,10 +22,10 @@
[general] [general]
# This specifies where imapsync is to store its metadata. # This specifies where offlineimap is to store its metadata.
# This directory will be created if it does not already exist. # This directory will be created if it does not already exist.
metadata = ~/.imapsync metadata = ~/.offlineimap
# This variable specifies which accounts are defined. Separate them # This variable specifies which accounts are defined. Separate them
# with commas. Account names should be alphanumeric only. # with commas. Account names should be alphanumeric only.
@ -35,7 +35,7 @@ metadata = ~/.imapsync
accounts = Test accounts = Test
# You can have imapsync continue running indefinately, automatically # You can have offlineimap continue running indefinately, automatically
# syncing your mail periodically. If you want that, specify how # syncing your mail periodically. If you want that, specify how
# frequently to do that (in minutes) here. # frequently to do that (in minutes) here.
@ -47,7 +47,7 @@ accounts = Test
[mbnames] [mbnames]
# imapsync can record your mailbox names in a format you specify. # offlineimap can record your mailbox names in a format you specify.
# You can define the header, each mailbox item, the separator, # You can define the header, each mailbox item, the separator,
# and the footer. Here is an example for Mutt. # and the footer. Here is an example for Mutt.
# If enabled is yes, all six setting must be specified, even if they # If enabled is yes, all six setting must be specified, even if they

View File

@ -17,15 +17,15 @@
# along with this program; if not, write to the Free Software # 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from imapsync import imaplib, imaputil, imapserver, repository, folder, mbnames from offlineimap import imaplib, imaputil, imapserver, repository, folder, mbnames
import re, os, os.path, imapsync, sys import re, os, os.path, offlineimap, sys
from ConfigParser import ConfigParser from ConfigParser import ConfigParser
ui = imapsync.ui.TTY.TTYUI() ui = offlineimap.ui.TTY.TTYUI()
ui.init_banner() ui.init_banner()
config = ConfigParser() config = ConfigParser()
configfilename = os.path.expanduser("~/.imapsyncrc") configfilename = os.path.expanduser("~/.offlineimaprc")
if not os.path.exists(configfilename): if not os.path.exists(configfilename):
sys.stderr.write(" *** Config file %s does not exist; aborting!\n" % configfilename) sys.stderr.write(" *** Config file %s does not exist; aborting!\n" % configfilename)
sys.exit(1) sys.exit(1)

View File

@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from Base import BaseFolder from Base import BaseFolder
from imapsync import imaputil, imaplib from offlineimap import imaputil, imaplib
import rfc822 import rfc822
from StringIO import StringIO from StringIO import StringIO

View File

@ -19,7 +19,7 @@
from Base import BaseFolder from Base import BaseFolder
import os import os
magicline = "IMAPSYNC LocalStatus CACHE DATA - DO NOT MODIFY - FORMAT 1" magicline = "OFFLINEIMAP LocalStatus CACHE DATA - DO NOT MODIFY - FORMAT 1"
class LocalStatusFolder(BaseFolder): class LocalStatusFolder(BaseFolder):
def __init__(self, root, name): def __init__(self, root, name):

View File

@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from Base import BaseFolder from Base import BaseFolder
from imapsync import imaputil from offlineimap import imaputil
import os.path, os, re, time, socket import os.path, os, re, time, socket
class MaildirFolder(BaseFolder): class MaildirFolder(BaseFolder):
@ -25,7 +25,7 @@ class MaildirFolder(BaseFolder):
self.name = name self.name = name
self.root = root self.root = root
self.sep = '.' self.sep = '.'
self.uidfilename = os.path.join(self.getfullname(), "imapsync.uidvalidity") self.uidfilename = os.path.join(self.getfullname(), "offlineimap.uidvalidity")
self.messagelist = None self.messagelist = None
def getfullname(self): def getfullname(self):

View File

@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software # 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from imapsync import imaplib, imaputil from offlineimap import imaplib, imaputil
class IMAPServer: class IMAPServer:
def __init__(self, username, password, hostname, port = None, ssl = 1): def __init__(self, username, password, hostname, port = None, ssl = 1):

View File

@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from Base import BaseRepository from Base import BaseRepository
from imapsync import folder, imaputil from offlineimap import folder, imaputil
import re import re
class IMAPRepository(BaseRepository): class IMAPRepository(BaseRepository):

View File

@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from Base import BaseRepository from Base import BaseRepository
from imapsync import folder from offlineimap import folder
import os import os
class LocalStatusRepository(BaseRepository): class LocalStatusRepository(BaseRepository):

View File

@ -17,7 +17,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from Base import BaseRepository from Base import BaseRepository
from imapsync import folder, imaputil from offlineimap import folder, imaputil
from mailbox import Maildir from mailbox import Maildir
import os import os

View File

@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software # 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from imapsync import repository from offlineimap import repository
import re, time import re, time
class UIBase: class UIBase:
@ -45,7 +45,7 @@ class UIBase:
def init_banner(s): def init_banner(s):
"Display the copyright banner." "Display the copyright banner."
s._msg("""imapsync s._msg("""offlineimap
Copyright (C) 2002 John Goerzen. All rights reserved. Copyright (C) 2002 John Goerzen. All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.""") This software comes with NO WARRANTY: see the file COPYING for details.""")