Hacker News new | past | comments | ask | show | jobs | submit | cgidriver's comments login

is there something like this for gmail? Where I could query emails from Python and act on them?


GMail has an IMAP-interface. You can use any imap-capable solution, including pythons own imaplib.


IMAP cannot operate on a whole thread at a time. Ironically you will hardly notice the difference when operating with the web interface, which is very much thread based, but it can be useful to apply a label to a whole thread if your interaction with GMail happens in Thunderbird or mutt. For example, I have a Google Apps script that adds a label to a whole thread whenever someone CCs me on a bug, so that the entire bug suddenly pops up in the "my bugs" Thunderbird folder, including messages prior to my being added.


Yes and no. You must fetch the whole thread in a seperate request and handle them specifically. Bit more work, but simple.

https://developers.google.com/gmail/imap/imap-extensions#acc...


There's a restful Gmail API, and Python bindings.

https://developers.google.com/gmail/api/downloads



Thanks for the link. Indeed this might be a tariff on Apple indirectly. When US Companies were moving everything to China, hopefully they had a plan on how to react if China goes south? Perhaps someone at Apple management knows?


It happened because one company was greedy, and negligent, - and has the money to pay the bill. The question is, will the jury really make them pay.


It happened just as much because one driver/monitor wasn't doing their job.


Saying opinions like statements of fact don't make them correct.

It's at least more useful to speak of legal liability, because that can become case law.


Indeed its worth the risk - but not at the cost of human life. And if the risk is being taken by a company, it has to pay for it - because it intends to reap the rewards? Not a woman or a negligent employee.


> And if the risk is being taken by a company, it has to pay for it - because it intends to reap the rewards? Not a woman or a negligent employee.

First of all, this is criminal liability. Uber may still be held financially liable in a civil court.

Secondly, liability needs to be decided on a case by case basis. In this case, the woman (not "a woman") shouldn't have crossed the road and the operator should have been alert.

Furthermore, why should a company be criminally liable for any negligent behavior of an employee? That's ridiculous.


> First of all, this is criminal liability. Uber may still be held financially liable in a civil court.

I am waiting for the 10% of market value punishment for Uber.

> Secondly, liability needs to be decided on a case by case basis.

Agreed.

> In this case, the woman (not "a women") shouldn't have crossed the road and the operator should have been alert.

In this case, "the Uber" should have made sure it's sensors pick up the point cloud in 1/15th of the second and stop the car in time.

>Furthermore, why should a company be criminally liable for >any negligent behavior of an employee? That's ridiculous.

Indeed - I am just preaching for 10%. And only from the shareholders :).


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: