Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F224274
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/program/steps/addressbook/export.inc b/program/steps/addressbook/export.inc
index bfffac1f8..494fc23f4 100644
--- a/program/steps/addressbook/export.inc
+++ b/program/steps/addressbook/export.inc
@@ -1,43 +1,44 @@
<?php
/*
+-----------------------------------------------------------------------+
| program/steps/addressbook/export.inc |
| |
| This file is part of the RoundCube Webmail client |
| Copyright (C) 2008, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
| Export the selected address book as vCard file |
| |
+-----------------------------------------------------------------------+
| Author: Thomas Bruederli <roundcube@gmail.com> |
+-----------------------------------------------------------------------+
$Id: $
*/
// get contacts for this user
+$CONTACTS->set_page(1);
$CONTACTS->set_pagesize(999);
$result = $CONTACTS->list_records();
// send downlaod headers
send_nocacheing_headers();
header('Content-Type: text/x-vcard; charset=UTF-8');
header('Content-Disposition: attachment; filename="rcube_contacts.vcf"');
while ($result && ($row = $result->next())) {
$vcard = new rcube_vcard($row['vcard']);
$vcard->set('displayname', $row['name']);
$vcard->set('firstname', $row['firstname']);
$vcard->set('surname', $row['surname']);
$vcard->set('email', $row['email']);
echo $vcard->export();
}
exit;
?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Mar 1, 8:46 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
166466
Default Alt Text
(1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment