Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Springfield <no@spam.thanks>
Subject: Re: BBDB related Firefox extension
Date: Wed, 03 Jan 2007 23:51:39 +0000	[thread overview]
Message-ID: <87odpfd5ys.fsf@shellarchive.co.uk> (raw)
In-Reply-To: <m3psahfsag.fsf@db48x.waldenweb.com>

Daniel Brooks <db48x@yahoo.com> writes:

> Since I use Gnus and BBDB for my email and address book, I wrote an
> extension to it that takes contact information from an hCard and
> uses emacsclient to insert it into the BBDB. It's available from
> http://db48x.net/microformats/bbdb.js. It's still in the very early
> stages, and all it can do is send the data to emacs. It can't detect
> duplicate entries or try to merge them or anything like that, but I
> thought someone might be interested.

Strange that you should post that as I've just converted a list of
vCards to the bbdb format with what might be the worlds hackiest
script:

#!/usr/bin/perl

use strict;
use warnings;

while (<>) {
  print "[\"$2\" \"$1\" nil nil nil nil (\""
    if (/^N:(\w+);(\w+);/);

  if (/^EMAIL;.*[^:]:(.*)$/) {
    print qq{$1") ((creation-date . "2007-01-03") (timestamp . };
    print qq{"2007-01-03")) nil]\n};
  }
}

Lots of assumptions made I know but it was a one off for me.

Cheers,
Spring

      parent reply	other threads:[~2007-01-03 23:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-18  9:48 Daniel Brooks
2006-12-26  7:48 ` Gernot Hassenpflug
2007-01-13 20:39   ` Daniel Brooks
2007-01-03 23:51 ` Springfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87odpfd5ys.fsf@shellarchive.co.uk \
    --to=no@spam.thanks \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).