summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-11-12 13:25:47 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2010-11-12 13:25:47 +0000
commit62b6ea1562f6c07133743ae0e3cd2c83b098282a (patch)
tree734619ffb17def80d26b3c276e09a49091675013 /share
parent036d9edf388cc979f2583849e247ef46d8dba8fd (diff)
downloadpykolab-62b6ea1562f6c07133743ae0e3cd2c83b098282a.tar.gz
Update the testing of contacts
Diffstat (limited to 'share')
-rw-r--r--share/tests/kaddress-contact.tpl43
1 files changed, 20 insertions, 23 deletions
diff --git a/share/tests/kaddress-contact.tpl b/share/tests/kaddress-contact.tpl
index f4fa7bb..5dd6d7e 100644
--- a/share/tests/kaddress-contact.tpl
+++ b/share/tests/kaddress-contact.tpl
@@ -1,57 +1,54 @@
-From: @@user@@ <@@user_email@@>
-Subject: @@uid@@
-Date: Thu, 20 May 2010 09:04:51 +0100
+From: %(from_name_str)s <%(from_email_str)s>
+To: %(to_name_str)s <%(to_email_str)s>
+Subject: %(uid)s
+Date: %(rfc_2822_sent_date)s
MIME-Version: 1.0
X-Kolab-Type: application/x-vnd.kolab.contact
Content-Type: Multipart/Mixed;
- boundary="Boundary-00=@@uid@@"
-Status: RO
-X-Status: OT
-X-KMail-EncryptionState:
-X-KMail-SignatureState:
-X-KMail-MDN-Sent:
-X-UID: 57
+ boundary="Boundary-00=%(uid)s"
---Boundary-00=@@uid@@
+--Boundary-00=%(uid)s
Content-Type: Text/Plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
+Content-Disposition:
This is a Kolab Groupware object.
To view this object you will need an email client that can understand the Kolab Groupware format.
For a list of such email clients please visit
http://www.kolab.org/kolab2-clients.html
---Boundary-00=@@uid@@
+
+--Boundary-00=%(uid)s
Content-Type: application/x-vnd.kolab.contact;
name="kolab.xml"
-Content-Transfer-Encoding: 7bit
+Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="kolab.xml"
<?xml version="1.0" encoding="UTF-8"?>
<contact version="1.0">
<product-id>KAddressBook 3.3, Kolab resource</product-id>
- <uid>@@uid@@</uid>
+ <uid>%(uid)s</uid>
<body>body</body>
- <creation-date>2009-09-13T11:49:18Z</creation-date>
+ <creation-date>%(kolab_creation_date)s</creation-date>
<sensitivity>public</sensitivity>
<name>
- <given-name>@@given_name@@</given_name>
- <last-name>@@last_name@@</last-name>
- <full-name>@@full_name@@</full-name>
+ <given-name>%(kolab_contact_given_name)s</given_name>
+ <last-name>%(kolab_contact_last_name)s</last-name>
+ <full-name>%(kolab_contact_given_name)s %(kolab_contact_last_name)s</full-name>
</name>
<organization></organization>
<web-page></web-page>
<role></role>
<email>
- <display-name>@@display_name@@</display-name>
- <smtp-address>@@email_address@@</smtp-address>
+ <display-name>%(kolab_contact_given_name)s %(kolab_contact_last_name)s</display-name>
+ <smtp-address>%(kolab_contact_email_str)s</smtp-address>
</email>
<phone>
<type>mobile</type>
- <number>@@number@@</number>
+ <number>%(kolab_contact_mobile_number)s</number>
</phone>
- <preferred-address>business</preferred-address>
+ <preferred-address></preferred-address>
</contact>
---Boundary-00=@@uid@@--
+--Boundary-00=%(uid)s--