On Mon, Aug 27, 2018 at 06:14:03PM +0000, J. Tull wrote: > A python "import" command inside the offlineimap rc file? you said > earlier that there is not "import" in the rc file. And i said even > earlier that i tried to assign a python file to "pythonfile" in which > i imported several functions and that these functions were not > working in the rc files. Complaining that there's no module named so > and so.
Sorry, if I said this for the rc file. "import" is a python statement which can be used in the pythonfile. > I get an error message when using "import" in the rc file: > ConfigParser.ParsingError: File contains parsing errors: > .offlineimaprc/offlineimap.conf > [line 25]: 'import ~/.offlineimaprc/pythonfile.py\n' > > I didn't put the litteral '\n' at the end of the import line. You did. Not '\' followed by 'n' but the character '\n' is written. That's the character used to start a new line. This is a non-printable character, though. So, this character is expected while this statement won't work in the rc file. -- Nicolas Sebrecht _______________________________________________ OfflineIMAP-project mailing list: OfflineIMAP-project@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/offlineimap-project OfflineIMAP homepages: - https://github.com/OfflineIMAP - http://offlineimap.org