Hardware Reference
In-Depth Information
You can then retrieve them like this and watch the system download the e-mails:
getmail -r getmail.gmail
Some services, notably Google Mail, do not allow you to download all your e-mails at once if there are a lot of
them. Therefore, you need to reinvoke the command. This helps support the bandwidth of both machines.
N If you have only one external e-mail account, then calling your configuration file getmailrc allows you to omit
the filename arguments.
Tip
You can then view these mails in the client of your choice. Here's an example:
mutt -f ~/externalmail/gmail.mbox
Make sure you let getmail finish retrieving the e-mails; otherwise, you will get two copies of each mail in
your inbox.
If you are intending to process these e-mails with procmail , as you saw in Chapter 5, then you need to write the
incoming e-mail not to the inbox but to procmail itself. This is done by configuring the destination thusly:
[destination]
type = MDA_external
path = /usr/bin/procmail
unixfrom = True
Twitter
The phenomenon that is Twitter has allowed the general public to morph into self-styled microcelebrities as they
embrace a mechanism of simple broadcast communication from one individual to a set of many “followers.”
Although communications generally remain public, it is possible to create a list of users so that members of the same
family can follow each other in private. This can be done by selecting “Protect my Tweets” in the account settings page.
One thing that Twitter has succeeded in doing better than most social sites is that it has not deviated from
its original microblogging ideals, meaning that the APIs to query and control the feeds have remained consistent.
This makes it easy for you (or your house) to tweet information to your feeds or for the house to process them and take
some sort of action based on it. In all cases, however, you will have to manually sign up for an account on behalf of
your house. The only change in the last few years has been to strengthen security by requiring the use of OAuth.
Posting Tweets with OAuth
The Twitter API uses an HTTP request to upload a new tweet, with the primary implementation being through
TwitterOAuth , the library from https://github.com/abraham/twitteroauth .
$auth = getTwitterDetails($user);
$connection = new TwitterOAuth($auth->ckey, $auth->csecret, $auth->oatoken, $auth->oasecret);
$content = $connection->get('account/verify_credentials');
$connection->post('statuses/update', array('status' => $all));
 
Search WWH ::




Custom Search