aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-20 08:37:57 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-07-20 08:37:57 +0000
commit121fda20337bf2f85deba1048a3963e62fa703e9 (patch)
treef78349ef256e9d2a5793f91d1a32350fd1846189
parentea945e3c0257de5982e047d9ebffc924f62347a4 (diff)
src/importcsv.c: added 'Alias' attribute.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2628 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--src/importcsv.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b559543..5fc5f743 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-20
+
+ * src/importcsv.c: added 'Alias' attribute.
+
2010-07-16
* version 3.1.0beta2
diff --git a/src/importcsv.c b/src/importcsv.c
index 4fb6d668..21774096 100644
--- a/src/importcsv.c
+++ b/src/importcsv.c
@@ -107,6 +107,7 @@ typedef enum {
ATTR_NICK_NAME,
ATTR_EMAIL_ADDRESS,
ATTR_REMARKS,
+ ATTR_ALIAS,
N_CSV_ATTRIB
} ImpCSVAttribIndex;
@@ -122,7 +123,8 @@ static struct _ImpCSVAttrib {
{N_("Display Name"), NULL, 2, TRUE},
{N_("Nick Name"), NULL, 3, TRUE},
{N_("E-Mail Address"), NULL, 4, TRUE},
- {N_("Remarks"), NULL, 5, TRUE}
+ {N_("Remarks"), NULL, 5, TRUE},
+ {N_("Alias"), NULL, 6, TRUE}
};
static AddressBookFile *_importedBook_;
@@ -361,6 +363,7 @@ static gint imp_csv_import_data( gchar *csvFile, AddressCache *cache ) {
gchar *nickName = NULL;
gchar *address = NULL;
gchar *remarks = NULL;
+ gchar *alias = NULL;
ItemPerson *person;
ItemEMail *email;
gint count = 0;
@@ -406,6 +409,7 @@ static gint imp_csv_import_data( gchar *csvFile, AddressCache *cache ) {
nickName = imp_csv_attrib[ATTR_NICK_NAME].value;
address = imp_csv_attrib[ATTR_EMAIL_ADDRESS].value;
remarks = imp_csv_attrib[ATTR_REMARKS].value;
+ alias = imp_csv_attrib[ATTR_ALIAS].value;
if (!fullName && !firstName && !lastName && address)
fullName = address;
@@ -422,6 +426,7 @@ static gint imp_csv_import_data( gchar *csvFile, AddressCache *cache ) {
email = addritem_create_item_email();
addritem_email_set_address( email, address );
addritem_email_set_remarks( email, remarks );
+ addritem_email_set_alias( email, alias );
addrcache_id_email( cache, email );
addrcache_person_add_email( cache, person, email );
}