#ifndef SABOOK_H
#define SABOOK_H
#include "defines.h"

// Proposed data formatting:

// Messages in the folder "@ Surge System/Contacts" formatted as one contact per message

// Message contains a header with core fields in the format of:
// X-Surge-Contact: flags|count|email|displayName|fullName|checksum
// eg
// X-Surge-Contact: 123|42|chrisp@netwin.co.nz|ChrisP|Chris Pugmire|A321
//
// in addition the file may contain a vcf vcard file with additional fields including custom icon image data
//
// Flags defined as below. This means all the addressbook entries can be retrieved using a single IMAP fetch command, 
// and additional information may be retrieved as needed by downloading individual messages and decoding the vcf file. 
// Also this means this the content of this file can be usefully used from any email client.

#define SAB_FAVOURITE		0x01
#define SAB_TOOLBAR			0x02
#define SAB_ALERT			0x04
#define SAB_AUTOFAV         0x08
#define SAB_FROM_IPHONE		0x10
#define SAB_CUSTOM_IMAGE	0x11
#define SAB_XTRA_FIELDS     0x12

#define SAB_FOLDER  "@ Surge System/Contacts"

#endif
