ja, einfach ein "freies" Feld benutzen hab ich mir auch überlegt.
Wo für sind die "Benutzer" Felder eigentlich gedacht?
EDIT:
das hier sind wohl die entsprechenden teile aus dem code
database.c
/*
* field definitions
*/
#include "edit.h"
/*
* notes about adding fields:
* - do not change any fields in TAB_CONTACT
* - do not add fields to contact tab
* - 6 fields per tab is maximum
* - reorganize the field numbers in database.h
*/
struct abook_field abook_fields[ITEM_FIELDS] = {
{N_("Name"), "name", TAB_CONTACT},/* NAME */
{N_("E-mails"), "email", TAB_CONTACT},/* EMAIL */
{N_("Address"), "address", TAB_ADDRESS},/* ADDRESS */
{N_("Address2"), "address2", TAB_ADDRESS},/* ADDRESS2 */
{N_("City"), "city", TAB_ADDRESS},/* CITY */
{N_("State/Province"),"state", TAB_ADDRESS},/* STATE */
{N_("ZIP/Postal Code"),"zip", TAB_ADDRESS},/* ZIP */
{N_("Country"), "country", TAB_ADDRESS},/* COUNTRY */
{N_("Home Phone"), "phone", TAB_PHONE},/* PHONE */
{N_("Work Phone"), "workphone", TAB_PHONE},/* WORKPHONE */
{N_("Fax"), "fax", TAB_PHONE},/* FAX */
{N_("Mobile"), "mobile", TAB_PHONE},/* MOBILEPHONE */
{N_("Nickname/Alias"), "nick", TAB_OTHER},/* NICK */
{N_("URL"), "url", TAB_OTHER},/* URL */
{N_("Notes"), "notes", TAB_OTHER},/* NOTES */
{N_("Custom1"), "custom1", TAB_CUSTOM},/* CUSTOM1 */
{N_("Custom2"), "custom2", TAB_CUSTOM},/* CUSTOM2 */
{N_("Custom3"), "custom3", TAB_CUSTOM},/* CUSTOM3 */
{N_("Custom4"), "custom4", TAB_CUSTOM},/* CUSTOM4 */
{N_("Custom5"), "custom5", TAB_CUSTOM},/* CUSTOM5 */
};
database.h
#ifndef _DATABASE_H
#define _DATABASE_H
#define MAX_EMAILS 4
#define MAX_EMAIL_LEN 80
#define MAX_EMAILSTR_LEN (MAX_EMAILS*MAX_EMAIL_LEN + MAX_EMAILS + 1)
#define MAX_FIELD_LEN 81
enum {
NAME,
EMAIL,
ADDRESS,
ADDRESS2,
CITY,
STATE,
ZIP,
COUNTRY,
PHONE,
WORKPHONE,
FAX,
MOBILEPHONE,
NICK,
URL,
NOTES,
CUSTOM1,
CUSTOM2,
CUSTOM3,
CUSTOM4,
CUSTOM5,
ITEM_FIELDS /* this is the last */
};
#define LAST_FIELD (ITEM_FIELDS - 1)
#define CUSTOM_MIN CUSTOM1
#define CUSTOM_MAX CUSTOM5
typedef char *list_item[ITEM_FIELDS];
#define MAX_FIELDNAME_LEN 21
Leider kann ich kein C, und bin mir nicht sicher wie ich das genau machen muss.