Re: Automatic refresh for local Maildir's mail counts -- an attempt based on named pipes

Sam Varshavchik <[email protected]> Sun, 25 Mar 2018 16:38:29 -0400
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============8781621345174344330==
Content-Type: multipart/signed;
    boundary="=_monster.email-scan.com-38331-1522010309-0001";
    micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_monster.email-scan.com-38331-1522010309-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Linux-Fan writes:

> The attached patch thus implements polling in an own location which
> means it only happens every `mailCheckInterval` (worst case: 300)
> seconds.
>
> My questions are now as follows:
>
> * Is the idea implemented by the attached patch safe enough to be
>   included in Cone?

The general idea is correct.

> * What can I do to have the polling mechanism which is already in
>   use in Cone also poll my named pipe file descriptor such that mail
>   counts are immediately updated?

I think all you need to do is add your named pipe's descriptor to the fds  
vector, that gets passed to poll(). This will include the named pipe in the  
list of file descriptor that gets monitored, by the main event loop.



--=_monster.email-scan.com-38331-1522010309-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIcBAABAgAGBQJauAjFAAoJEGs6Yr4nnb8lmHQP/jp4xun+zUaszGZ6v1NxkH/l
dqwSRsj82sOV/46g58NLjmrNeTMAzqhq6y7LRL8Faq5Z0qnHoJOiL1Duqmz7inG7
uEWQgx/iKyxmcK2QftkCwHvBxkxdkmfvCIVa9TXtwTZM2VWsv9pEgqpDhccGrkTi
SoeJeZ7rYVZ/cNU0ZdsdvdA+oqg5fNb4hZjhgY2FR6rQsP/E+VNX9zcaN+w3WXuV
bfhM2aOPte0e4UJLD0EoLt0yqoNKhfh3ial1XOtSporLslJ7qz5dnfYSCd38eK1W
dtLhHpBtM33BQ66eUlRJKUMIVF2otfiFdh+vsuV47uDKbQGbMTMH+6BX4ImOFL37
ZqxnV+TdUtABO9mviebLRHfIWc3ne9Z+nutz3BlrGhVu/WNvRp6hE/Kis1DlDanZ
HwyViRtMYjC/FNMUOK5Und9CpuTSM6YC1+a/2iUW4rfDYDDn2XR58lNHsdc1jFTY
HJwc2x2rbd4HNapy7cDfkeCLdTRM8xuZnprua4M0ME0X+8VPthMfWjIn31ZFPWt+
Kl31retqNbTNgQ8PCoxlq3E01oUVKWF+UYFfZ63h7CQ75dIExa06nlWKOj+4ohz+
GUEfWwvF6MtXfGVUyy4lIu49LM/uQ3YT2RhLl5RiUmNHI72htKIbU59I11uX4G6j
hS5i6aPWhH3E0v6j8CZb
=i5xY
-----END PGP SIGNATURE-----

--=_monster.email-scan.com-38331-1522010309-0001--


--===============8781621345174344330==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============8781621345174344330==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone

--===============8781621345174344330==--