# Log empty gif module if a connection lasted more than 10s

**URL:** <https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891>\
**Category:** NGINX\
**Created:** [September 6, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891 "2008-09-06T17:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vladan\_Popovic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a9adbd/32.png) [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Post date:** [September 6, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891/1 "2008-09-06T17:19:00Z")

</div>

I’m trying to use the log empty gif module to track wether a recipient  
has read  
an email (has kept the email open for more than 10s)

I would like to embed the gif in the email html and if the empty gif is  
downloaded measure whether the reader has kept the email open for more  
than 10  
sec. I would like to log that information in the access.log or use  
post\_action /  
proxy to convey the uri with additional parameters to a php script.

I’ve been going through the documentation for a while now but do not  
seem to  
find how to achieve this.

Any help would be appreciated.

Best Regards

Vladan

---

<div class="post-metadata">

**Author:** ![Vladan\_Popovic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a9adbd/32.png) [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Post date:** [September 6, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891/2 "2008-09-06T17:46:31Z")

</div>

I don’t know how your’e going to tell if they kept it open for more than  
10 sec. As far as I know there’s no way to do that. Also note that many  
email readers purposefully block images in email so that receipt is not  
disclosed. I know I use Thunderbird and it does that. I only allow image  
display if I know what it is and want to see it. I just wouldn’t depend  
on that method.  
Chris 🙂

---

<div class="post-metadata">

**Author:** ![Vladan\_Popovic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/a9adbd/32.png) [@Vladan\_Popovic](https://www.ruby-forum.com/u/Vladan_Popovic)\
**Post date:** [September 6, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/log-empty-gif-module-if-a-connection-lasted-more-than-10s/147891/3 "2008-09-06T19:27:50Z")

</div>

Chris S. \<chrissavery@…\> writes:

> I don’t know how your’e going  
> to tell if they kept it open for more than 10 sec. As far as I know  
> there’s no way to do that. Also note that many email readers  
> purposefully block images in email so that receipt is not disclosed. I  
> know I use Thunderbird and it does that. I only allow image display if  
> I know what it is and want to see it. I just wouldn’t depend on that  
> method.  
> Chris 🙂

I know that most email clients block the download of images so I will be  
happy  
that this works only in the cases where the user downloads the images.  
I am thinking along the line of having a keepalive-timout of 10s and if  
it  
expires to be able to log it.

Vladan
