Re: mutt aliases help
- To: mutt-users@xxxxxxxx
- Subject: Re: mutt aliases help
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 12 Sep 2008 02:03:49 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=K7MsuovhkYogC4rpax3QxigD8J0=; b=WQcb q5zBUz4oX9pGpeCGkYUKpRCs/Xz+MeetnmCl7QCSwGv4jy434RJtvUpx/BPpChAS UmhgdgTPQ1jfONGJTsrVuEkOIt09IJ/1uNEl3FDISx2+Wo2o3MwaYZVKJEuPe7G6 qok+g0zrbLId5lBudx2woz4OhhOOo4SROhboQIw=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=BBxyW1XmKJcWoqmRFoXJrja81XX3AKQR5O/1gnjxydROv+VCgYCBtrlSQVdI081OLHH3vCYKK/L/cuHqoYMiMxeKCDMmAi1kQY66UHuWcP7sGZ38ibVaYGIVN7+StudFHoidxFMllXAlaH3AxUO+qb2zEdP4+I4AL2wpec5OvOA=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080912052655.GA11480@ubuntu>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080912052655.GA11480@ubuntu>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-08-31)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, September 12 at 12:26 AM, quoth Christopher Lemire:
> I've got over 100 emails in my address book from the gmail web
> interface. I can export it to three formats,
>
> Google's CSV format (for importing into another Google account).
> Outlook's CSV format (for importing into Outlook or other applications).
> vCard format (for importing into Address Book or other applications).
>
> How can I generate a mutt aliases with one of those or is there a better
> way with so many emails?
Well, I don't know what their CSV format looks like exactly, but it
should be pretty trivial to turn into a mutt aliases file.
Assuming that it looks something like this:
nickname,first,last,user@xxxxxxxx
Then you can do this:
awk -F, '{print "alias",$1,$2,$3,"<"$4">"}' google.csv > .mutt_aliases
And that will chug through *millions* of addresses with ease.
Of course, your awk command will be different if Google's output CSV
is somewhat different.
If Google's output doesn't include a useful nickname, then you're
going to have to come up with a way of generating nicknames that are
useful to you...
Does that help?
~Kyle
- --
Always forgive your enemies; nothing annoys them so much.
-- Oscar Wilde
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkjKFFUACgkQBkIOoMqOI16jQACgqCYyXN1DCfReJNpC+G648Vnz
DIQAoPD0O1WKkhBf4TIFxxwYcM8wEf/e
=YfbY
-----END PGP SIGNATURE-----