36#define DC_ORIGIN_INCOMING_UNKNOWN_FROM 0x10 /* From: of incoming messages of unknown sender */
37#define DC_ORIGIN_INCOMING_UNKNOWN_CC 0x20 /* Cc: of incoming messages of unknown sender */
38#define DC_ORIGIN_INCOMING_UNKNOWN_TO 0x40 /* To: of incoming messages of unknown sender */
39#define DC_ORIGIN_UNHANDLED_QR_SCAN 0x80 /* address scanned but not verified */
40#define DC_ORIGIN_INCOMING_REPLY_TO 0x100 /* Reply-To: of incoming message of known sender */
41#define DC_ORIGIN_INCOMING_CC 0x200 /* Cc: of incoming message of known sender */
42#define DC_ORIGIN_INCOMING_TO 0x400 /* additional To:'s of incoming message of known sender */
43#define DC_ORIGIN_CREATE_CHAT 0x800 /* a chat was manually created for this user, but no message yet sent */
44#define DC_ORIGIN_OUTGOING_BCC 0x1000 /* message sent by us */
45#define DC_ORIGIN_OUTGOING_CC 0x2000 /* message sent by us */
46#define DC_ORIGIN_OUTGOING_TO 0x4000 /* message sent by us */
47#define DC_ORIGIN_INTERNAL 0x40000 /* internal use */
48#define DC_ORIGIN_ADRESS_BOOK 0x80000 /* address is in our address book */
49#define DC_ORIGIN_SECUREJOIN_INVITED 0x1000000 /* set on Alice's side for contacts like Bob that have scanned the QR code offered by her. Only means the contact has once been established using the "securejoin" procedure in the past, getting the current key verification status requires calling dc_contact_is_verified() ! */
50#define DC_ORIGIN_SECUREJOIN_JOINED 0x2000000 /* set on Bob's side for contacts scanned and verified from a QR code. Only means the contact has once been established using the "securejoin" procedure in the past, getting the current key verification status requires calling dc_contact_is_verified() ! */
51#define DC_ORIGIN_MANUALLY_CREATED 0x4000000 /* contact added mannually by dc_create_contact(), this should be the largets origin as otherwise the user cannot modify the names */
52
53#define DC_ORIGIN_MIN_CONTACT_LIST (DC_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are shown in the contact list */
54#define DC_ORIGIN_MIN_VERIFIED (DC_ORIGIN_INCOMING_REPLY_TO) /* contacts with at least this origin value are verified and known not to be spam */
55#define DC_ORIGIN_MIN_START_NEW_NCHAT (0x7FFFFFFF) /* contacts with at least this origin value start a new "normal" chat, defaults to off */