(gdb) print g_type_instance_get_private (( (TnyCamelFolder *) ((TnyCamelHeader *) priv->items->pdata[i])->folder), tny_camel_folder_get_type())
(6, 8) -> DONE
$1 = 135252992
(gdb) 
(gdb) print * ((TnyCamelFolderPriv*)$1)
$2 = {loaded = 1, headers_list_type = 0, folder_changed_id = 173, reason_to_live = 26, 
  reason_lock = 0x80fedd0, folder_lock = 0x80fec88, obs_lock = 0x80ffed0, folder = 0xb2f081c0, 
  folder_name = 0x80fdaf0 "INBOX", account = 0x80e1990, store = 0x80e8920, cached_length = 25, 
  unread_length = 4, unread_sync = 0, local_size = 2317283, subscribed = 1, strict_retrieval = 0, 
  has_summary_cap = 1, iter = 0x80fe400, iter_parented = 1, push = 1, unread_read = 0, 
  cached_name = 0x80fedf0 "Inbox", cached_folder_type = TNY_FOLDER_TYPE_INBOX, remove_strat = 0x80fe190, 
  receive_strat = 0x80fe1c0, self = 0x80fcbf0, want_changes = 0, handle_changes = 1, dont_fkill = 0, 
  parent = 0x80e1990, caps = 11, load_ex = {id = CAMEL_EXCEPTION_NONE, desc = 0x0}, obs = 0x821af30, 
  sobs = 0x822f440}
(gdb) 
(gdb) print * ((TnyCamelFolderPriv*)$1)->folder
$3 = {parent_object = {klass = 0xb2f0b130, hooks = 0x8233990, ref_count = 1, flags = 0}, 
  priv = 0xb2f0e568, name = 0xb2f0a2c8 "INBOX", full_name = 0xb2f0e5b8 "INBOX", description = 0x0, 
  parent_store = 0x80e8920, summary = 0x80b93b8, folder_flags = 259, permanent_flags = 31}
(gdb) 
that's what I need, jdapena 
(gdb) print * ((TnyCamelFolderPriv*)$1)->folder->summary
$4 = {parent = {klass = 0x80b1730, hooks = 0x0, ref_count = 1, flags = 0}, priv = 0x823c418, 
  version = 15, flags = 0, nextuid = 1, time = 0, saved_count = 25, unread_count = 4, deleted_count = 0, 
  junk_count = 0, message_info_size = 60, content_info_size = 36, 
  summary_path = 0xb2f0e918 "/home/pvanhoof/.tinymail/mail/imap/xxxxxxxx/folders/INBOX/summary.mmap", build_content = 1, messages = 0x80fb230, expunged = 0x80fb200, uidhash = 0x0, 
  folder = 0xb2f081c0, meta_summary = 0x0, file = 0xb2f0e688, filepos = 0xb38b52b4 "", 
  hash_lock = 0xb2f0e878, dump_lock = 0xb2f0e848, in_reload = 0, had_expunges = 0, idx = 24, 
  set_extra_flags_func = 0xb5a25fa9 <camel_imap_summary_set_extra_flags>}
(gdb)