Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUEIL-00084w-4i for pgsql-sql@arkaria.postgresql.org; Mon, 11 Nov 2019 18:20:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iUEIJ-0005HN-FH for pgsql-sql@arkaria.postgresql.org; Mon, 11 Nov 2019 18:20:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUEIJ-0005Gy-49 for pgsql-sql@lists.postgresql.org; Mon, 11 Nov 2019 18:20:07 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iUEIC-0007xn-15 for pgsql-sql@lists.postgresql.org; Mon, 11 Nov 2019 18:20:06 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id g12so5255487qvy.12 for ; Mon, 11 Nov 2019 10:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pX6dhqU81+ABg1ml+ok164b+6MdU75P9o7jlFqzNWmk=; b=I01jnyGTSdeiYdekP1xFlhgD5JQDqFEWO18bYF+MdcniuUWF0pqk5TuvcAxf67oTR+ /bUbqaK6Oy6T+0eCnuYWj4EAN1BqnCyGre58osX6N6HI2aqjgSs3JVwHc/jTtJ9CF78D AIQYh9dUMvlqRCo5RUG+fpOzg0VyGsLuhMYUCX9yeDUg9bcC782jqniWr8j8PgRu6mSq TDr+4/YCCaEPu4mesm9CvCvvgKjTzJXU/9nc4vr0dLUJOdDnCuhRqgWQxXYPWUL/RIpP WHLNpJ3fAoOO2RP0WEeQmkOTJMtro8gHlusPi9WX7uOXO18SpsouTRcRVWU7vHekdy3J nlFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pX6dhqU81+ABg1ml+ok164b+6MdU75P9o7jlFqzNWmk=; b=rJbTVAZ1f0lEIuwKFg9YXD5IRYnm5SjCj2GpZpctXa9VlU84kLkkR8PvM30UQ+cHRH LMUklHSD6WfREFqdG4oC/Kboz1FHTZNn+feXjpTEkd7Bj5OB8oYiYFI62en8I27H2EEi aQ5H8pKqqD6fd690qq0vNoBXJqBo0s83yO5wuAcM96JM+xtI2meENZFFxVwdZTNV9y4V GwGxf/YKkEvgsolcK0sFb7w1UmKd3JTk0jLlqxUdk3Z71JvxzFO6NyQk0Rby9YRb644A dOTauli1EoFdMmRtOoEVe1RB0af1MaNE2GOuLPbOWXknliRCq4zEolzQKgFhAzBWo00d FulA== X-Gm-Message-State: APjAAAUd7fl+9lVUg6H4Oiqq6sQjhccK9HBYBQv1DlW9HirYIQ3/rH6X 3OWAIa3FmKqiK4PL7dkX+VvJY/kkATm/vGzagxY= X-Google-Smtp-Source: APXvYqxS2D2qdKV22R77gupsfbK2rFTwkwF6B8hdUGkJGodQJJ+3cUYavtb3BBXxwJVd2NxJ/QLu+b6vbcmFXoKikcY= X-Received: by 2002:a0c:8755:: with SMTP id 21mr10721693qvi.137.1573496396982; Mon, 11 Nov 2019 10:19:56 -0800 (PST) MIME-Version: 1.0 References: <20191111175920.GA16283@panix.com> In-Reply-To: <20191111175920.GA16283@panix.com> From: Dmitry Igrishin Date: Mon, 11 Nov 2019 21:19:45 +0300 Message-ID: Subject: Re: type for storing emails? To: stan Cc: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000cc2bf90597162d4b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000cc2bf90597162d4b Content-Type: text/plain; charset="UTF-8" https://github.com/petere/pgemailaddr On Mon, 11 Nov 2019, 20:59 stan, wrote: > Does anyone have a type they have developed for storing emails. I need > to do that, and the things that are in my thoughts on this are storing it > as > a derived type of citext, as case should not matter, and enforcing the at > sign with pretty much anything on the left side of it, and something that > looks like a domain on the right side of it. > > > -- > "They that would give up essential liberty for temporary safety deserve > neither liberty nor safety." > -- Benjamin Franklin > > > --000000000000cc2bf90597162d4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 11 Nov 2019, 20:59 stan, <stanb@panix.com> wrote:
Does anyone have a type they have developed for = storing emails. I need
to do that, and the things that are in my thoughts on this are storing it a= s
a derived type of citext, as case should not matter, and enforcing the at sign with pretty much anything on the left side of it, and something that looks like a domain on the right side of it.


--
"They that would give up essential liberty for temporary safety deserv= e
neither liberty nor safety."
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 -- Benjamin Franklin


--000000000000cc2bf90597162d4b--