[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Looping through the gmail dot trick

Martin Marcher

1/20/2008 7:59:00 PM

On Sunday 20 January 2008 17:38 Joshua Gilman wrote:

> So I have a very interesting task ahead of me and it is to loop through an
> email using the 'gmail dot trick'. Essentially this trick puts periods
> throughout your email to make it look different. Even though it has
> periods gmail will replace them all and send it to that email.

are you saying that when i have 2 gmail addresses

"foo.bar@gmail.com" and
"foobar@gmail.com"

they are actually treated the same? That is plain wrong and would break a
lot of mail addresses as I have 2 that follow just this pattern and they
are delivered correctly!

Do you have any reference on that where one could read up why gmail would
have such a behaviour?

> So blah@gmail.com is the same as bl.ah@gmail.com.

To my best knowledge it is not the same and must not be the same. The
localpart of an email is entirely up to the receiving mailserver and cannot
be tempered with without risking misdelivery (at least). If I'm wrong I'd
be gladly corrected, just point me to the references.

/martin


--
http://noneisyours.ma...
http://feeds.feedburner.com/N...

You are not free to read this message,
by doing so, you have violated my licence
and are required to urinate publicly. Thank you.

3 Answers

Neil Hodgson

1/20/2008 9:13:00 PM

0

Martin Marcher:

> are you saying that when i have 2 gmail addresses
>
> "foo.bar@gmail.com" and
> "foobar@gmail.com"
>
> they are actually treated the same? That is plain wrong and would break a
> lot of mail addresses as I have 2 that follow just this pattern and they
> are delivered correctly!

This is a feature of some mail services such as Gmail, not of email
addresses generically. One use is to provide a set of addresses given
one base address. '+' works as well as '.' so when I sign up to service
monty I give them the address nyamatongwe+monty@gmail.com. Then when I
receive spam at nyamatongwe+monty, I know who to blame and what to block.

Neil

Steven D'Aprano

1/20/2008 10:19:00 PM

0

On Sun, 20 Jan 2008 21:13:03 +0000, Neil Hodgson wrote:

> Martin Marcher:
>
>> are you saying that when i have 2 gmail addresses
>>
>> "foo.bar@gmail.com" and
>> "foobar@gmail.com"
>>
>> they are actually treated the same? That is plain wrong and would break
>> a lot of mail addresses as I have 2 that follow just this pattern and
>> they are delivered correctly!
>
> This is a feature of some mail services such as Gmail, not of email
> addresses generically. One use is to provide a set of addresses given
> one base address. '+' works as well as '.' so when I sign up to service
> monty I give them the address nyamatongwe+monty@gmail.com. Then when I
> receive spam at nyamatongwe+monty, I know who to blame and what to
> block.

Technically, everything in the local part of the address (the bit before
the @ sign) is supposed to be interpreted *only* by the host given in the
domain (the bit after the @ sign). So if Gmail wants to interpret
"foo.bar@gmail.com" and "foobar@gmail.com" the same, they can.

Or for that matter, "raboof@gmail.com". Although that would be silly.

Postfix, I think, interpets "foo+bar" the same as "foo".


--
Steven


Martin Marcher

1/21/2008 3:21:00 PM

0

Steven D'Aprano wrote:
> Postfix, I think, interpets "foo+bar" the same as "foo".

yup it does, but "foo" has to be a valid localpart so

"foo+bar" -> foo
foo+baz -> foo
f+oobar -> f - which is a different user (aliases set aside)

famous call on plus addressing, and you it's just a default you can specify
anything you want but it has to be _after_ the full localpart without
address extensions.

--
http://noneisyours.ma...
http://feeds.feedburner.com/N...

You are not free to read this message,
by doing so, you have violated my licence
and are required to urinate publicly. Thank you.