Re: Avoiding duplicate messages
Norman Walsh <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
Charles Cazabon <[email protected]> writes: >> My less-than-entirely-satisfactory workaround is to *not* have getmail >> retrieve messages from the folder that I moved the message into. > > I'm curious why that's not satisfactory. That is exactly what I would expect It’s totally reasonable behavior, it just conflicts with my goal of having all messages downloaded to my laptop, even if I’ve messed about with them on my phone at some point when the laptop was offline. > I don't know about "better", but there is a more complex solution. You can > use getmail's message-filtering functionality to prevent delivering the same > message twice; the filter checks the *content* of the message (probably a > hash/signature) and exits with an appropriate return code to tell getmail not > to continue with message delivery if it's one that's been seen before. > Otherwise, it adds the message to the filter's state file that keeps track of > previously-delivered messages. Thanks. I’ll look into that. Be seeing you, norm -- Norman Walsh <[email protected]> | A man should have any number of little http://nwalsh.com/ | aims about which he should be conscious | and for which he should have names, but | he should have neither name for, nor | consciousness concerning, the main aim | of his life.--Samuel Butler (II)
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE1ury//rzuvqf7fN/hVWfHhJMAHkFAluuYZ0ACgkQhVWfHhJM AHnrSBAAwSiV1fcavy3W0gQvxw6bAs86fv/R9Mn3B2Pv18zt6s/o5PQ0jaI8HCMd 3ilD76B7vXS0cjBUBPan7IEEK0CGa2Jf6wuA3RlQP3as0GYVELXTRno7KGt5TpWT 3fND3qOdpYgQXcB0jf1/wwUg7Jci+7UJQplFykH6ieUuS2sqMWnzueeJoMEt41tC aZwQ0iG1UOx3HflZEaGQe+zOv9+YAmXzmaw1f7NCwV/xMtnE4OW+Mo5H4zIkTibf 72rZgNNT6nXkf4KiQ9NupGYrmKN0Q4BhQ2/t3pWLcWKpiTbAE2whlyp2PoE0ZVw/ Tz2zNaAwHpBCVqvvAbAoQqe9PwJf2/atY1KpPftM/idJa1bXr+L+FqjUKQwYlVnL kl5BtZ+EBzTL3Ckgd91deXSBv8oohWLKNs5gZ2OS2f8bfOFduZ7kgWFzzqF0vP3L 9O5aB7DxkMVJdV0pa1ceVgVfLVQGxdij7pcWe3JpxqvJ0GUf8kx7XV/2zCEcyWTd BClPKK5GL3nCJRzNMOplEmqOVOKZYi+G/TWEOLdY4V0HPNB6ZZE17sltsxsj101Y Jz7tCyuwpl8x0NJ5mdnM2M9WMev+92ezbLydUOwTRGT6z1zbll4D7La/Fhe41d4G B0pcnLj49xPnJFGl8fOyLobNGjR5XWi9HgFyPms3D62r4Ugo9y0= =YznV -----END PGP SIGNATURE-----