You are not logged in.

#1 2023-07-25 17:35:18

Beli3ver
Member
Registered: 2013-08-25
Posts: 19

OfflineIMAP Error: unterminated string literal

Hello,

I would like to use OfflineIMAP to get my mails from the server (2 accounts). I have the following configuration.


[general]
accounts = main,main2

[Account main]
localrepository = main-local
remoterepository = main-remote
postsynchook = ~/.bin/notmuch

[Repository main-local]
type = Maildir
localfolders = ~/.mail/mailbox

[Repository main-remote]
type = IMAP
remotehost = imap.main.com
remoteuser = mail@main.com
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
ssl_version = tls1_2

[Account main2]
localrepository = main2-local
remoterepository = main2-remote
postsynchook = ~/.bin/notmuch

[Repository main2-local]
type = Maildir
localfolders = ~/.mail/main2

[Repository main2-remote]
type = IMAP
remotehost = imap.main2.com
remoteuser = mail@main2.com
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
ssl_version = tls1_2


[mbnames]
enabled  = yes
filename = ~/.mutt/mailboxes
header   = "mailboxes "
peritem  = "+%(accountname)s/%(foldername)s"
sep      = " "
footer   = "\n

But when I call "offlineimap" now, it comes to this error:

OfflineIMAP 8.0.0
  Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
imaplib2 v3.06, Python v3.11.3, OpenSSL 3.1.1 30 May 2023
ERROR: unterminated string literal (detected at line 1) (<string>, line 1)
ERROR: Exceptions occurred during the run!
ERROR: unterminated string literal (detected at line 1) (<string>, line 1)

I have checked my configuration several times and compared it with the docs, but I can't find the character that throws this error here.

Offline

#2 2023-07-25 20:18:09

xerxes_
Member
Registered: 2018-04-29
Posts: 1,065

Re: OfflineIMAP Error: unterminated string literal

Post output of command: "file name_of_your_configuration_file"

Offline

#3 2023-07-25 20:23:53

Beli3ver
Member
Registered: 2013-08-25
Posts: 19

Re: OfflineIMAP Error: unterminated string literal

[User@Host ~]$ file .offlineimaprc
.offlineimaprc: ASCII text

Offline

#4 2023-07-25 20:52:25

Beli3ver
Member
Registered: 2013-08-25
Posts: 19

Re: OfflineIMAP Error: unterminated string literal

Found the bug.
Last line, missing "

Offline

#5 2023-07-26 17:11:37

xerxes_
Member
Registered: 2018-04-29
Posts: 1,065

Re: OfflineIMAP Error: unterminated string literal

Is it work for you know after you correct this bug?

Offline

Board footer

Powered by FluxBB