On 7 January 2017 at 14:15, Mattia Oss <mais.to...@gmail.com> wrote:

> On Sat, Jan 07, 2017 at 01:14:21PM +0000, Michael Fothergill wrote:
>
> I'm also trying to configure offlineimap and mutt, so I'll try to
> help.
>
> > I found a web site that explained how to use it in combination with emacs
> Always compare more sources as offlineimap is changed a lot recently.
>
> > [Repository Local]
> > type = Maildir
> use type = GmailMaildir here.
>
> > [Repository MichaelFothergillGmail]
> > type = Gmail
> > maxconnections=1
> > remoteuser = michael.fotherg...@gmail.com
> > realdelete=no
> > folderfilter = lambda foldername:    foldername in ['[Google Mail]/All
> > Mail', '[Google Mail]/Sent Mail']
> > nametrans = lambda foldername:  re.sub('^\[Google Mail\]/All Mail$',
> 'all',
> > re.sub('^\[Google Mail\]/Sent Mail$', 'sent',foldername))
>
> You have to use nametrans both in the local and remote repository.
> Look at this howto:
> http://stevelosh.com/blog/2012/10/the-homely-mutt/
> But you can do this later. I'd rather just disable this option for the
> moment.
>
> > mikef@rhinoceros:~$ offlineimap
> Try:
> $ offlineimap --info
>
> and post the output.
>

​Many thanks for your input here.​

​I tried running offlineimap --info but it did not recognise this command.
I ran offlineimap -help and there was a debug option which I tried running:

​mikef@rhinoceros:~$ offlineimap -d
Usage: offlineimap [options]

offlineimap: error: -d option requires an argument
mikef@rhinoceros:~$ offlineimap -d type1
 OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).

 Debug mode: Forcing to singlethreaded.
 WARNING: Invalid debug type: type1
 Now debugging for : Other offlineimap related sync messages
Account sync mikefGmail:
 ***** Processing account mikefGmail
 Copying folder structure from Gmail to Maildir
 Establishing connection to imap.gmail.com:993.
 ***** Finished processing account mikefGmail

​It says that it copied the folder structure from Gmail to Maildir but the
folder is still empty.

​
mikef@rhinoceros:~$ offlineimap
 OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).

​I edited the config file and changed local type = Maildir to type =
GmailMaildir.

When I ran it then it crashed :

Exception: 'GmailMaildir' repository not supported for local repositories.
  ​
​It does not recognise the term GmailMaildir apparently.

​Any other suggestions you have are most welcome.

Regards

MF

Reply via email to