Viewing 7 replies - 1 through 7 (of 7 total)
  • That’s because the Feed exports

    ORGANIZER;CN=Karambir Singh Khalsa;[email protected]:
    /aOTIxNjk0OTU4OTIxNjk0OQdW-Yry0M_MSOPGU4o9uUGLTdhf6LI_4ARauxh4h4Ho/princip
    al/

    Which we map as “contact”. It seems that your feed is quite different from what we usually handle. What is the origin of the feed?

    Thread Starter gongtones

    (@karambirsk)

    This is a feed from iCal v7.0(1841.1) on Mac OS X 10.9.5

    Unfortunately Apple does things a little bit differently. We mainly use google as a reference. Anyway, same file as the one i pointed out in my other answer, line 412

    // ===============================
    			// = Contact name, phone, e-mail =
    			// ===============================
    			$organizer = $e->getProperty( 'organizer' );
    			if (
    				'MAILTO:' === substr( $organizer, 0, 7 ) &&
    				false === strpos( $organizer, '@' )
    			) {
    				$organizer = substr( $organizer, 7 );
    			}
    			$contact = $e->getProperty( 'contact' );
    			$elements = explode( ';', $contact, 4 );
    			foreach ( $elements as $el ) {
    				$el = trim( $el );
    				// Detect e-mail address.
    				if ( false !== strpos( $el, '@' ) ) {
    					$data['contact_email'] = $el;
    				}
    				// Detect URL.
    				elseif ( false !== strpos( $el, '://' ) ) {
    					$data['contact_url']   = $this->_parse_legacy_loggable_url(
    						$el
    					);
    				}
    				// Detect phone number.
    				elseif ( preg_match( '/\d/', $el ) ) {
    					$data['contact_phone'] = $el;
    				}
    				// Default to name.
    				else {
    					$data['contact_name']  = $el;
    				}
    			}
    Thread Starter gongtones

    (@karambirsk)

    What I am seeing in the organizer field is:

    MAILTO:/aOTIxNjk0OTU4OTIxNjk0OQdW-Yry0M_MSOPGU4o9uUGLTdhf6LI_4ARauxh4h4Ho/princip
    al/

    There does not appear to be any data in the contact field.

    Hi, that’s strange as we should be cutting MAILTO out of the string. Anyway that’s caused by the export which exports some strange data.
    Probably you should use a regexp on $organizer = $e->getProperty( 'organizer' ); to try to get a clean email addresss

    Thread Starter gongtones

    (@karambirsk)

    No, everything is fine on your side. What I’m seeing is that for some reason, the email address is being obfuscated when I run this. It must be something I’ve set in either my WordPress install or on my host server. As far as MAILTO:/ being part of the string, I was just checking the raw, unparsed value.

    Thread Starter gongtones

    (@karambirsk)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Event Contact Displayed as Raw Object ID’ is closed to new replies.