<code>
[16:10:08.402 INFO] Logging into Google...
[16:10:09.075 INFO] Parsing BBDB file /home/ded/.bbdb...
[16:10:09.075 INFO] Parsing BBDB Store with encoding utf-8...
[16:10:09.095 ERROR] Could not parse BBDB record: [#("SellerOf" 0 4 (fontified nil)) #("Ferrari" 0 7 (fontified nil)) nil nil nil nil nil (#("YY...@XXXXXXo.it" 0 21 (fontified nil))) ((creation-date . "2013-01-10 20:35:35 +0000") (timestamp . "2013-01-10 20:35:35 +0000") (subjects . "emacs mylin-like tool ?") (newsgroups . "gnu.emacs.help")) nil]
Traceback (most recent call last):
File "./asynk.py", line 892, in <module>
main()
File "./asynk.py", line 110, in main
asynk.dispatch()
File "./asynk.py", line 411, in dispatch
res = getattr(self, self.get_op())()
File "./asynk.py", line 620, in op_sync
pname = self._load_profile()
File "./asynk.py", line 886, in _load_profile
self._login()
File "./asynk.py", line 316, in _login
self.set_db(db2id, getattr(self, login_func)())
File "./asynk.py", line 832, in login_bb
bb = BBPIMDB(conf, bbfn)
File "/home/ded/src/ASynK/asynk/pimdb_bb.py", line 371, in __init__
def_ms = self.add_msgstore(def_fn)
File "/home/ded/src/ASynK/asynk/pimdb_bb.py", line 421, in add_msgstore
ms = MessageStore(self, ms)
File "/home/ded/src/ASynK/asynk/pimdb_bb.py", line 47, in __init__
self.populate_folders()
File "/home/ded/src/ASynK/asynk/pimdb_bb.py", line 314, in populate_folders
encoding=encoding)
File "/home/ded/src/ASynK/asynk/pimdb_bb.py", line 263, in parse_with_encoding
'processing file "%s" ') % fn)
pimdb_bb.BBDBFileFormatError: Cannot proceed with processing file "/home/ded/.bbdb"
</code>
Any idea what is causing this?
BTW, just learned about Asynk. Thanks for tackling this.
Regards,
Dan
[16:10:09.095 ERROR] Could not parse BBDB record: [#("SellerOf" 0 4 (fontified nil)) #("Ferrari" 0 7 (fontified nil)) nil nil nil nil nil (#("YY...@XXXXXXo.it" 0 21 (fontified nil))) ((creation-date . "2013-01-10 20:35:35 +0000") (timestamp . "2013-01-10 20:35:35 +0000") (subjects . "emacs mylin-like tool ?") (newsgroups . "gnu.emacs.help")) nil]
Thanks, Karra. I would be glad to, but I'm only an amateur lisp hacker.
1. What is the correct way to transform the syntax to #-less?
2. BBDBv3 did it behind my back to begin with. Any way to stop that from happening?
Regards,
I have done some investigating:
1. The #(...) form is a vector in lisp.
2. A record created from Gnus on the fly by hitting ':' appears to
create records in this form.
3. If the vector-form field is edited by hand, BBDBv3 writes it as a
string.
I've looked through bbdb.el to see if there was some setting that
could turn off vector-form writing in the db, but have found none.
If there were such a flag, that would probably be the best option.
From Asynk's point of view, however, it would seem that simply
extracting the first element of the vector would work. They appear to
have the following form:
#("Daniel" 0 6 (fontified nil))
The first element is the bare string, the second and third the first
and last index into the string, and the fourth some sort of fontifying
information that would appear to have no business in the db.
The same form appears to be used for all the fields generated during a
capture of the contact from the MUA.
Hope this helps a bit.
Regards,
I've looked through bbdb.el to see if there was some setting that
could turn off vector-form writing in the db, but have found none.
If there were such a flag, that would probably be the best option.
From Asynk's point of view, however, it would seem that simply
extracting the first element of the vector would work. They appear to
have the following form:
#("Daniel" 0 6 (fontified nil))
The first element is the bare string, the second and third the first
and last index into the string, and the fourth some sort of fontifying
information that would appear to have no business in the db.
2. A record created from Gnus on the fly by hitting ':' appears to
create records in this form.