<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title>Posts · Assorted Nerdery</title><subtitle>Artisanal Posts, poorly written.</subtitle><id>https://bostonenginerd.com/posts/</id><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/"/><link rel="self" type="application/atom+xml" href="https://bostonenginerd.com/posts/atom.xml"/><updated>2026-11-21T22:48:01-05:00</updated><author><name>BostonEnginerd</name><uri>https://bostonenginerd.com/</uri></author><rights>© BostonEnginerd. Licensed under CC BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/</rights><link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"/><entry><title>Boston Public Library</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/bostonlibrary/"/><id>https://bostonenginerd.com/posts/bostonlibrary/</id><published>2026-11-21T22:48:01-05:00</published><updated>2026-11-21T22:48:01-05:00</updated><summary>Cool discovery: Anyone who has their primary residence in the Commonwealth of Massachusetts, works in Massachusetts, or owns residential property in the Commonwealth can apply for and receive an eCard for the Boston Public Library. You don’t even have to physically show up at any of their branches …</summary><content type="html">&lt;p&gt;&lt;strong&gt;Cool discovery&lt;/strong&gt;: Anyone who has their primary residence in the Commonwealth of
Massachusetts, works in Massachusetts, or owns residential property in the
Commonwealth can &lt;a href="https://www.bpl.org/your-library-card/" rel="external"&gt;apply for and receive an eCard for the Boston Public Library.&lt;/a&gt;
You don&amp;rsquo;t even have to physically show up at any of their branches to get these
benefits.&lt;/p&gt;
&lt;p&gt;The library provides a ton of digital resources to Massachusetts residents.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Free access to the &lt;a href="https://www.bpl.org/resources-types/newspapers/" rel="external"&gt;Boston Globe and Boston Herald&lt;/a&gt;, NYTimes and WSJ websites.&lt;/li&gt;
&lt;li&gt;Access to &lt;a href="https://www.economist.com" rel="external"&gt;The Economist&lt;/a&gt;, &lt;a href="https://www.csmonitor.com" rel="external"&gt;Christian Science Monitor&lt;/a&gt;, and many other magazines through &lt;a href="https://ezproxy.bpl.org/login?url=https://www.pressreader.com" rel="external"&gt;Pressreader&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Streaming music through a service called &lt;a href="https://bostonpl.freegalmusic.com/" rel="external"&gt;Freegal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Streaming movies and television shows through a bunch of services like &lt;a href="https://boston.kanopy.com/" rel="external"&gt;Kanopy&lt;/a&gt;,&lt;a href="https://biblioplus.com/library/bpl.org" rel="external"&gt; and biblio+&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lots of ebooks and other magazines through &lt;a href="https://bpl.overdrive.com" rel="external"&gt;Overdrive / Libby&lt;/a&gt;,&lt;a href="https://bostonpl.boundless.baker-taylor.com/ng/view/library" rel="external"&gt; Boundless&lt;/a&gt;, &lt;a href="https://ezproxy.bpl.org/login?url=https://search.ebscohost.com/login.aspx?authtype=ip,cpid&amp;amp;custid=s8464198&amp;amp;groupid=main&amp;amp;profile=eon" rel="external"&gt;Flipster&lt;/a&gt;,&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.bpl.org/resource/oreilly/" rel="external"&gt;Technical books, audiobooks and online courses from O&amp;rsquo;Reilly&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There&amp;rsquo;s even a free &lt;a href="https://www.bpl.org/resource/headspace/" rel="external"&gt;Headspace membership&lt;/a&gt; available for those who are in need of meditation!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.bpl.org/popular-online-resources/" rel="external"&gt;Go check the online resources out!&lt;/a&gt;&lt;/p&gt;</content></entry><entry><title>One year with PV</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/pvoneyear1/"/><id>https://bostonenginerd.com/posts/pvoneyear1/</id><published>2024-12-21T11:32:25-05:00</published><updated>2024-12-21T11:32:25-05:00</updated><summary>In October 2023, I had 23 solar panels installed on my roof in the Boston area. This post series will summarize our experience with the system thus far.
Procurement Process# We went with a company out of Arlington, Massachusetts, for the project. I found the company using EnergySage, a quote …</summary><content type="html">&lt;p&gt;In October 2023, I had 23 solar panels installed on my roof in the Boston area.
This post series will summarize our experience with the system thus far.&lt;/p&gt;
&lt;h2 id="procurement-process"&gt;Procurement Process&lt;/h2&gt;
&lt;p&gt;We went with a company out of Arlington, Massachusetts, for the project.
I found the company using &lt;a href="https://www.energysage.com" rel="external"&gt;EnergySage&lt;/a&gt;, a quote aggregator. EnergySage is a
convenient way to get multiple quotations from different local companies.
There are others, including &lt;a href="https://www.solar.com" rel="external"&gt;Solar.com&lt;/a&gt;, who provide a similar service.
EnergySage is a Boston company, so I preferentially chose them.&lt;/p&gt;
&lt;p&gt;The quoting process with EnergySage is straightforward. You put in information
about your house, which gets farmed out to several companies to provide
budgetary quotations. They provide a convenient comparison table for the quotes.
In my case, I received seven quotations back, with more or less equivalent
equipment. I selected a subset of these to pursue further &amp;ndash; some quotes were
well out of line with the others. Two of the vendors were very responsive, and I
selected one of them.&lt;/p&gt;
&lt;p&gt;The nice thing about EnergySage is that their platform shields you from
receiving spam calls. You can communicate with the companies through
their portal before providing your contact information to the short-listed
companies. I started seriously considering PV in 2021 and went through a round
of project quotations before pulling the trigger in 2023.&lt;/p&gt;
&lt;h2 id="system-description-and-costs"&gt;System Description and Costs&lt;/h2&gt;
&lt;p&gt;In August 2023, the winning quotation priced the system at $3.26/W for Hanwa
Q-Cells 405W panels paired with Enphase IQ8-M inverters.&lt;/p&gt;
&lt;p&gt;Based on a report released by EnergySage (&lt;a href="#citeproc_bib_item_1"&gt;“Energy Sage Marketplace Intel Report H1 2024” n.d.&lt;/a&gt;) in
October 2024, I paid what has become the average cost today. If you&amp;rsquo;re
interested in PV, this report is a good read on the current market situation.
It&amp;rsquo;s incredible how cheap solar can be in areas that don&amp;rsquo;t have good net
metering policies and cheap labor.&lt;/p&gt;
&lt;div class="table-caption"&gt;
&lt;span class="table-number"&gt;Table 1:&lt;/span&gt;
System Costs and Rebates
&lt;/div&gt;
&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table (scrolls horizontally)"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Milestone&lt;/th&gt;&lt;th class="num"&gt;Amount ($USD)&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Down Payment&lt;/td&gt;&lt;td class="num"&gt;1000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;One month Prior&lt;/td&gt;&lt;td class="num"&gt;14679&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Installation Complete&lt;/td&gt;&lt;td class="num"&gt;14697&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Permission to Operate&lt;/td&gt;&lt;td class="num"&gt;1000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Total Outlay&lt;/td&gt;&lt;td class="num"&gt;30376&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Incentives&lt;/strong&gt;&lt;/td&gt;&lt;td class="num"&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Federal Investment Tax Credit (30%)&lt;/td&gt;&lt;td class="num"&gt;- 9112&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Massachusetts Tax Credit&lt;/td&gt;&lt;td class="num"&gt;- 1000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Net Cost&lt;/strong&gt;&lt;/td&gt;&lt;td class="num"&gt;20264&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;After tax credits, the system was around $20k. Both tax credits came
back in early 2024 when I submitted my taxes for 2023. The tax credit is
non-refundable, meaning you need to have a tax liability larger than it
to take full advantage, though &lt;a href="https://www.energy.gov/eere/solar/homeowners-guide-federal-tax-credit-solar-photovoltaics" rel="external"&gt;it is possible to carry it over to a subsequent
year&lt;/a&gt;.(&lt;a href="#citeproc_bib_item_2"&gt;“Homeowner’s Guide to the Federal Tax Credit for Solar Photovoltaics” n.d.&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Other related expenses include:&lt;/p&gt;
&lt;div class="table-caption"&gt;
&lt;span class="table-number"&gt;Table 2:&lt;/span&gt;
Other Related Expenses
&lt;/div&gt;
&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table (scrolls horizontally)"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Item&lt;/th&gt;&lt;th class="num"&gt;Cost&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;New Roof&lt;/td&gt;&lt;td class="num"&gt;$14000&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Electrical Panel Upgrade&lt;/td&gt;&lt;td class="num"&gt;$3500&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;Although necessary for the project, these expenses are not formally considered
part of it. My roof already needed replacement, and the electrical panel
replacement happened as part of a broader household electrification effort.
Including these as part of the ROI calculation is not fair.&lt;/p&gt;
&lt;p&gt;The final design for my system included 23 &lt;a href="https://us.qcells.com/q-peak-duo-blk-ml-g10/" rel="external"&gt;Hanwa Q-Cells Q.PEAK DUO BLK ML-G10+&lt;/a&gt;
panels. These panels are paired with &lt;a href="https://enphase.com/store/microinverters/iq8-series/iq8m-microinverter" rel="external"&gt;Enphase IQ8M&lt;/a&gt; microinverters to reduce the
amount of clipping. The inverters have a maximum output power of 325W, which is
about 25% less than the solar panel&amp;rsquo;s maximum output. Even the panels can cause
clipping on the inverters, this is occurs rarely. Panels are usually
not installed in ideal locations &amp;ndash; the panels are not facing due south or on a
tracker, they&amp;rsquo;re not at the perfect angle, etc.&lt;/p&gt;
&lt;p&gt;Clipping on our system has happened since the inverters are undersized compared
to the panels, but it&amp;rsquo;s not common. Figure &lt;a href="#figure--fig:clipping"&gt;1&lt;/a&gt; shows an example of when
this happens. It took some digging to find this in my archives.&lt;/p&gt;
&lt;p&gt;&lt;a id="figure--fig:clipping"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;figure class="figure-plot"&gt;&lt;img src="https://bostonenginerd.com/posts/pvoneyear1/data_clipping.svg" alt="An example of power production over a day where clipping is observed. You can see between the red vertical lines, the power output is flat indicating that system produces the maximum power."&gt;
&lt;figcaption&gt;&lt;span class="figure-number"&gt;Figure 1: &lt;/span&gt;An example of power production over a day showing clipping. The power output is flat between the red vertical lines, indicating that the system is producing the maximum amount of power.
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2 id="process"&gt;Process&lt;/h2&gt;
&lt;p&gt;After signing the contract to move forward with the system, a representative
from the vendor came out to visit my home and make some measurements of the
roof. They took photos of the electrical panel and looked in the attic at the
rafters to check the spacing and size.&lt;/p&gt;
&lt;p&gt;After this, the engineering team at the vendor got to work and submitted a pile
of paperwork to the utility and my city to obtain the necessary approvals and
permits. The design underwent multiple iterations due to some new fire code
requirements described in &lt;a href="#headaches"&gt;Headaches&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The timeline from signing the papers to getting Permission to Operate (PTO) was
108 days. The actual installation took only two days.&lt;/p&gt;
&lt;p&gt;During the installation, there were two inspection steps. The city is supposed
to inspect the physical installation to ensure that all setbacks are maintained
and the system properly ties into the framing. They are also required to
sign off on an electrical inspection after everything is tied in. After this
inspection, the installer can ask the utility to make the meter swap and grant
permission to operate the system.&lt;/p&gt;
&lt;p&gt;In my case, I believe that the city waived the physical inspection of the
equipment, but they did come out for the electrical inspection.&lt;/p&gt;
&lt;p&gt;Kudos to the technician from Eversource for working Black Friday and swapping my
meter out.&lt;/p&gt;
&lt;figure class="figure-plot"&gt;&lt;img src="https://bostonenginerd.com/posts/pvoneyear1/pv12mo/timeline.svg" alt=""&gt;
&lt;/figure&gt;
&lt;h2 id="headaches"&gt;Headaches&lt;/h2&gt;
&lt;h3 id="setback-requirements"&gt;Setback Requirements&lt;/h3&gt;
&lt;p&gt;On December 9, 2022, the Commonwealth of Massachusetts adopted the 2021 NFPA 1 fire code. The new edition makes the access requirements on the
roof stricter than in the past.A 36&amp;quot; walkway on the roof plane is now required, and the setback from the roof ridge should also be 36&amp;quot;.&lt;/p&gt;
&lt;p&gt;Section 11.12 describes the requirements for photovoltaic systems, but due to
some crazy licensing restrictions I cannot copy the relevant sections here.
They may be &lt;a href="https://www.nfpa.org/codes-and-standards/nfpa-1-standard-development/1" rel="external"&gt;viewed here&lt;/a&gt; for free, but an account is necessary. They also have
ridiculous password requirements, considering it&amp;rsquo;s a free account.&lt;/p&gt;
&lt;p&gt;Unfortunately, this new code means we had to install a smaller array than
the initial design. We lost four panels from the south-facing portion of the
array and had to put some panels onto a less productive face.&lt;/p&gt;
&lt;h3 id="equipment-problems"&gt;Equipment Problems&lt;/h3&gt;
&lt;p&gt;Thus far, we had one issue with the system at installation. All of the
microinverters communicate with a piece of equipment called the IQ Combiner 4.&lt;/p&gt;
&lt;p&gt;This unit manages:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Monitoring the grid connection to shut off the power if the grid drops.&lt;/li&gt;
&lt;li&gt;Communicating with the microinverters underneath each panel.&lt;/li&gt;
&lt;li&gt;Monitoring the power output and, optionally, consumption from the electrical panel&lt;/li&gt;
&lt;li&gt;Sending data to the Enphase Enlighten monitoring system.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The Ethernet connection on the IQ Combiner 4 unit was faulty. The Enphase remote support RMA&amp;rsquo;d a board for us and, the installer replaced it during a follow up visit.&lt;/p&gt;
&lt;p&gt;Since then, we have had zero issues.&lt;/p&gt;
&lt;h2 id="next-steps"&gt;Next Steps&lt;/h2&gt;
&lt;p&gt;In the next post, we&amp;rsquo;ll review the system&amp;rsquo;s electrical performance, and in the third post in this series, we&amp;rsquo;ll cover the financial performance.&lt;/p&gt;
&lt;h2 id="references"&gt;References&lt;/h2&gt;
&lt;style&gt;.csl-entry{text-indent: -1.5em; margin-left: 1.5em;}&lt;/style&gt;&lt;div class="csl-bib-body"&gt;
&lt;div class="csl-entry"&gt;&lt;a id="citeproc_bib_item_1"&gt;&lt;/a&gt;“Energy Sage Marketplace Intel Report H1 2024.” n.d. Accessed November 21, 2024. &lt;a href="https://www.energysage.com/data/"&gt;https://www.energysage.com/data/&lt;/a&gt;.&lt;/div&gt;
&lt;div class="csl-entry"&gt;&lt;a id="citeproc_bib_item_2"&gt;&lt;/a&gt;“Homeowner’s Guide to the Federal Tax Credit for Solar Photovoltaics.” n.d. Energy.gov. Accessed November 27, 2024. &lt;a href="https://www.energy.gov/eere/solar/homeowners-guide-federal-tax-credit-solar-photovoltaics"&gt;https://www.energy.gov/eere/solar/homeowners-guide-federal-tax-credit-solar-photovoltaics&lt;/a&gt;.&lt;/div&gt;
&lt;/div&gt;</content></entry><entry><title>Hybrid Water Heater Review</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/waterheater/"/><id>https://bostonenginerd.com/posts/waterheater/</id><published>2024-08-10T23:00:00-04:00</published><updated>2026-11-21T20:50:32-05:00</updated><summary>One of the recurring joys of home ownership is plumbing. In 2021, the water heater in our home developed a small leak. Fortunately, the leak was small enough where we had some time to work out the next steps. Our long-term goal for our home is fully run on electricity for both comfort and climate …</summary><content type="html">&lt;p&gt;One of the recurring joys of home ownership is plumbing. In 2021, the water
heater in our home developed a small leak. Fortunately, the leak was small
enough where we had some time to work out the next steps. Our long-term goal for
our home is fully run on electricity for both comfort and climate reasons.&lt;/p&gt;
&lt;p&gt;The domestic hot water system that existed in the home when we bought it used
the indirect heating loop in the oil boiler and an unplugged electrical water
heater as a storage tank. The boiler was setup to maintain a set point between
120F and 170F all year round. Looking at the summer usage of the boiler, we used
between 0.5 and 1 gallon of oil per day to keep the boiler hot. Extrapolating
this, I estimate that heating water was burning around a full tank of oil per
year &amp;ndash; around $900/yr at the $3.50/gal price in Feb 2022.&lt;/p&gt;
&lt;h2 id="installation"&gt;Installation&lt;/h2&gt;
&lt;p&gt;The first step in installing the HPWH was to have our electrician run a 240V 30A
circuit to the location. Our electrician did this some weeks prior to the water
heater&amp;rsquo;s arrival. Although the water heater&amp;rsquo;s normal consumption is around 400W,
it has traditional heating elements which turn on in a few different scenarios:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hot water utilization is too high for the heatpump to keep up&lt;/li&gt;
&lt;li&gt;The ambient temperature is too low in the area the unit is installed.&lt;/li&gt;
&lt;li&gt;The heat pump has some mechanical problem or coolant leak which prevents the
heat pump from operating.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The subsequent steps were performed by a local plumber. The existing storage
tank and hardware were removed , and the indirect loop on my boiler was capped
off. The new hot water heater was connected to the existing hot water line.
Finally, a condensate pump and flexible tubing were connected to move the
condensate created by the cold side of the heat pump to a drain.&lt;/p&gt;
&lt;p&gt;The version of the water heater that I bought has an automatic shutoff valve and
a leak detection circuit, so we installed the unit onto a drip pan. This will
contain any water which may spill from a leak, and concentrate it so the leak
detection circuit shuts off the cold water input.&lt;/p&gt;
&lt;p&gt;As I recall, the &lt;a href="https://files.myrheem.com/webpartners/ProductDocuments/2679665F-4FDA-42AC-8DBF-A938F4CA2FAC.pdf" rel="external"&gt;manual&lt;/a&gt; suggests connecting the water heater to the rest of the
house using a flexible line, however the plumber who installed it used rigid
copper for the connections. In addition, the manual suggests using a&lt;a href="https://en.wikipedia.org/wiki/Heat_trap" rel="external"&gt; heat trap&lt;/a&gt;
on the cold water input. This was not done in my installation, but is on my
to-do list to correct. I&amp;rsquo;d suggest reading the manual and reviewing the
installation plan with the installer prior to commencing work. This isn&amp;rsquo;t to
complain about our installer &amp;ndash; they were good to work with and did clean work
at a reasonable price on a fast schedule.&lt;/p&gt;
&lt;h2 id="costs"&gt;Costs&lt;/h2&gt;
&lt;p&gt;It always annoys me when I read great writeups of projects, and they skip the
installation costs. Of course, this happened in 2021, and prices are strongly location dependent.&lt;/p&gt;
&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table (scrolls horizontally)"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Item&lt;/th&gt;&lt;th&gt;Manufacturer&lt;/th&gt;&lt;th&gt;Model&lt;/th&gt;&lt;th class="num"&gt;Price&lt;/th&gt;&lt;th&gt;Store&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Water Heater&lt;/td&gt;&lt;td&gt;Rheem&lt;/td&gt;&lt;td&gt;Proterra 50gal XE50T10HS45U0&lt;/td&gt;&lt;td class="num"&gt;$1514.13&lt;/td&gt;&lt;td&gt;Home Depot&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Drip Pan&lt;/td&gt;&lt;td&gt;Everbuilt&lt;/td&gt;&lt;td&gt;24&amp;quot; Al Drip Pan&lt;/td&gt;&lt;td class="num"&gt;$20.98&lt;/td&gt;&lt;td&gt;Home Depot&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Condensate pump&lt;/td&gt;&lt;td&gt;Little Giant&lt;/td&gt;&lt;td&gt;VCMX-20ULST&lt;/td&gt;&lt;td class="num"&gt;$49.95&lt;/td&gt;&lt;td&gt;Home Depot&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;At the time, the Chase Sapphire Card had a Pay Yourself Back option at Home
Depot. I was able to use credit card points to pay for the water heater and the
other items.&lt;/p&gt;
&lt;p&gt;The installation costs:&lt;/p&gt;
&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table (scrolls horizontally)"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Item&lt;/th&gt;&lt;th&gt;Cost&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Electrical Circuit&lt;/td&gt;&lt;td&gt;~$300&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Plumbing and Disposal&lt;/td&gt;&lt;td&gt;$800&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;In 2021 Massachusetts, &lt;a href="https://www.masssave.com/" rel="external"&gt;MassSave&lt;/a&gt;, the state efficiency program offered a $600
rebate if you installed a heat pump water heater. Since then, both the state and
feds offer even more generous rebates to install these efficient systems.&lt;/p&gt;
&lt;h2 id="performance"&gt;Performance&lt;/h2&gt;
&lt;p&gt;We have owned the water heater for approximately three years at the time of
writing. The elements on the tank kick on ~5 times per month on average, mostly
during the wintertime when multiple sequential showers happen. The elements have
been turning on more frequently since last June 2023 when I replaced our highly
efficient shower head with a model which uses a much higher flow. You can see in
the plot below that the summertime usage is higher after this. One item to note
is that the power monitoring system was not hooked up during August / September
2022 while our electrical panel was getting upgraded.&lt;/p&gt;
&lt;p&gt;&lt;a id="figure--fig:waterheater-power"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;figure class="figure-plot"&gt;&lt;img src="https://bostonenginerd.com/posts/waterheater/energy.svg" alt="A figure showing power utilization over time. The power goes from ~40kWh per month to over 80kWh/month in the wintertime."&gt;
&lt;figcaption&gt;&lt;span class="figure-number"&gt;Figure 1: &lt;/span&gt;Power usage since installation
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;It&amp;rsquo;s also interesting to look at a single cycle. In the plot below, you can see how the power used by the water heater increases with time as the water in the tank gets hotter.&lt;/p&gt;
&lt;p&gt;&lt;a id="figure--fig:waterheater-cycle"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;figure class="figure-plot"&gt;&lt;img src="https://bostonenginerd.com/posts/waterheater/one.svg" alt="A figure showing the power usage over one cycle. The power usage increases from 0 to around 400W, with the amount increasing to 450W over the approximately one hour cycle."&gt;
&lt;figcaption&gt;&lt;span class="figure-number"&gt;Figure 2: &lt;/span&gt;Power usage during a heating cycle
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Finally, this is a plot of a water heating cycle where the electric elements
kicked on during a particularly long heating cycle during the winter. I&amp;rsquo;m not
certain what was happening at this time, but I suspect several showers were
taken along with dishes and laundry. There are multiple times where the HPWH
power usage goes down &amp;ndash; indicating that the temperature in the tank is lower.&lt;/p&gt;
&lt;p&gt;&lt;a id="figure--fig:waterheater-element"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;figure class="figure-plot"&gt;&lt;img src="https://bostonenginerd.com/posts/waterheater/element.svg" alt="A figure showing the power usage over one heavy day of usage. The water heater kicks on the electric elements for around 1 hour, causing a large spike in energy consumption up to 5000W."&gt;
&lt;figcaption&gt;&lt;span class="figure-number"&gt;Figure 3: &lt;/span&gt;Power usage during a heating cycle
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h3 id="carbon-footprint"&gt;Carbon Footprint&lt;/h3&gt;
&lt;p&gt;On another project, we calculated that our old boiler system used approximately
a full tank of oil each year. This was done using data from a &lt;a href="https://www.smartoilgauge.com" rel="external"&gt;Smart Oil Gauge&lt;/a&gt;
which reports the oil level in my tank hourly all year round. We looked back at
the usage from the summertime before we replaced the water storage tank with our
HPWH, and extrapolated the usage from that to the full year. Not exactly a
precise measurement, given that the boiler is on in the winter time anyway but
it&amp;rsquo;s a reasonable approximation.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://www.eia.gov/environment/emissions/co2_vol_mass.php" rel="external"&gt;Energy Information Administration publishs the carbon emission equivalent
for a number of fuels.&lt;/a&gt; Diesel or Fuel oil releases approximately 22.5 pounds of
carbon dioxide per gallon. Using the estimation that heating water for domestic
use burned a full 275 gallon tank of oil annually, we can calculate that hot
water caused around three tons of carbon emissions from my household.&lt;/p&gt;
&lt;p&gt;EIA also publishes the carbon intensity of the &lt;a href="https://www.eia.gov/electricity/state/massachusetts/" rel="external"&gt;Massachusetts grid&lt;/a&gt; as around
952lbs per MWh. Our water heater used 700kWh (0.7MWh) in 2024, making our carbon
dioxide emissions from the HPWH around 666 lbs of carbon &amp;ndash; or around an 89%
reduction in carbon dioxide! We have a PPA agreement in place to purchase 100%
renewable power, which should reduce that further &amp;ndash; though that&amp;rsquo;s mostly an
accounting trick. In addition, we have solar panels on our roof which should
reduce our usage further.&lt;/p&gt;
&lt;h3 id="conclusion"&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;We&amp;rsquo;ve been quite happy with our Rheem Proterra HPWH so far. Others online seem
to have reliability issues with the newer units, but we have not encountered any
problem with ours yet. Our unit provides the hot water that we need reliably and
efficiently. Hopefully we will not have to exercise the 10 year warranty!&lt;/p&gt;</content></entry><entry><title>Temporarily Enabling Analytics</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/cloudflareanalytics/"/><id>https://bostonenginerd.com/posts/cloudflareanalytics/</id><published>2023-09-04T14:00:00-04:00</published><updated>2024-08-10T22:51:52-04:00</updated><summary>I’m trying an experiment with Cloudflare analytics and have enabled it on this page.
I’ve enabled a Javascript beacon on the page footer which supposedly allows me to collect pageviews.
According to Cloudflare, this beacon plays nice with keeping readers information private.
Cloudflare Web Analytics …</summary><content type="html">&lt;p&gt;I&amp;rsquo;m trying an experiment with Cloudflare analytics and have enabled it on this page.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve enabled a Javascript beacon on the page footer which supposedly allows me to collect pageviews.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.cloudflare.com/web-analytics/" rel="external"&gt;According to Cloudflare&lt;/a&gt;, this beacon plays nice with keeping readers information private.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Cloudflare Web Analytics does not use any client-side state, such as cookies or localStorage, to collect usage metrics. We also don’t “fingerprint” individuals via their IP address, User Agent string, or any other data for the purpose of displaying analytics.&lt;/p&gt;
&lt;/blockquote&gt;</content></entry><entry><title>ELECTRIFY ALL THE THINGS!</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/electrification/"/><id>https://bostonenginerd.com/posts/electrification/</id><published>2022-05-13T16:00:00-04:00</published><updated>2024-08-10T22:51:52-04:00</updated><category term="HOME"/><summary>If you’re coming here from the Chelsea Research Festival, I’ll be uploading more information about the project in the coming days.</summary><content type="html">&lt;p&gt;If you&amp;rsquo;re coming here from the Chelsea Research Festival, I&amp;rsquo;ll be uploading more information about the project in the coming days.&lt;/p&gt;</content></entry><entry><title>T-Mobile Home ISP Service Review with OpenWRT</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/tmobile-isp/"/><id>https://bostonenginerd.com/posts/tmobile-isp/</id><published>2021-05-20T17:39:00-04:00</published><updated>2024-11-20T21:26:05-05:00</updated><summary>Comcast and I have long had a strained relationship. I recognize that the service they’ve offered in the houses and apartments that I’ve lived in has been reliable. However, I’ve never been a big fan of their business and billing practices.
For example, I purchased my own DOCSIS 3.0 cable modem some …</summary><content type="html">&lt;p&gt;Comcast and I have long had a strained relationship. I recognize that the
service they&amp;rsquo;ve offered in the houses and apartments that I&amp;rsquo;ve lived in has been
reliable. However, I&amp;rsquo;ve never been a big fan of their business and billing
practices.&lt;/p&gt;
&lt;p&gt;For example, I purchased my own DOCSIS 3.0 cable modem some years ago when I
first got their internet service. Some months in, I noticed that they were
charging me for a cable modem rental. When I contacted them about this, they
were insistent that I prove to them that I bought my own cable modem before they
would refund the fees. I might recall this incorrectly, but I believe they had
requested that I fax my proof of purchase to a number as they did not have an
email address setup for such things.&lt;/p&gt;
&lt;p&gt;After that, it was smooth sailing until they charged me full freight for the
service and refused to honor the deal they had agreed to. At the end, we put
some reasonable deal in place for internet service for some years.&lt;/p&gt;
&lt;p&gt;Two years ago, my wife and I bought a house and transferred our service there.
As part of that, Comcast has an automatic contact renewal program on their
website. I agreed to an additional two years at the rate I was paying &amp;ndash; and
after a month or two, my bill went up dramatically. Apparently I had exposed
some glitch in their system which signed contracts on their behalf that they had
no intention to honor. After weeks of wasted time, I ended up giving in and
accepting crappier service for more money since I didn&amp;rsquo;t have any other option.
Looking back, I should have filed a complaint with the Massachusetts Attorney
General.&lt;/p&gt;
&lt;p&gt;Finally, in November 2020 Comcast announced both a &lt;a href="https://arstechnica.com/information-technology/2020/11/comcasts-data-cap-finally-goes-nationwide-in-expansion-to-12-more-states/" rel="external"&gt;1.2TB data caps&lt;/a&gt; and a&lt;a href="https://arstechnica.com/information-technology/2020/11/comcast-raising-tv-and-internet-prices-including-a-big-hike-to-hidden-fees/" rel="external"&gt; rate
hike&lt;/a&gt;. Coincidentally, our data usage somehow jumped up 20% the month after they
announced the data cap enforcement. I hadn&amp;rsquo;t been keeping track of our data
usage on our router at that time, so I can&amp;rsquo;t rule out that our usage did
actually increase - but the timing is suspicious.&lt;/p&gt;
&lt;figure&gt;&lt;picture&gt;
&lt;source type="image/avif" srcset="/images/tmobile/comcast_data_hu_df51c49d680cedcf.avif 800w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;source type="image/webp" srcset="/images/tmobile/comcast_data_hu_2538493295a97477.webp 800w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;img src="https://bostonenginerd.com/images/tmobile/comcast_data_hu_c1b43d3e9ce1fe02.jpg" srcset="/images/tmobile/comcast_data_hu_c1b43d3e9ce1fe02.jpg 800w" sizes="(min-width: 46rem) 42rem, 100vw"
alt="Image of data usage showing a jump from 800GB to 1000TB after cap announcement" width="800" height="378"
loading="lazy" decoding="async"&gt;
&lt;/picture&gt;
&lt;figcaption&gt;&lt;span class="figure-number"&gt;Figure 1: &lt;/span&gt;Comcast Data Usage
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Although Comcast did backpedal on the data cap enforcement, this has led me to
seek other options in earnest. In our city, you have two choices for
&amp;ldquo;broadband&amp;rdquo;: Verizon&amp;rsquo;s DSL and Comcast. In today&amp;rsquo;s age, with the &lt;a href="https://idlewords.com/talks/website_obesity.htm" rel="external"&gt;Website Obesity
Crisis&lt;/a&gt; in full swing 1.5Mbps is not going to cut it for a multi-user household.
There are some companies who service larger buildings like NetBlazr and Starry,
but they&amp;rsquo;re not interested in working with single family homes.&lt;/p&gt;
&lt;p&gt;Last December, I saw some news on Reddit about a new &lt;a href="https://www.t-mobile.com/isp" rel="external"&gt;home ISP service from
T-Mobile&lt;/a&gt;. They were targeting speeds of 50Mbps / 50Mbps upload and download
without data caps for $50 / mo inclusive of taxes, fees and including the
equipment. Our Comcast plan included ~100Mbps download with a paltry 5-7Mbps
upload for over $100/mo. The Comcast plan included a cable package which is
rarely used, but the bundle was cheaper than the standalone service.&lt;/p&gt;
&lt;p&gt;In January, we decided to give the T-Mobile service a try. Although their
eligibility webform said our address wasn&amp;rsquo;t eligible, the customer service
agents said that we were.&lt;/p&gt;
&lt;h2 id="solution"&gt;Solution&lt;/h2&gt;
&lt;p&gt;The Nokia &amp;ldquo;trash can&amp;rdquo; looks like an extremely powerful device, but it&amp;rsquo;s crippled
by locked down software. There aren&amp;rsquo;t many knobs that you can turn on the device
&amp;ndash; perfect for my parents, but not great for someone who already has a network
setup. In my use, I found there were a few issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;No bridge mode, so it&amp;rsquo;s not exactly a 1:1 replacement for the cable modem.
The Nokia device pulls down the IP address from T-Mobile. Using your own
router connected to the Nokia router means you&amp;rsquo;re dealing with a double-NAT
setup.&lt;/li&gt;
&lt;li&gt;The T-Mobile DNS servers are a bit flaky. Configuring my device to use
another DNS server improved this by quite a bit.&lt;/li&gt;
&lt;li&gt;The &lt;a href="https://www.bufferbloat.net" rel="external"&gt;Bufferbloat&lt;/a&gt; is pretty bad. When the connection starts to get saturated,
the ping times grow substantially.&lt;/li&gt;
&lt;li&gt;No ability to setup isolated networks for untrusted devices.&lt;/li&gt;
&lt;li&gt;The 5G connection seems to have flaked out over time.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="setup"&gt;Setup&lt;/h2&gt;
&lt;h3 id="network-overview"&gt;Network Overview&lt;/h3&gt;
&lt;p&gt;I already have a reasonably well setup home network using an &lt;a href="https://www.openwrt.org" rel="external"&gt;OpenWRT Based&lt;/a&gt;
&lt;a href="https://www.turris.com/en/omnia/overview/" rel="external"&gt;Turris Omnia Router&lt;/a&gt;, with separate IP ranges and WiFI networks for trusted
devices, guests and untrusted IoT devices. I also have a nice UniFi Access point
which covers my entire home quite well. Due to this I decided to accept the
potential headache from double-NAT and put the router behind the T-Mobile
device.&lt;/p&gt;
&lt;p&gt;T-Mobile doesn&amp;rsquo;t have enough IPv4 addresses available for all of its customers,
so they run an IPv6-first network and use Carrier Grade NAT (CGNAT) to allow
multiple users to share a single IPv4 address. This comes with a performance
hit. Fortunately IPv6-enabled websites are becoming more and more common. As
such, it is desirable for the devices on my network to be able to have a real
IPv6 address.&lt;/p&gt;
&lt;p&gt;I don&amp;rsquo;t pretend to understand IPv6 address allocation perfectly. There are
multiple ways in which your device can get an IP address. XFinity supported
&amp;ldquo;prefix delegation&amp;rdquo; which tells your router that it can feel free to hand out
addresses in a given range to all of the devices connected to it using a DHCPv6
server. Unfortunately, the T-Mobile router doesn&amp;rsquo;t allow delegation to your
router. Fortunately OpenWRT supports a &amp;ldquo;relay&amp;rdquo; mode for IPv6 address allocation.
In order to enable this, a few settings need to be changed from the default
settings:&lt;/p&gt;
&lt;h3 id="openwrt-omnia-configuration"&gt;OpenWRT / Omnia Configuration&lt;/h3&gt;
&lt;p&gt;I had to make some configuration changes to the OpenWRT-based Turris Omnia in order to improve the performance.&lt;/p&gt;
&lt;h4 id="ipv6-relay"&gt;IPV6 Relay&lt;/h4&gt;
&lt;p&gt;When I plugged the WAN port of the Turris Omnia into the LAN port on the Nokia
router, the Omnia pulled down an IPv4 and IPv6 address. The Omnia proceeded to
hand out private 192.168.1.0/24 IPv4 addresses to the clients connected to it,
but did not assign any IPv6 addresses to the clients.&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://www.reddit.com/r/tmobileisp" rel="external"&gt;/r/tmobileisp&lt;/a&gt; subreddit has some good advice on occasion. I ran into a
&lt;a href="https://www.reddit.com/r/tmobileisp/comments/luslbf/how_are_you_getting_around_the_lack_of_ipv6/gpuuim4/" rel="external"&gt;comment from a user&lt;/a&gt; which provided some ideas on how to work around this. The
following code blocks show the LAN and WAN6 blocks of my /etc/config/dhcp file.&lt;/p&gt;
&lt;p&gt;&lt;a id="code-snippet--WAN6"&gt;&lt;/a&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config dhcp &lt;span class="s1"&gt;&amp;#39;lan&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option interface &lt;span class="s1"&gt;&amp;#39;lan&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option start &lt;span class="s1"&gt;&amp;#39;100&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option limit &lt;span class="s1"&gt;&amp;#39;150&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option leasetime &lt;span class="s1"&gt;&amp;#39;12h&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option dhcpv6 &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option ra &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option ndp &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option ra_management &lt;span class="s1"&gt;&amp;#39;1&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list dhcp_option &lt;span class="s1"&gt;&amp;#39;6,192.168.1.1&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div class="src-block-caption"&gt;
&lt;span class="src-block-number"&gt;&lt;a href="#code-snippet--WAN6"&gt;Code Snippet 1&lt;/a&gt;:&lt;/span&gt;
/etc/config/dhcp WAN settings
&lt;/div&gt;
&lt;p&gt;&lt;a id="code-snippet--WAN6"&gt;&lt;/a&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config dhcp &lt;span class="s1"&gt;&amp;#39;wan6&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option dhcpv6 &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option ra &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt; option ndp &lt;span class="s1"&gt;&amp;#39;relay&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option master &lt;span class="s1"&gt;&amp;#39;1&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option interface &lt;span class="s1"&gt;&amp;#39;wan6&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option start &lt;span class="s1"&gt;&amp;#39;100&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option leasetime &lt;span class="s1"&gt;&amp;#39;12h&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option limit &lt;span class="s1"&gt;&amp;#39;150&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div class="src-block-caption"&gt;
&lt;span class="src-block-number"&gt;&lt;a href="#code-snippet--WAN6"&gt;Code Snippet 2&lt;/a&gt;:&lt;/span&gt;
/etc/config/dhcp WAN6 settings
&lt;/div&gt;
&lt;p&gt;After making these changes, the devices on my network were all able to pull IPv6
addresses down. I believe that they&amp;rsquo;re assigned by the Nokia gateway.&lt;/p&gt;
&lt;h4 id="dns-settings"&gt;DNS Settings&lt;/h4&gt;
&lt;p&gt;The T-Mobile DNS servers are a source of many complaints on Reddit. It seems that they can be a bit overloaded at times. Due to this, I wanted to configure my router
The Turris Omnia uses a non-standard DNS resolver called &lt;a href="https://www.knot-dns.cz/" rel="external"&gt;Knot&lt;/a&gt;. It&amp;rsquo;s written by
the same folks who built the Omnia. Most OpenWRT devices seem to use DNSmasq, so
most of the documentation online is based around this.&lt;/p&gt;
&lt;p&gt;In the &amp;ldquo;Foris&amp;rdquo; simplified management interface on the Omnia, you can select the DNS server you would like your router to use.&lt;/p&gt;
&lt;p&gt;I chose to use the Cloudflare DNS servers due to their &lt;a href="https://www.cloudflare.com/application/privacypolicy/" rel="external"&gt;reasonable privacy
policy.&lt;/a&gt; Their IPv4 endpoints are 1.1.1.1 and 1.0.0.1. In addition, they provide
IPv6 endpoints at 2606:4700:4700::1111 and 2606:4700:4700::1001. They also have
end points which provide adult content and malware filtering.&lt;/p&gt;
&lt;p&gt;I believe that I had to add in the IPv6 endpoints into the following file:&lt;/p&gt;
&lt;p&gt;&lt;a id="code-snippet--WAN6"&gt;&lt;/a&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;99_cloudflare.conf&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Cloudflare (TLS)&amp;#34;&lt;/span&gt;-0t5f4rdas9T4rewq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;enable_tls&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;1&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;port&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;853&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ipv4&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;1.1.1.1 1.0.0.1&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line hl"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ipv6&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;2606:4700:4700::1111 2606:4700:4700::1001&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ca_file&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;/etc/ssl/certs/ca-certificates.crt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;hostname&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;cloudflare-dns.com&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div class="src-block-caption"&gt;
&lt;span class="src-block-number"&gt;&lt;a href="#code-snippet--WAN6"&gt;Code Snippet 3&lt;/a&gt;:&lt;/span&gt;
/etc/resolver/dns_servers/99_cloudflare.conf
&lt;/div&gt;
&lt;h4 id="bufferbloat"&gt;BufferBloat&lt;/h4&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Bufferbloat" rel="external"&gt;Bufferbloat&lt;/a&gt; is a condition where the latency of a network connection increases
dramatically under load. This can make applications which are time sensitive
like video and voice chat malfunction when the network connection is loaded.&lt;/p&gt;
&lt;p&gt;The Nokia router does not seem to have any mitigations in place for this, so I
enabled Smart Queue Management (SQM) on the Omnia. In general, this trades off a
bit of maximum throughput for more consistent latency performance.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m using the CAKE queueing algorithm, &lt;a href="https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm" rel="external"&gt;as described in this article on the
OpenWRT website&lt;/a&gt;. This did make a notable improvement in the bufferbloat
performace.&lt;/p&gt;
&lt;h3 id="external-access"&gt;External Access&lt;/h3&gt;
&lt;p&gt;Unfortunately, the T-Mobile service does not provide a publicly routable address
which means that remotely accessing local resources is a challenge. There are
online services which can mitigate this. One option would have been to connect
router to a server with a public IP address and use that host as a means of
connecting to local servers. There are some other commercial solutions. I
settled on one called Tailscale at the recommendation of tptacek on Hacker News.
So far it works well on all of my devices. Occasionally I will need to open the
app on my iOS devices to reconnect, but that&amp;rsquo;s all.&lt;/p&gt;
&lt;h2 id="concerns"&gt;Concerns&lt;/h2&gt;
&lt;p&gt;Although T-Mobile has been reasonable enough to work with commercially, they
have had a history of concerning privacy practices. In 2018, &lt;a href="https://www.vice.com/en/article/d3mjvy/tmobile-phone-location-data-abuse-senator-ron-wyden" rel="external"&gt;they were caught
selling location data to data brokers who then resold to a number of unsavory
parties including bounty hunters.&lt;/a&gt; Supposedly this practice has stopped, but they
have not ever responded to my requests to confirm whom my location data was
shared with.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.vox.com/recode/22325420/t-mobile-verizon-att-ad-targeting-data" rel="external"&gt;In addition, they have recently launched an ad platform which leverages your
browsing history to target ads.&lt;/a&gt; There is an opt-out which I suggest everyone
take advantage of, but you shouldn&amp;rsquo;t need to opt-out to this kind of nonsense.
It should simply be illegal.&lt;/p&gt;
&lt;p&gt;With all of my complaints about Comcast, they were definitely better on this
front. Depending on how things evolve with T-Mobile, this might end up being a
reason to switch back.&lt;/p&gt;
&lt;h2 id="conclusion"&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;We&amp;rsquo;ve been running the service for approximately a month, and it&amp;rsquo;s been fine.
Good enough that we canceled our Comcast service. For whatever reason, we only
pull a 5G signal sporadically so most of our data are transferring over LTE.
Despite that, we get approximately 50Mpbs down / 50Mbps up rather consistently
when connected directly to the Nokia &amp;ldquo;trash can&amp;rdquo; either via Wifi or plugged in.
On the occasions when the device pulls a 5G connection, the download speed
increases to around 200Mbps.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m looking forward to seeing what T-Mobile brings us with future network and
software upgrades. I&amp;rsquo;m hoping that they will make positive steps to address the
privacy considerations.&lt;/p&gt;
&lt;p&gt;I think that our long term relationship with T-Mobile may hinge on their
improving their privacy practices. Hopefully they will come to the light and
start to protect customer data better.&lt;/p&gt;</content></entry><entry><title>Setting up a UPS for a home lab</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/home-ups/"/><id>https://bostonenginerd.com/posts/home-ups/</id><published>2021-01-23T00:00:00Z</published><updated>2021-01-23T00:00:00Z</updated><summary>After a recent power outage at our house, I purchased a UPS to help keep the internet online the next time. In addition, we noticed that when there was an outage the power tended to come on and off multiple times before stabilizing.
I’ve been trying to buy products from brick and mortar stores …</summary><content type="html">&lt;p&gt;After a recent power outage at our house, I purchased a UPS to help keep the
internet online the next time. In addition, we noticed that when there was an
outage the power tended to come on and off multiple times before stabilizing.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve been trying to buy products from brick and mortar stores rather than Amazon
due to the &lt;a href="https://www.latimes.com/business/technology/la-fi-tn-amazon-counterfeits-20180928-story.html" rel="external"&gt;prevalence of counterfeit products mixed in with legitimate goods.&lt;/a&gt; In
our area, &lt;a href="https://www.microcenter.com/" rel="external"&gt;Microcenter&lt;/a&gt; tends to be a decent option for computer and maker related
items. They offer a price match which removes the downside of purchasing in-person.&lt;/p&gt;
&lt;p&gt;I ended up purchasing a &lt;a href="https://www.cyberpowersystems.com/product/ups/battery-backup/le1000dg/" rel="external"&gt;Cyberpower LE1000DG UPS&lt;/a&gt;. There were other options, but
this one seemed reasonable enough. When I got it home, I discovered that there
was a USB port on it. This port allows a computer to monitor the status of the
UPS. I thought this was pretty neat, as it would allow me to automatically
cleanly power down devices selectively depending on how long the outage lasts
for.&lt;/p&gt;
&lt;p&gt;The router we use at home is a &lt;a href="https://www.turris.com/en/omnia/overview/" rel="external"&gt;Turris Omnia&lt;/a&gt;. &lt;a href="https://cz.nic" rel="external"&gt;CZ.NIC&lt;/a&gt;, a Czech ISP created the
device for use as the digital center for homes. The device has a moderately fast
CPU, generous RAM and eMMC memory and allows the use of an m-SATA SSD to expand
the storage available on the device. Having the high spec allows the router to
share a few roles like running a &lt;a href="https://www.wireguard.com" rel="external"&gt;Wireguard VPN&lt;/a&gt;, an &lt;a href="https://openvpn.net" rel="external"&gt;OpenVPN VPN&lt;/a&gt;, print server, or
&lt;a href="https://www.nextcloud.com" rel="external"&gt;NextCloud server&lt;/a&gt;. It even has the capability to run &lt;a href="https://www.linuxcontainers.org" rel="external"&gt;Linux Containers&lt;/a&gt; using LXD.&lt;/p&gt;
&lt;p&gt;The software on the devices is &lt;a href="https://www.openwrt.org" rel="external"&gt;OpenWRT&lt;/a&gt; based which means there is a lot of
packaged software available. One of the packages available is the &lt;a href="https://networkupstools.org/" rel="external"&gt;Network UPS
Tools (NUT)&lt;/a&gt; package. This package consists of two parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nut_server - a daemon which connects to the UPS hardware.&lt;/li&gt;
&lt;li&gt;nut_monitor - a daemon which periodically communicates with the nut_server to
get the status of the hardware.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="software-installation"&gt;Software installation&lt;/h2&gt;
&lt;p&gt;Fortunately, OpenWRT packages the NUT software and provides a &lt;a href="https://openwrt.org/docs/guide-user/services/ups/software.nut" rel="external"&gt;nice wiki page&lt;/a&gt;. I find using the command line
interface more convenient than using the LuCi web interface to install and
configure packages.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; opkg update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;gt; opkg install nut nut-common nut-upsmon nut-upscmd nut-server nut-driver-usbhid-ups&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;For space reasons, OpenWRT splits out the drivers from the NUT software. &lt;a href="https://networkupstools.org/stable-hcl.html" rel="external"&gt;The
driver / UPS pairings are on the NUT website&lt;/a&gt;. For the LE1000DG UPS, the correct
driver is the USB-HID one.&lt;/p&gt;
&lt;p&gt;After installing the software, we need to setup the configuration.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config driver_global &amp;#39;driver_global&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option user &amp;#39;nut&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config driver &amp;#39;ups&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option driver &amp;#39;usbhid-ups&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option port &amp;#39;auto&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option pollinterval &amp;#39;15&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config user
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option username &amp;#39;upsuser&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option password &amp;#39;1337p455w0rd&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option upsmon &amp;#39;master&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config listen_address
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option port &amp;#39;3493&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option address &amp;#39;192.168.1.1&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config upsd &amp;#39;upsd&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option maxage &amp;#39;15&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option statepath &amp;#39;/var/run/nut&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option maxconn &amp;#39;1024&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option runas &amp;#39;nut&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config upsmon &amp;#39;upsmon&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option hostsync &amp;#39;15&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option deadtime &amp;#39;25&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option notifycmd &amp;#39;/usr/sbin/sms.sh&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option onlinemsg &amp;#39;UPS %s on line power&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option onbattmsg &amp;#39;UPS %s on battery&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option lowbattmsg &amp;#39;UPS %s battery is low&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option fsdmsg &amp;#39;UPS %s: forced shutdown in progress&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option commokmsg &amp;#39;Communications with UPS %s established&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option commbadmsg &amp;#39;Communications with UPS %s lost&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option shutdownmsg &amp;#39;Auto logout and shutdown proceeding&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option replbattmsg &amp;#39;UPS %s battery needs to be replaced&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option nocommmsg &amp;#39;UPS %s is unavailable&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option noparentmsg &amp;#39;upsmon parent process died - shutdown impossible&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option lowbattnotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option commoknotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option commbadnotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option shutdownnotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option nocommnotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option noparentnotify &amp;#39;EXEC+SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list onlinenotify &amp;#39;EXEC&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list onlinenotify &amp;#39;SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list onbattnotify &amp;#39;EXEC&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list onbattnotify &amp;#39;SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list fsdnotify &amp;#39;EXEC&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list fsdnotify &amp;#39;SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list replbattnotify &amp;#39;EXEC&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; list replbattnotify &amp;#39;SYSLOG&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;config master
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option upsname &amp;#39;ups&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option port &amp;#39;3493&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option powervalue &amp;#39;1&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option username &amp;#39;upsuser&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option password &amp;#39;1337p455w0rd&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; option hostname &amp;#39;192.168.1.1&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In the upsmon configuration section, note the &amp;ldquo;notifycmd&amp;rdquo; line. This line calls
a user defined program to do something when an event happens. In my case, I&amp;rsquo;m
using &lt;a href="https://developer.flowroute.com/api/messages/v2.1/send-an-sms/" rel="external"&gt;Flowroute&amp;rsquo;s SMS API&lt;/a&gt; to send me a text when the power goes out and back on.&lt;/p&gt;
&lt;p&gt;The SMS script uses curl with the access token and API jey to send a message
passed in as an argument. The text of the message is from the &amp;ldquo;onlinemsg&amp;rdquo;,
&amp;ldquo;onbatterymsg&amp;rdquo; and other similar lines.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="cp"&gt;#!/usr/bin/env bash
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;ACCESS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;API_ACCESS_TOKEN&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;API_KEY&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl https://api.flowroute.com/v2.1/messages &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-u &lt;span class="nv"&gt;$ACCESS&lt;/span&gt;:&lt;span class="nv"&gt;$KEY&lt;/span&gt; -X POST &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-H &lt;span class="s2"&gt;&amp;#34;Content-Type: application/json&amp;#34;&lt;/span&gt; &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-d &lt;span class="s2"&gt;&amp;#34;{\&amp;#34;to\&amp;#34;:\&amp;#34;TONUMBER\&amp;#34;\&amp;#34;,\&amp;#34;from\&amp;#34;:\&amp;#34;FROMNUMBER\&amp;#34;, \&amp;#34;body\&amp;#34;:\&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;\&amp;#34;}&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Replace the API_ACCESS_TOKEN, API_KEY, FROMNUMBER and TONUMBER with the appropriate values for your environment. So far this has worked quite well for me!&lt;/p&gt;
&lt;p&gt;Now that we have communication with the UPS and notifications sorted out, the
next step is to configure other computers running on the UPS to power down
safely when the power goes out. The threshold for each device should depend on
how critical a service is.&lt;/p&gt;
&lt;p&gt;On my network, I have a small fileserver that I&amp;rsquo;d like to shut down when the power goes off. This machine is running a recent LTS version of Ubuntu.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ sudo apt install nut-client&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This installs a client which can communicate with the nut server running on the router. The installed configuration file (/etc/nut/nut.conf) has a lot of comments in it, but the key line is the following:&lt;/p&gt;
&lt;p&gt;&lt;a id="org-example-block---etc-nut-nut.conf"&gt;&lt;/a&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MODE=netclient&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The /etc/upsmon.conf file should include the following lines:&lt;/p&gt;
&lt;p&gt;&lt;a id="org-example-block---etc-upsmon.conf"&gt;&lt;/a&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MONITOR ups@192.168.1.1 1 upsuser 1337p455w0rd slave
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SHUTDOWNCMD &amp;#34;/sbin/shutdown -h +0&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;The &amp;ldquo;slave&amp;rdquo; designation indicates that the system should power down when the UPS
level is critical. You can call out a custom shutdown script to perform some
actions prior to shutting down.&lt;/p&gt;
&lt;h2 id="final-thoughts"&gt;Final Thoughts&lt;/h2&gt;
&lt;p&gt;This setup has been running at my house for several months now, and worked as designed during a power outage. My file server shut itself down, preserving power for my cable modem, wireless access points and my router.&lt;/p&gt;</content></entry><entry><title>GE Profile Stove turning on by itself</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/stoveonfire/"/><id>https://bostonenginerd.com/posts/stoveonfire/</id><published>2021-01-02T10:30:00-05:00</published><updated>2024-08-10T22:51:52-04:00</updated><summary>Prior to moving in our house, we replaced the old coil burner stove with a nice fancy GE Profile Induction range - their PHS930SL2SS model. I grew up with a coil burner and don’t really want to relive the experience! Overall, we’ve been happy with the stove, but we’ve had several issues addressed …</summary><content type="html">&lt;p&gt;Prior to moving in our house, we replaced the old coil burner stove with a nice
fancy GE Profile Induction range - their PHS930SL2SS model. I grew up with a
coil burner and don&amp;rsquo;t really want to relive the experience! Overall, we&amp;rsquo;ve been
happy with the stove, but we&amp;rsquo;ve had several issues addressed under warranty -
mostly minor.&lt;/p&gt;
&lt;p&gt;Minor issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The convection fan&amp;rsquo;s nut came loose and it flew off while cooking - easy repair.&lt;/li&gt;
&lt;li&gt;The temperature probe and jack required replacement after some usage - easy repair.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;However, we have had one major issue with the stove &amp;ndash; &lt;strong&gt;while using the oven,
the induction burners on the left side will turn themselves on.&lt;/strong&gt; When this
happens, the burner controls for the misbehaving burners won&amp;rsquo;t work reliably. In
order to turn the burners off you have to engage the &amp;ldquo;lock mode&amp;rdquo; on the stove,
which has the unfortunate but understandable side effect of turning off the
oven. This has happened many times over the past year - and has persisted even
after a new control panel.&lt;/p&gt;
&lt;p&gt;A video of the issue occurring:&lt;/p&gt;
&lt;video width="320" height="240" controls&gt;
&lt;source src="https://bostonenginerd.com/images/inductionstove/stove.mp4" type="video/mp4"&gt;
Your browser does not support the video tag.
&lt;/video&gt;
&lt;p&gt;In the video, the burners pop on and off &amp;ndash; but we&amp;rsquo;ve also had them turn on and
set to a particular level. When this happens it&amp;rsquo;s difficult to turn them off
unless you use the &amp;ldquo;panel lock&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;We have noticed that this state is most likely to occur when we&amp;rsquo;re cooking food
which lets off moisture in the oven using convection mode - roasted potatoes are
a frequent culprit. Often times there will be a lot of steam which comes out of
the oven when you open it. There are ventilation holes on the left side of the stove
directly above the oven opening. Our theory is that this hot moist air comes up
through the ventilation holes and condenses on the backside of the control
panel. The condensed water droplets can cause phantom touches on the capacitive
touch screen.&lt;/p&gt;
&lt;p&gt;We contacted GE about this and have filed a report with the &lt;a href="https://www.cpsc.gov/" rel="external"&gt;Consumer Product
Safety Commission&lt;/a&gt; since this is dangerous - if there is a pan on the stove, it
could heat uncontrollably. Just before the holidays, GE Appliance (a division of
Haier) Corporate reached out. I provided them with all of our findings. It will
be interesting to see what they come back with in the New Year.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll update this post as new information comes.&lt;/p&gt;
&lt;h2 id="update"&gt;Update &lt;span class="timestamp-wrapper"&gt;&lt;span class="timestamp"&gt;&amp;lt;2021-01-23 Sat&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;GE Appliances got in touch with me a short while ago and they have replaced the stove with their latest production model free of charge. We haven&amp;rsquo;t had a chance to use it much yet - but it seems fine so far.&lt;/p&gt;
&lt;p&gt;The most interesting part about it is that the new &amp;ldquo;Air Fryer&amp;rdquo; mode requires a WiFi connection. It&amp;rsquo;s not clear why this is, as there are no extra sensors or anything like that used. It worries me that they could shut off whatever service it&amp;rsquo;s using in the future and brick that feature.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll try to put a more thorough review together sometime soon.&lt;/p&gt;</content></entry><entry><title>Chevy Volt Air Filter - The manual is wrong!</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/voltfilter/"/><id>https://bostonenginerd.com/posts/voltfilter/</id><published>2020-10-18T20:39:00-04:00</published><updated>2024-08-10T22:51:52-04:00</updated><summary>After our old Ford Fusion went for a swim in a rainstorm, we brought home a 2016 Chevy Volt. We’ve enjoyed driving the car over the past year. It’s a lot of fun to drive - and we really appreciate almost never needing to stop at a gas station. My wife likes the car as well.
We’re coming up on the …</summary><content type="html">&lt;p&gt;After our old Ford Fusion went for a swim in a rainstorm, we brought home a 2016
Chevy Volt. We&amp;rsquo;ve enjoyed driving the car over the past year. It&amp;rsquo;s a lot of fun
to drive - and we really appreciate almost never needing to stop at a gas
station. My wife likes the car as well.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;re coming up on the 45,000mi service checkpoint. In general, electic vehicles
don&amp;rsquo;t have much to maintain. At this checkpoint, GM suggests changing the engine
air filter and the passenger cabin air filter.&lt;/p&gt;
&lt;figure&gt;&lt;picture&gt;
&lt;source type="image/avif" srcset="/images/volt/volt_maintenence_hu_9575f44f5ca4fa24.avif 800w, /images/volt/volt_maintenence_hu_e9a59d0e81e8cc81.avif 1600w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;source type="image/webp" srcset="/images/volt/volt_maintenence_hu_a6d045e38d348c89.webp 800w, /images/volt/volt_maintenence_hu_4b4cc4f708932a0c.webp 1600w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;img src="https://bostonenginerd.com/images/volt/volt_maintenence_hu_24b95bab762c294d.png" srcset="/images/volt/volt_maintenence_hu_9efbab287b41cf26.png 800w, /images/volt/volt_maintenence_hu_24b95bab762c294d.png 1600w" sizes="(min-width: 46rem) 42rem, 100vw"
alt="2016 Volt Maintenance Schedule" width="1600" height="681"
loading="lazy" decoding="async"&gt;
&lt;/picture&gt;
&lt;/figure&gt;
&lt;p&gt;The usual first step in changing the air filter was to check the user manual.
According to the &lt;a href="https://my.chevrolet.com/content/dam/gmownercenter/gmna/dynamic/manuals/2016/Chevrolet/Volt/2k16volt1stPrint.pdf" rel="external"&gt;manual available from the Chevy website&lt;/a&gt;, the correct part
number is an AC Delco Part A3148C.&lt;/p&gt;
&lt;figure&gt;&lt;picture&gt;
&lt;source type="image/avif" srcset="/images/volt/volt_parts_hu_c49a62a909bbba60.avif 800w, /images/volt/volt_parts_hu_ac1a23fe5e76dfaa.avif 1600w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;source type="image/webp" srcset="/images/volt/volt_parts_hu_8b561e721a7e17b0.webp 800w, /images/volt/volt_parts_hu_c136f4d73027081f.webp 1600w" sizes="(min-width: 46rem) 42rem, 100vw"&gt;
&lt;img src="https://bostonenginerd.com/images/volt/volt_parts_hu_1082a167c2fc2697.png" srcset="/images/volt/volt_parts_hu_af7f7b43bc86322e.png 800w, /images/volt/volt_parts_hu_1082a167c2fc2697.png 1600w" sizes="(min-width: 46rem) 42rem, 100vw"
alt="2016 Volt Spare Parts List" width="1600" height="563"
loading="lazy" decoding="async"&gt;
&lt;/picture&gt;
&lt;/figure&gt;
&lt;p&gt;When I searched all of the typical automotive supply companies - AutoZone,
O&amp;rsquo;Reilly, RockAuto, they all showed a different part as the correct one. Digging
into this further, I found this thread on an online Volt forum. It turns out the
manual is incorrect. It seems that they never updated the manual
when they released the Gen2 car in 2016. &lt;strong&gt;The correct part is AC Delco A3217C&lt;/strong&gt;.&lt;/p&gt;
&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table (scrolls horizontally)"&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th class="num"&gt;Model Year&lt;/th&gt;&lt;th class="num"&gt;Generation&lt;/th&gt;&lt;th&gt;Air Filter Part&lt;/th&gt;&lt;th&gt;Cabin Air Filter&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td class="num"&gt;2012&lt;/td&gt;&lt;td class="num"&gt;1&lt;/td&gt;&lt;td&gt;AC Delco A3148C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2013&lt;/td&gt;&lt;td class="num"&gt;1&lt;/td&gt;&lt;td&gt;AC Delco A3148C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2014&lt;/td&gt;&lt;td class="num"&gt;1&lt;/td&gt;&lt;td&gt;AC Delco A3148C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2015&lt;/td&gt;&lt;td class="num"&gt;1&lt;/td&gt;&lt;td&gt;AC Delco A3148C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2016&lt;/td&gt;&lt;td class="num"&gt;2&lt;/td&gt;&lt;td&gt;AC Delco A3217C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2017&lt;/td&gt;&lt;td class="num"&gt;2&lt;/td&gt;&lt;td&gt;AC Delco A3217C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2018&lt;/td&gt;&lt;td class="num"&gt;2&lt;/td&gt;&lt;td&gt;AC Delco A3217C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="num"&gt;2019&lt;/td&gt;&lt;td class="num"&gt;2&lt;/td&gt;&lt;td&gt;AC Delco A3217C&lt;/td&gt;&lt;td&gt;AC Delco CF185&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;Considering how few parts are actually replaced during maintenence on the Volt,
I&amp;rsquo;m surprised they had the same misprint two years in a row! Moreover, this
isn&amp;rsquo;t documented in any errata that I could find. Of course, GM will
lean on the information in the manual to deny warranty coverage.&lt;/p&gt;
&lt;p&gt;Hopefully this post will save some time for someone out there!&lt;/p&gt;</content></entry><entry><title>Happy New Year!</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/happy-new-year-2019/"/><id>https://bostonenginerd.com/posts/happy-new-year-2019/</id><published>2018-12-31T23:39:00-05:00</published><updated>2024-08-10T22:51:52-04:00</updated><summary>Happy New Year to All!
We have a lot to be thankful for this year - loving family, good job, etc. There’s an awful lot wrong with the world, but there’s an awful lot that’s improving also. [1]
I’m looking forward to doing my part to keep the ship afloat for another year!
[1] …</summary><content type="html">&lt;p&gt;Happy New Year to All!&lt;/p&gt;
&lt;p&gt;We have a lot to be thankful for this year - loving family, good job,
etc. There&amp;rsquo;s an awful lot wrong with the world, but there&amp;rsquo;s an awful
lot that&amp;rsquo;s improving also. [1]&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m looking forward to doing my part to keep the ship afloat for another
year!&lt;/p&gt;
&lt;p&gt;[1] &lt;a href="https://www.csmonitor.com/World/Progress-Watch" rel="external"&gt;https://www.csmonitor.com/World/Progress-Watch&lt;/a&gt;
**&lt;/p&gt;</content></entry><entry><title>Paypal cutting off VPN services</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/paypal-cutting-off-vpn-services/"/><id>https://bostonenginerd.com/posts/paypal-cutting-off-vpn-services/</id><published>2016-02-06T00:06:00-05:00</published><updated>2024-08-10T22:51:50-04:00</updated><summary>I saw recently that Paypal would start blocking VPN and SmartDNS services. Their rationale is that VPN services can be used for copyright infringement.
They are correct in that VPN services can be used for copyright infringement – they can be used to shield your IP address from others and to make it …</summary><content type="html">&lt;p&gt;I saw recently that Paypal would start blocking VPN and SmartDNS
services. Their rationale is that VPN services can be used for
copyright infringement.&lt;/p&gt;
&lt;p&gt;They are correct in that VPN services &lt;em&gt;can&lt;/em&gt; be used for copyright
infringement &amp;ndash; they can be used to shield your IP address from others
and to make it appear that your traffic is coming from some other
location. However, this isn&amp;rsquo;t the only use of a VPN service. I use a VPN
service to shield my traffic from being intercepted and modified by my
local Internet providers.&lt;/p&gt;
&lt;p&gt;As an example, several years back, I stayed in the Fairmont SFO for a
work trip. The Fairmont is a beautiful hotel with very nice service.
Unfortunately their WiFi service insists on injecting advertising frames
into all of the non-SSL secured websites that you visit. I immediately
signed up for a VPN service to protect against this.&lt;/p&gt;
&lt;p&gt;Other providers have a history of similar behavior &amp;ndash; see the
&lt;a href="https://www.eff.org/deeplinks/2014/11/verizon-x-uidh" rel="external"&gt;VZW PermaCookie
scandal&lt;/a&gt; from a few years back. I&amp;rsquo;ve also heard that AT&amp;amp;T&amp;rsquo;s broadband
service is rolling out similar programs. From what I can tell, it seems
that your local ISP should be treated as a potentially hostile actor.&lt;/p&gt;
&lt;p&gt;Moreover if you&amp;rsquo;re using an open wireless access point, all your traffic
is being transmitted in the clear. Everyone can see what you&amp;rsquo;re
transmitting and what sites you are visiting. A VPN can also be used to
protect against this.&lt;/p&gt;
&lt;p&gt;My use of a VPN is to secure my Internet traffic from my local internet
provider &amp;ndash; either at my home or using the open WiFi at coffeeshops and
hotels, not for copyright infringement.&lt;/p&gt;
&lt;p&gt;I believe that PayPal is mistaken in this case &amp;ndash; VPNs have substantial
non-infringing uses and should not be shut down because some users use
them to pirate TV shows.&lt;/p&gt;</content></entry><entry><title>Letter to the White House regarding cryptography.</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/letter-to-the-white-house-regarding-cryptography/"/><id>https://bostonenginerd.com/posts/letter-to-the-white-house-regarding-cryptography/</id><published>2016-01-15T00:00:00-05:00</published><updated>2024-08-10T22:51:50-04:00</updated><summary>Back in December, Ed Felten and the White House asked for public comment on the EFF’s pro-cryptography petition. This is the letter that I had sent. I urge you to file a comment.
Dr. Felten and President Obama,
I strongly urge you to support the unfettered deployment of strong encryption without …</summary><content type="html">&lt;p&gt;Back in December, Ed Felten and the White House asked for &lt;a href="https://petitions.whitehouse.gov/response/we-want-hear-you-encryption" rel="external"&gt;public
comment&lt;/a&gt; on the EFF&amp;rsquo;s pro-cryptography petition. This is the letter
that I had sent. I urge you to file a comment.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dr. Felten and President Obama,&lt;/p&gt;
&lt;p&gt;I strongly urge you to support the unfettered deployment of strong
encryption without compromise or backdoors.&lt;/p&gt;
&lt;p&gt;The fact of the matter is that people have a right to be secure in
their persons, papers and effects. The UN Declaration of Human Rights,
to which the United States is a signatory specifies in Article 12 that
&amp;ldquo;No one shall be subjected to arbitrary interference with his privacy,
family, home or correspondence, nor to attacks upon his honour and
reputation.&amp;rdquo; In today&amp;rsquo;s world, strong encryption is a necessary
component to prevent arbitrary interference with our privacy and
communications &amp;ndash; by both state and commercial actors.&lt;/p&gt;
&lt;p&gt;At the end of the first Cryptowar in the late 1990s, we decided that
the risk of not deploying strong encryption outweighed any potential
of criminal usage. All the known ways of reducing the strength of
encryption algorithms have one intractable problem &amp;ndash; math has no way
to only allow the &amp;ldquo;good guys&amp;rdquo; to decrypt communication without
providing similar capability to the &amp;ldquo;bad guys&amp;rdquo; &amp;ndash; repressive nations
and criminals. None of these techniques work; smarter people than I
have been saying this for many years &amp;ndash; see the work by Bruce
Schneier, Matthew Green, and even you Professor Felton. As you pointed
out last March on the Freedom to Tinker blog, the FREAK attack shows
that we&amp;rsquo;re still dealing with the fallout of the weakened cryptography
of yesteryear. [1]&lt;/p&gt;
&lt;p&gt;Even assuming that there was some way to design a system in which the
state could retain access as needed, how does one determine who has
access? Is it only for the Five Eyes or NATO nations? Or will the
whole world have access? Despite NSA Director Rogers&amp;rsquo; assurance that
&amp;ldquo;we can work through this&amp;rdquo;, I&amp;rsquo;m not so sure.[2]&lt;/p&gt;
&lt;p&gt;Silent Circle&amp;rsquo;s Jon Callas pointed out a flaw in this: &amp;ldquo;We said in
public we would not tolerate bad people subscribing to our service,&amp;rdquo;
he said. &amp;ldquo;We also know that what that really means is really kind of
squishy. Let me give you an example: Let&amp;rsquo;s take the Dalai Lama. We
supply communications services to the government of Tibet. Is the
government of Tibet good guys or bad guys? We made the decision the
Dalai Lama is a good guy, but if you ask the Chinese, they&amp;rsquo;re bad
guys.&amp;rdquo; [3]&lt;/p&gt;
&lt;p&gt;The United States should be leading the charge for private
communications, not working to prevent this. Many politicians have
invoked the image of the &amp;ldquo;Shining City on a Hill&amp;rdquo; as a proxy for
American Exceptionalism. We should strive to live up to this dream
&amp;ndash; and not adopt the techniques of repressive nations for a
purported short term gain. The Snowden documents have shone a light
into a dark place. Let&amp;rsquo;s use this as an opportunity to live up to
the best images of ourselves.&lt;/p&gt;
&lt;p&gt;Thank you, Merry Christmas and Happy Holidays,&lt;/p&gt;
&lt;p&gt;1:
&lt;a href="https://freedom-to-tinker.com/blog/felten/freak-attack-the-chickens-of-90s-crypto-restriction-come-home-to-roost/" rel="external"&gt;https://freedom-to-tinker.com/blog/felten/freak-attack-the-chickens-of-90s-crypto-restriction-come-home-to-roost/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2:
&lt;a href="https://www.washingtonpost.com/news/the-switch/wp/2015/02/23/heres-how-the-clash-between-the-nsa-director-and-a-senior-yahoo-executive-went-down/" rel="external"&gt;https://www.washingtonpost.com/news/the-switch/wp/2015/02/23/heres-how-the-clash-between-the-nsa-director-and-a-senior-yahoo-executive-went-down/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3:
&lt;a href="http://www.csmonitor.com/World/Passcode/2015/1217/Tech-firms-push-back-on-reactionary-politics-following-terror-attacks" rel="external"&gt;http://www.csmonitor.com/World/Passcode/2015/1217/Tech-firms-push-back-on-reactionary-politics-following-terror-attacks&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</content></entry><entry><title>Vizio Privacy Policies</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/vizio-privacy-policies/"/><id>https://bostonenginerd.com/posts/vizio-privacy-policies/</id><published>2015-11-21T21:21:00-05:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>I recently came into possession of a nice new Vizio Smart TV. It’s pretty nice - 1080p, Netflix, etc. As part of the process for connecting the television to the internet, they made you agree to a number of different license agreements and privacy policies. In a fit of UX mastery, they did not show …</summary><content type="html">&lt;p&gt;I recently came into possession of a nice new Vizio Smart TV. It&amp;rsquo;s
pretty nice - 1080p, Netflix, etc. As part of the process for
connecting the television to the internet, they made you agree to a
number of different license agreements and privacy policies. In a fit
of UX mastery, they did not show the privacy and license agreements on
the television, instead instructing you to type a long URL into your
web browser and reading the policies there. Nevertheless, they
insisted upon your agreement before connecting to the Internet.&lt;/p&gt;
&lt;p&gt;For fun, I decided to look up the privacy polices that I was agreeing
to. There are some interesting bits there. The whole Vizio privacy can
be found &lt;a href="http://www.vizio.com/privacy/" rel="external"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;VIZIO, Inc. and its affiliates (&amp;ldquo;VIZIO&amp;rdquo; or &amp;ldquo;we&amp;rdquo;) respect your
privacy. Your privacy is a priority at VIZIO, and we take
responsible measures to protect it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Whew! I was really concerned that they didn&amp;rsquo;t care about my privacy!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This Privacy Policy also contains information on Smart
Interactivity, a feature on Internet-connected televisions that
recognizes onscreen content and may in the future permit you to
interact with this content. You have the option in your television&amp;rsquo;s
settings menu to disable this feature, which is set to &amp;ldquo;on&amp;rdquo; by
default. As part of Smart Interactivity, VIZIO may collect and use
anonymous viewing data associated with your television. VIZIO&amp;rsquo;s
collection and use of this viewing data is described below in the
Smart Interactivity Supplement to the Privacy Policy.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We turn on data gathering by default for your convenience!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;By accessing and using VIZIO products and services, you agree to
accept the terms and conditions of this Privacy Policy, and you
consent to our use and disclosure of the information collected by us
or submitted to us. You also acknowledge that you are aware that
this policy may change over time. The effective date of this Privacy
Policy is stated above.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We can change it whenever we want and if you don&amp;rsquo;t like it, you can&amp;rsquo;t
use your television.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;WHAT INFORMATION WE COLLECT Non-Personal or Anonymous Information.
Non-Personal or Anonymous Information. We also collect data in a
form that does not, on its own, permit direct association with any
specific individual. We consider this Non-Personal or Anonymous
Information. We may collect, use, transfer, and disclose
Non-Personal Information for any purpose. Examples of Non-Personal
Information we collect, use and share include the IP address you use
to connect your Internet-connected products, your ZIP code, the
online services you visit, as well as information about your VIZIO
product such as MAC addresses, product model numbers, hardware and
software versions, chipset IDs, and region and language settings. We
also collect information about the products you request or purchase,
the presence of other devices connected to your local network, and
the number of users and frequency of use of VIZIO products and
services. VIZIO also collects Anonymous Information regarding
customer activities on our websites, on Internet-connected products
and services, and on VIZIO&amp;rsquo;s Internet store.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We respect your privacy by collecting non-personal things like your IP
address, location, as well as the online services (websites?) you
visit! In addition, we portscan your network and send the information
back to our servers. Do they also index the filex you have shared on
your Samba server?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Cookies. VIZIO uses session and persistent &amp;ldquo;cookies&amp;rdquo; to collect
information when you visit VIZIO&amp;rsquo;s website or online store, and uses
pixel tags (also known as pixels or web beacons) to place and read
these cookies. A cookie is a small data file that VIZIO transfers to
your device and is stored locally on your device. Cookies are used
by thousands of websites in order to enhance the website
experience. When you visit VIZIO&amp;rsquo;s websites, we use cookies to
identify your device so that you do not have to re-register each
time you visit, and we use them to anonymously measure the traffic
to our site and its different services and features. We also
contract with third party service providers who use anonymous
cookies to tag visitors to our online store and website. These
cookies may be persistent, which means that they enable us to track
and target the interests of our users to enhance the experience on
our partners&amp;rsquo; websites. Persistent cookies remain on your local
storage for an extended period of time. If you have one of these
persistent cookies, you may see advertisements for our products
displayed on other publishers&amp;rsquo; websites which you visit. Your
browser contains features to help you manage cookies. You may remove
or prevent placement of cookies by following the directions provided
in your browser&amp;rsquo;s &amp;ldquo;help&amp;rdquo; file.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I guess this is fairly standard these days on websites. uBlock and
Privacy Badger seem to do a reasonable enough job of filtering out ads
on the Internet.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Viewing Data. As part of Smart Interactivity, VIZIO also collects
specific information relating to your viewing of content on
Internet-connected devices. This data is referred to as &amp;ldquo;Viewing
Data.&amp;rdquo; This collection of Viewing Data is described under the “Smart
Interactivity Supplement to the Privacy Policy“ below.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We watch what you watch. For your convenience.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Viewing Data. The use of Viewing Data, including Viewing Data
combined with IP addresses or Non-Personal or Anonymous Information,
is described under the &amp;ldquo;Smart Interactivity Supplement to the
Privacy Policy&amp;rdquo; below.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We combine that non-identifying data with the content that you watch for
some reason.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HOW WE PROTECT INFORMATION&lt;/p&gt;
&lt;p&gt;Protective Measures. VIZIO has implemented systems designed to
maintain the confidentiality of the Personal Information that it
collects. VIZIO maintains internal practices designed to protect the
security and confidentiality of this information by, among other
things, limiting employee access to and use of this
information. When you provide VIZIO with sensitive Personal
Information such as credit card numbers over the Internet, we
encrypt your transmissions using SSL (&amp;ldquo;Secure Sockets Layer&amp;rdquo;), and
other industry standard security technology. While no one can
guarantee the security of a website, Internet transmission, computer
system or wireless connection, we do employ common safeguards
intended to mitigate the risk of unauthorized access or disclosure
of the Personal Information we store or handle. We keep such
information on servers located in controlled facilities that are
protected by firewalls and employ other technical measures designed
to prevent intrusion or unauthorized access to our data centers. We
maintain written policies and procedures for the protection of the
Personal Information collected, stored, handled, or processed on our
systems. For employees with access to Personal Information, we
provide training to employees on privacy and data security.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We take security seriously! Just like Target.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HOW YOU CAN ACCESS OR REMOVE YOUR PERSONAL INFORMATION&lt;/p&gt;
&lt;p&gt;If you desire access to view, correct or remove your own Personal
Information, you may do so by emailing us at &lt;a href="mailto:privacy@vizio.com" rel="external"&gt;privacy@vizio.com&lt;/a&gt; or by
calling 877-698-4946. If you request removal of Personal
Information, you acknowledge that residual Personal Information may
continue to reside in VIZIO&amp;rsquo;s records and archives, but VIZIO will
not use that Personal Information going forward for commercial
purposes. VIZIO reserves the right to maintain your Personal
Information if VIZIO has suspended, limited, or terminated your
access to the VIZIO website or VIZIO products and services for
violating any applicable Terms of Use or the VIZIO Internet Apps
Software License Agreement. This paragraph does not apply to VIZIO&amp;rsquo;s
collection of Non-Personal or Anonymous Information.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;rsquo;ll try to call these guys one of these days and find out what data is
associated with my account.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;VIZIO.COM: DO NOT TRACK&lt;/p&gt;
&lt;p&gt;VIZIO does not knowingly track Personal Information about visitors
to VIZIO.com over different sites and over time, and it does not
enable third parties to do so, regardless of whether VIZIO detects a
do-not-track or similar signal from a visitor&amp;rsquo;s browser.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is at least good!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SMART INTERACTIVITY &amp;ndash; OVERVIEW&lt;/p&gt;
&lt;p&gt;Smart Interactivity is a feature on Internet-connected VIZIO
televisions that recognizes onscreen content. Currently, we only use
this feature to gather data on a non-personal or anonymous basis, as
described below. You have the option to turn this feature off at any
time directly from the menu of your television.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;!--quoteend--&gt;
&lt;blockquote&gt;
&lt;p&gt;However, in understanding this feature of your VIZIO television (and
your option to disable this feature), we also want you to know that
VIZIO is developing technologies that will permit you to interact
with content in a variety of ways. These interactions may include
voting in polls, accessing bonus content, and viewing advertisements
that match your interests, based upon your viewing behaviors. Only
some of these features (outlined below) are currently deployed,
however. This Privacy Policy may therefore be modified from time to
time as new features and functionality become available.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I am very glad that they&amp;rsquo;re willing to permit me to view advertisments
based on my viewing behavior!! I&amp;rsquo;ve turned this feature off.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;WHAT VIEWING DATA WE COLLECT&lt;/p&gt;
&lt;p&gt;For VIZIO televisions that have Smart Interactivity enabled, VIZIO
will collect data related to publicly available content displayed on
your television, such as the identity of your broadcast, cable, or
satellite television provider, and the television programs and
commercials viewed (including time, date, channel, and whether you
view them live or at a later time). This data is referred to as
&amp;ldquo;Viewing Data.&amp;rdquo; The Viewing Data collected by VIZIO is anonymous and
does not contain Personal Information. VIZIO does not collect
Viewing Data from televisions located outside the United States.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We track who your provider is, what you watch and when you watch it. And
we &lt;em&gt;totally&lt;/em&gt; don&amp;rsquo;t combine it with all that non-identifying information
that we talked about earlier!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Except where prohibited by law or policy, the Smart Interactivity
feature is turned on by default. However, at any time you may turn off
Smart Interactivity (and the associated collection of Viewing Data)
from the menu of your VIZIO television. Turning Smart Interactivity
off will not affect the performance of your VIZIO television or any
online services. For specific instructions on how to turn Smart
Interactivity off or on, see the text below under the heading “How to&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For your convenience, you&amp;rsquo;ve been opted into the fun!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HOW WE USE THE VIEWING DATA WE COLLECT&lt;/p&gt;
&lt;p&gt;VIZIO currently uses the Viewing Data collected from Smart
Interactivity for the following purposes:&lt;/p&gt;
&lt;p&gt;Beginning October 31, 2015, VIZIO will use Viewing Data together with
your IP address and other Non-Personal Information in order to inform
third party selection and delivery of targeted and re-targeted
advertisements. These advertisements may be delivered to smartphones,
tablets, PCs or other internet-connected devices that share an IP
address or other identifier with your Smart TV. VIZIO combines the
Viewing Data with IP address and other Non-Personal Information as
well as other non-personal information (such as demographic
information) it obtains from third parties in order to enhance, model
and further analyze the Viewing Data. VIZIO shares the Viewing Data
with media and data analytics companies as described below under the
heading &amp;ldquo;How We Share the Viewing Data.&amp;rdquo; VIZIO does not combine or
associate the Viewing Data with Personal Information.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We will figure out what phones and other computers that you&amp;rsquo;re using
on the same network and combine that with a bunch of data we get from
our &amp;ldquo;partners&amp;rdquo;. We then sell that bundle to ad networks who have been
tracking your device location and they use that information to sell
you stuff! Remember all that they collect is non-identifying, but
those ad networks sure as heck know who you are.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HOW WE SHARE THE VIEWING DATA&lt;/p&gt;
&lt;p&gt;VIZIO shares the Viewing Data in the aggregate with media and data
analytics companies who have a business need to analyze television
viewing behaviors in the aggregate. This analysis permits these
companies to make, for example, better-informed decisions regarding
content production, programming and advertising. VIZIO minimizes the
sharing of Non-Personal device identifiers such as IP addresses. In
most cases VIZIO hashes and replaces these identifiers before sharing
them with our media and analytics partners. When VIZIO shares IP
addresses with third parties, VIZIO imposes strict conditions of
confidentiality and use on such third parties.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;rsquo;ll just &lt;a href="http://arstechnica.com/tech-policy/2009/09/your-secrets-live-online-in-databases-of-ruin/" rel="external"&gt;leave this here&lt;/a&gt;. TL;DR, &lt;a href="https://www.cs.utexas.edu/~shmat/shmat_oak08netflix.pdf" rel="external"&gt;it&amp;rsquo;s not hard to deanonymize data&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;We also share Viewing Data to facilitate the display of tailored
advertisements on other devices. As of October 31, 2015, VIZIO will
share Viewing Data, together with the IP address associated with the
corresponding VIZIO television, with limited third parties with whom
we have specifically partnered. These third parties may combine this
information with other information about devices associated with that
IP address, in order to customize the advertisements displayed on
those other devices.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Your Netflix habits will follow you around. Watching too much Aqua Teen
Hunger force? Prepare for Cheetos advertisements.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;You always have the option to turn off the collection of Viewing Data
in your television&amp;rsquo;s settings menu. However, for a period of time you
may continue to see tailored ads on other devices that were targeted
on the basis of Viewing Data that was shared before you turned off
collection.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It&amp;rsquo;s going to be hard to verify if they&amp;rsquo;re not collecting this
information anyway and uploading it to the server.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;HOW WE PROTECT THE VIEWING DATA&lt;/p&gt;
&lt;p&gt;VIZIO first protects the Viewing Data by not combining or associating
the Viewing Data with Personal Information, even if VIZIO has
collected Personal Information from other sources, such as an online
purchase, account creation, or product registration. VIZIO also
protects the Viewing Data according to the same standards that it uses
to protect Personal Information and Non-Personal Information as
described above, including by requiring the third parties who analyze
or use the Viewing Data to employ reasonable security measures.&lt;/p&gt;
&lt;p&gt;Even though the Viewing Data does not contain Personal Information,
VIZIO encrypts the Viewing Data before transmission over the Internet.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Both of these are good things for sure! Unfortunately, as we&amp;rsquo;ve seen
in many other cases &amp;ldquo;anonymous&amp;rdquo; information is fairly easy to
deanonymize &amp;ndash; especially when you can correlate the IP addresses with
other data sources.&lt;/p&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;If I continue to use the &amp;ldquo;smart&amp;rdquo; features of this television, I will
have to setup some firewall rules so that it can&amp;rsquo;t see anything else
on my network. Currently it&amp;rsquo;s connected to an open access point and
only has access to the Internet and no ability to see other devices on
the network.&lt;/p&gt;
&lt;p&gt;Since I started writing this, &lt;a href="http://www.propublica.org/article/own-a-vizio-smart-tv-its-watching-you" rel="external"&gt;ProPublica has taken notice of the lousy
privacy policy&lt;/a&gt;. I recommend reading their analysis of Vizio&amp;rsquo;s SmartTV
program.&lt;/p&gt;</content></entry><entry><title>Notmuch of mail a setup Part 2 - notmuch and Emacs</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-2-notmuch-and-emacs/"/><id>https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-2-notmuch-and-emacs/</id><published>2015-11-21T00:00:00-05:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>In my previous post on this topic, I tried to detail the way that I fetch and send email using my laptop using a combination of mbsync and systemd. This has been working extremely well – it runs in the background and does the right thing when I am connected to the Internet. The only issue with this …</summary><content type="html">&lt;p&gt;In my previous post on this topic, I tried to detail the way that I
fetch and send email using my laptop using a combination of mbsync and
systemd. This has been working extremely well &amp;ndash; it runs in the
background and does the right thing when I am connected to the Internet.
The only issue with this setup is that I&amp;rsquo;ll occasionally need to clear a
lockfile out of the .msmtp-queue directory. This is quite rare, however.&lt;/p&gt;
&lt;p&gt;The nicest thing about using a Maildir to store your mail is that you
can act on the mail using a variety of different programs &amp;ndash; some folks
prefer using Mutt to read their mail, others prefer something else. Most
popular mail software on Linux seems to support storing things in
Maildirs &amp;ndash; with the apparent exception of Thunderbird.&lt;/p&gt;
&lt;p&gt;One of the killer features of Gmail when it came out was the ability to
quickly search through your email and to automatically tag it in
different ways. This was one of the things that I missed moving my email
to a local client &amp;ndash; Thunderbird didn&amp;rsquo;t particularly care for searching
through my 25GB mail archive. Enter
&lt;a href="https://www.notmuchmail.org" rel="external"&gt;Notmuch&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.notmuchmail.org" rel="external"&gt;Notmuch&lt;/a&gt; is a small piece of software
that wraps around the Xapian search library to index and search through
a large amount of data quite easily. The name comes from the fact that
the software doesn&amp;rsquo;t fetch your mail, send your mail or even really
index your mail &amp;ndash; i.e. it doesn&amp;rsquo;t do much.&lt;/p&gt;
&lt;p&gt;Notmuch really does a few things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Indexes your mail using Xapian&lt;/li&gt;
&lt;li&gt;Associates your mail with different tags &amp;ndash; similar to Gmail. The tags
are stored in the database.&lt;/li&gt;
&lt;li&gt;Help search through Xapian efficiently.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It doesn&amp;rsquo;t:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Get the mail.&lt;/li&gt;
&lt;li&gt;Write the mail.&lt;/li&gt;
&lt;li&gt;Send the mail.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That&amp;rsquo;s about it. It relies on other programs in order to actually do
anything with the mail.&lt;/p&gt;
&lt;p&gt;One important thing to note is that everything in Notmuch is a tag. The
actual folder structure of your emails doesn&amp;rsquo;t really matter &amp;ndash; all that
matters are the tags in the headers.&lt;/p&gt;
&lt;h2 id="getting-setup-with-notmuch"&gt;Getting setup with Notmuch&lt;/h2&gt;
&lt;p&gt;First things first &amp;ndash; pull your email onto your local device. I describe
a working setup &lt;a href="https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-1-mbsync-msmtp-and-systemd/"&gt;here&lt;/a&gt;. This setup includes
both pulling email off of the server and sending email through your SMTP
server.&lt;/p&gt;
&lt;p&gt;Next, you will want to install notmuch and GNU Emacs. I installed both
from my Linux distribution&amp;rsquo;s package manager. You will also want to
install a second script called
&lt;a href="https://www.github.com/teythoon/afew" rel="external"&gt;afew&lt;/a&gt;. Afew is a set of python
scripts that assist in tagging your email. I installed afew to my
~/.local/bin directory.&lt;/p&gt;
&lt;p&gt;You should setup the notmuch configuration file next. You can do this by
using the command &lt;code&gt;notmuch&lt;/code&gt;. This will walk you through a few
configuration steps where you need to identify your own email addresses.
I added all of the addresses that I&amp;rsquo;ve ever used since I tend to store
lots of email.&lt;/p&gt;
&lt;p&gt;After running the configuration wizard, you will want to edit the
&lt;code&gt;[new]&lt;/code&gt; mail configuration so that it reads:&lt;/p&gt;
&lt;h2 id="notmuch-config"&gt;.notmuch-config&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Configuration for &amp;#34;notmuch new&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# The following options are supported here:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# tags A list (separated by &amp;#39;;&amp;#39;) of the tags that will be
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# added to all messages incorporated by &amp;#34;notmuch new&amp;#34;.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# ignore A list (separated by &amp;#39;;&amp;#39;) of file and directory names
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# that will not be searched for messages by &amp;#34;notmuch new&amp;#34;.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# NOTE: *Every* file/directory that goes by one of those
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# names will be ignored, independent of its depth/location
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# in the mail store.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[new]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tags=new;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ignore=Trash&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This configures the &lt;code&gt;notmuch new&lt;/code&gt; command to read in and index all the
mail and apply the &lt;code&gt;new&lt;/code&gt; tag to it. We&amp;rsquo;re using this tag to let &lt;code&gt;afew&lt;/code&gt;
know what messages it needs to operate on.&lt;/p&gt;
&lt;p&gt;Next, you want to configure &lt;code&gt;afew&lt;/code&gt;. I&amp;rsquo;m using the following
configuration file:&lt;/p&gt;
&lt;h2 id="configafewconfig"&gt;~/.config/afew/config&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#default filter chain
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[SpamFilter]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[KillThreadsFilter]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ListMailsFilter]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[SentMailsFilter]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sent_tag = sent
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ArchiveSentMailsFilter]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Filter.1]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;message = &amp;#34;Facebook&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;query = &amp;#39;from:facebookmail.com&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tags = +facebook;+unread;-new
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Filter.2]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;message = &amp;#34;Spam&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;query = &amp;#39;from:&amp;#34;Global Who\&amp;#39;sWho&amp;#34; OR from:Touchfire OR from:Walk-inTub OR from:&amp;#34;Replacement Window&amp;#34;&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tags = +spam;-new
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Filter.3]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;message = &amp;#34;Get mailing lists out&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;query = &amp;#39;tag:lists&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tags = +unread;-new;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Filter.4]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;message = &amp;#34;Get mailing lists out&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;query = &amp;#39;to:geda-user@delorie.com&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tags = +lists/geda-user;-new;-inbox;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[InboxFilter]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Stepping through the file:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;SpamFilter - This filter looks throught the email headers for the
header &lt;code&gt;X-Spam-Flag&lt;/code&gt; which should be set by SpamAssasian or something
similar running on your email host. This tags the message as spam &amp;ndash;
hiding it from your searches.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;KillThreadsFilter - Kill new messages to previously killed threads.
Good for the ReplyAll chains from your Uncle about Obama.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ListMailsFilter - Look through the new messages and add a the name of
the list as a tag. Remove the item from your inbox. This is helpful
for high volume mailing lists so you can only check them when you want
to. This filter uses the &lt;code&gt;ListID:&lt;/code&gt; header in the email. I have noticed
that a large number of commericial mailing lists are using the
&lt;code&gt;ListID&lt;/code&gt; header to track their campaigns. This is a bit annoying and I
haven&amp;rsquo;t found a good way to fix it yet.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;SentMailsFilter - Tag all the email that I&amp;rsquo;ve sent to others. This
uses the &lt;code&gt;From:&lt;/code&gt; header.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ArchiveSentMailsFilter - removes the inbox tag from sent email.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[Filter.1] - tag emails from facebook and remove them from the inbox.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[Filter.2] - filter out some common spam that I receive. Our spam
detection isn&amp;rsquo;t working too well on my email host.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[Filter.3] - remove all mailing list messages from the inbox.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[Filter.4] - one mailing list that I subscribe to doesn&amp;rsquo;t set the
ListID header used by the ListMailsFilter. It uses &amp;ldquo;X-Mailing-List&amp;rdquo;
instead. It was faster to just detect these and remove them from the
mailbox than it was to do anything else.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The one thing lacking in the current setup is a way to move emails from
the Inbox to subfolders. Afew has a MailMover function, but I haven&amp;rsquo;t
been able it to get it working well. This is necessary to move unwanted
items to the trash. I&amp;rsquo;ve been using mutt periodically to move older
items into an archive folder and to the trash.&lt;/p&gt;
&lt;h2 id="get-the-mail-and-index-it-dot"&gt;Get the mail and index it.&lt;/h2&gt;
&lt;p&gt;Now that we have notmuch and afew to index and tag the email, it&amp;rsquo;s time
to automate the process. In the previous installment, we wrote a small
shell script to check the internet connection state, send queued email
and pull down new email. Let&amp;rsquo;s extend it to handle some new commands!&lt;/p&gt;
&lt;h2 id="localbincheckmail.sh"&gt;~/.local/bin/checkmail.sh&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#!/bin/sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;STATE=`nmcli networking connectivity`
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;if [ $STATE = &amp;#39;full&amp;#39; ]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;then
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ~/.local/bin/msmtp-runqueue.sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; mbsync nnytech
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; notmuch new
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; ~/.local/bin/afew -tn
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; notmuch tag -inbox tag:inbox AND tag:lists
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; exit 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;echo &amp;#34;No Internets!&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;exit 0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This script adds in some new commands to index new mail and to run afew
to tag the mail. In addition, we run notmuch again to remove all mailing
lists from the Inbox as they&amp;rsquo;re almost always not urgent.&lt;/p&gt;
&lt;h2 id="now-how-do-we-read-our-email-again"&gt;Now, how do we read our email again?&lt;/h2&gt;
&lt;p&gt;After spending all this time getting our email downloaded, indexed and
tagged we probably want to read our email. I&amp;rsquo;ve been using
&lt;a href="https://www.gnu.org/software/emacs/" rel="external"&gt;GNU Emacs&lt;/a&gt; a lot lately and had
read about the Notmuch Emacs client. The neat thing about Notmuch is
that it&amp;rsquo;s independent of the frontend that you read your mail with.
There are setups that work well with
&lt;a href="https://notmuchmail.org/notmuch-mutt/" rel="external"&gt;Mutt&lt;/a&gt; and even
&lt;a href="http://git.notmuchmail.org/git/notmuch/blob/HEAD:/vim/README" rel="external"&gt;Vim&lt;/a&gt; as
well as &lt;a href="https://notmuchmail.org/frontends/" rel="external"&gt;a number of other
clients&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I installed the latest version of the Notmuch frontend from the MELPA
Emacs package archive. &lt;a href="http://melpa.org/#/getting-started" rel="external"&gt;Getting
starting with MELPA is described here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Some .emacs.d/init.el-fu is required to get things working.&lt;/p&gt;
&lt;h2 id="dot-emacs-dot-d"&gt;.emacs.d&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;:::lisp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Load up Notmuch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(require &amp;#39;notmuch)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;; Setup some keybindings
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;; C-c m opens up Notmuch from any buffer
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(global-set-key (kbd &amp;#34;C-c m&amp;#34;) `notmuch)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Setup Names and Directories
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq user-mail-address &amp;#34;myemail@mydomain.tld&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; user-full-name &amp;#34;My Totally Real Name&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;; stores postponed messages to the specified directory
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq message-directory &amp;#34;MailLocation/Drafts&amp;#34;) ;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;set sent mail directory
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq notmuch-fcc-dirs &amp;#34;MailLocation/Sent&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Settings for main screen
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq notmuch-hello-hide-tags (quote (&amp;#34;killed&amp;#34;)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;A few commonly used saved searches.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq notmuch-saved-searches
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(quote
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;((:name &amp;#34;inbox&amp;#34; :query &amp;#34;tag:inbox AND -tag:work&amp;#34; :key &amp;#34;i&amp;#34; :sort-order oldest-first)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (:name &amp;#34;flagged&amp;#34; :query &amp;#34;tag:flagged&amp;#34; :key &amp;#34;f&amp;#34;) ;flagged messages
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (:name &amp;#34;sent&amp;#34; :query &amp;#34;tag:sent -tag:work&amp;#34; :key &amp;#34;t&amp;#34; :sort-order newest-first)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (:name &amp;#34;drafts&amp;#34; :query &amp;#34;tag:draft&amp;#34; :key &amp;#34;d&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (:name &amp;#34;mailinglist&amp;#34; :query &amp;#34;tag:lists/mailinglistID&amp;#34; :key &amp;#34;c&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (:name &amp;#34;all mail&amp;#34; :query &amp;#34;*&amp;#34; :key &amp;#34;a&amp;#34; :sort-order newest-first))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Message composition and sending settings
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Setup User-Agent header
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq mail-user-agent &amp;#39;message-user-agent)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq message-kill-buffer-on-exit t) ; kill buffer after sending mail)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq mail-specify-envelope-from t) ; Settings to work with msmtp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq send-mail-function (quote sendmail-send-it))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq sendmail-program &amp;#34;~/.local/bin/msmtp-enqueue.sh&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; mail-specify-envelope-from t
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;; needed for debians message.el cf. README.Debian.gz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; message-sendmail-f-is-evil nil
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; mail-envelope-from &amp;#39;header
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; message-sendmail-envelope-from &amp;#39;header)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Reading mail settings:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(define-key notmuch-show-mode-map &amp;#34;S&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (lambda ()
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;mark message as spam&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (interactive)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(notmuch-show-tag (list &amp;#34;+spam&amp;#34; &amp;#34;-inbox&amp;#34;))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(define-key notmuch-search-mode-map &amp;#34;S&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(lambda ()
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;mark message as spam&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (interactive)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (notmuch-search-tag (list &amp;#34;-inbox&amp;#34; &amp;#34;+spam&amp;#34;))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (next-line) ))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq notmuch-crypto-process-mime t) ; Automatically check signatures
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;Crypto Settings
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(add-hook &amp;#39;message-setup-hook &amp;#39;mml-secure-sign-pgpmime)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq epg-gpg-program &amp;#34;/usr/bin/gpg2&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;There was some problem with listing PGP keys in the Debian
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;;version of EPG. This magic from StackOverflow seems to resolve it.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(defun epg--list-keys-1 (context name mode)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(let ((args (append (if (epg-context-home-directory context)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (list &amp;#34;--homedir&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (epg-context-home-directory context)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#39;(&amp;#34;--with-colons&amp;#34; &amp;#34;--no-greeting&amp;#34; &amp;#34;--batch&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;--with-fingerprint&amp;#34; &amp;#34;--with-fingerprint&amp;#34;)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (unless (eq (epg-context-protocol context) &amp;#39;CMS)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#39;(&amp;#34;--fixed-list-mode&amp;#34;))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(list-keys-option (if (memq mode &amp;#39;(t secret))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;--list-secret-keys&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (if (memq mode &amp;#39;(nil public))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;--list-keys&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &amp;#34;--list-sigs&amp;#34;)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(coding-system-for-read &amp;#39;binary)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;keys string field index)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(if name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(progn
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (unless (listp name)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (setq name (list name)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (while name
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (setq args (append args (list list-keys-option (car name)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; name (cdr name))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (setq args (append args (list list-keys-option))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(with-temp-buffer
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (apply #&amp;#39;call-process
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (epg-context-program context)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; nil (list t nil) nil args)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (goto-char (point-min))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (while (re-search-forward &amp;#34;^[a-z][a-z][a-z]:.*&amp;#34; nil t)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(setq keys (cons (make-vector 15 nil) keys)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; string (match-string 0)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; index 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; field 0)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;(while (and (&amp;lt; field (length (car keys)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (eq index
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (string-match &amp;#34;\\([^:]+\\)?:&amp;#34; string index)))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (setq index (match-end 0))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (aset (car keys) field (match-string 1 string))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (setq field (1+ field))))
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; (nreverse keys))))&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="how-to-use-it"&gt;How to use it?&lt;/h2&gt;
&lt;p&gt;Load up emacs, press &lt;code&gt;C-c m&lt;/code&gt; and you&amp;rsquo;re off and running.&lt;/p&gt;
&lt;h2 id="next-steps"&gt;Next steps:&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;m still working on refining the setup. My next steps should include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Org-mode Capture integration&lt;/li&gt;
&lt;li&gt;Getting afew to actually move email out of my inbox.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="feedback"&gt;Feedback&lt;/h2&gt;
&lt;p&gt;If you have any feedback, please send me an email!&lt;/p&gt;</content></entry><entry><title>New SSL Certificate</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/new-ssl-certificate/"/><id>https://bostonenginerd.com/posts/new-ssl-certificate/</id><published>2015-11-03T21:21:00-05:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 My SSL certificate expired on 11/1. I replaced it with a new certificate today. The SHA256 fingerprint of the new certificate is: 27:88:83:BF:22:D3:55:62:1C:2D:26:B2:8B:C9:AD:32:E3:C2:A6:BD:B7:C8:41:53:F9:38:D8:C6:AA:63:88:B1 This is going to expire in …</summary><content type="html">&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Hash: SHA512
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;My SSL certificate expired on 11/1. I replaced it with a new
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;certificate today. The SHA256 fingerprint of the new certificate is:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;27:88:83:BF:22:D3:55:62:1C:2D:26:B2:8B:C9:AD:32:E3:C2:A6:BD:B7:C8:41:53:F9:38:D8:C6:AA:63:88:B1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;This is going to expire in February 2016. I will likely replace it
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;with one from [Let&amp;#39;s Encrypt](https://www.letsencrypt.org) by then.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----BEGIN PGP SIGNATURE-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;iQEcBAEBCgAGBQJWOUgKAAoJEKtJwDCg2HMhXj0H/icGRxNn7cnlFUlEZ4Y5hujc
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LlBOigcCT/A7HVmTSYq++7icj2J/XOw/CL2wVNok1oMe4KVT6VmLH3rs68BSzusB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;arGSFAz4Lu1MPPmBlmp2L3l2Gc8eWPzvfDS9S1pD0tO63ISVGAzj0rMwtMlogPV2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ePd/lOIuICU8tUpWxNRt8LLrsOfMNYzuTV+5a6NVQS8OUpck/k3x6cYCpujXhXi3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;APTT2o7s0VbvZP60iHZfMNzg6dQHEuywhmwmQuyyAy5LbefLyd+M8lN+4b/yzfw5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;XVUIHx1Y/k5h5x9IFP//o6Y4fCRgMs0xhIAGWo0JZrwd8aQijjQx22qy+jBvfdg=
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;=WjLO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----END PGP SIGNATURE-----&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content></entry><entry><title>Getting Rid of Comments</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/getting-rid-of-comments/"/><id>https://bostonenginerd.com/posts/getting-rid-of-comments/</id><published>2015-10-11T21:21:00-04:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>I’m disabling comments on this blog as of today. I’ve only received a small handful of comments in the year or so that this has been up – certainly not enough to justify the user needing to download over 1 megabyte of javascript from Disqus when they load the page.
Feel free to email me - john at …</summary><content type="html">&lt;p&gt;I&amp;rsquo;m disabling comments on this blog as of today. I&amp;rsquo;ve only received a
small handful of comments in the year or so that this has been up &amp;ndash;
certainly not enough to justify the user needing to download over 1
megabyte of javascript from Disqus when they load the page.&lt;/p&gt;
&lt;p&gt;Feel free to email me - john at johnbyrnes.info if you have any comment.&lt;/p&gt;</content></entry><entry><title>Getting the T-Mobile Jet (Huawei 366) USB Modem to work in Linux</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/getting-the-t-mobile-jet-huawei-366-usb-modem-to-work-in-linux/"/><id>https://bostonenginerd.com/posts/getting-the-t-mobile-jet-huawei-366-usb-modem-to-work-in-linux/</id><published>2015-09-21T21:21:00-04:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>I recently purchased a cheap T-mobile broadband USB stick for use with my Debian Linux laptop. The device is the T-Mobile Jet 2.0 – a rebranded Huawei UMG366.
After putting the SIM card in, I noticed that NetworkManager was unable to see the card. Some DuckDuckGo-ing led me to this Linux Mint forum …</summary><content type="html">&lt;p&gt;I recently purchased a cheap T-mobile broadband USB stick for use with
my Debian Linux laptop. The device is the T-Mobile Jet 2.0 &amp;ndash; a
rebranded Huawei UMG366.&lt;/p&gt;
&lt;p&gt;After putting the SIM card in, I noticed that NetworkManager was
unable to see the card. Some DuckDuckGo-ing led me to this &lt;a href="http://forums.linuxmint.com/viewtopic.php?f=53&amp;amp;t=119342" rel="external"&gt;Linux Mint
forum post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Apparently these sticks show up as a USB hard drive when you plug them
in. This lets them include the drivers with the stick. Ejecting the
drive activates the internet connection. You can use a piece of
software called usb\\_modeswitch to change the device mode.&lt;/p&gt;
&lt;p&gt;The last post in the aforementioned thread has basically the correct
step to take in order to get the device to work properly. Instead of
editing the system udev rule file, I added a new rule into
&lt;code&gt;/etc/udev/rules.d/41-huawei.rules&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Huawei E366 (T-mobile Wind)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ATTRS{idVendor}==&amp;#34;12d1&amp;#34;, ATTRS{idProduct}==&amp;#34;1446&amp;#34;, RUN+=&amp;#34;usb_modeswitch &amp;#39;%b/%k&amp;#39;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Speed tests were as follows using speedtest-cli from the Debian
repository:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Testing from T-Mobile USA (172.56.36.162)...
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Selecting best server based on latency...
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Hosted by Atlantic Metro (New York City, NY) [6.18 km]: 144.517 ms
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Testing download speed........................................
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Download: 3.92 Mbits/s
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Testing upload speed..................................................
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Upload: 0.91 Mbits/s&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This is a about 2x faster than Bluetooth tethering to my LTE
phone. The download speed from the Ookla app on my smartphone was
about 6Mbits/s. The HSPA+ speed from the dongle is perfectly
acceptable.&lt;/p&gt;</content></entry><entry><title>Internets on a Plane! (and service blocking)</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/internets-on-a-plane-and-service-blocking/"/><id>https://bostonenginerd.com/posts/internets-on-a-plane-and-service-blocking/</id><published>2015-08-16T23:53:00-04:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>I fly UA quite often and regularly get internet on my flights. The speed and connection quality is quite acceptable considering that we’re traveling through the air and talking through some satellites. The rate is also quite reasonable - $1.99/hr for the slow lane and $3.99/hr for the fast lane. …</summary><content type="html">&lt;p&gt;I fly UA quite often and regularly get internet on my flights. The
speed and connection quality is quite acceptable considering that
we’re traveling through the air and talking through some
satellites. The rate is also quite reasonable - $1.99/hr for the slow
lane and $3.99/hr for the fast lane.&lt;/p&gt;
&lt;p&gt;However, on my last two trips, the following things have been blocked:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;VPN access - I typically use a VPN when I travel to protect my
wifi traffic. As the access points are unencrypted, I prefer to
encrypt and route my traffic through a trusted host. It seems
that they’re blocking most of the gateways for my VPN provider.&lt;/li&gt;
&lt;li&gt;web.skype.com — Although I understand that you can’t really
support VOIP, text chatting over the Skype web interface should
be perfectly acceptable. I’d like to avoid installing Skype on
my nice Linux laptop.&lt;/li&gt;
&lt;li&gt;XMPP blocked - again, text chatting should be acceptable. TCP to
ports 5222 and 5223 are blocked.&lt;/li&gt;
&lt;li&gt;UDP to ports 60000+ is blocked. This means that I’m unable to
use MOSH to connect to my home servers. I often chat through
IRSSI + Bitlbee running on a server in my house.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I verified that in each case, the service I was trying to connect to
was up.&lt;/p&gt;
&lt;p&gt;Finally, I noticed that the feedback form was not protected by
SSL. This should be the default on every website these days.&lt;/p&gt;
&lt;p&gt;Overall the service gets a solid B. I was eventually able to find a
VPN host not on the block list and was then able to access all of the
necessary services.&lt;/p&gt;</content></entry><entry><title>GnuPG key update</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/gnupg-key-update/"/><id>https://bostonenginerd.com/posts/gnupg-key-update/</id><published>2015-02-21T21:21:00-05:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I mistakenly deleted the secret key material for my PGP signing and encryption subkeys. *facepalm* Please backup your keys. The master certification key was left unaffected. The updated key is here: - -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG …</summary><content type="html">&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----BEGIN PGP SIGNED MESSAGE-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Hash: SHA1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;I mistakenly deleted the secret key material for my PGP signing and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;encryption subkeys. *facepalm* Please backup your keys. The master
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;certification key was left unaffected.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;The updated key is here:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- -----BEGIN PGP PUBLIC KEY BLOCK-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Version: GnuPG v2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mQINBFSzQfcBEACki1rn6UOSYCsfD2L3vvZlZD1yIMKjQeG8edUxn9RdSA80jZ56
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;y35GMBrlGkd0jvUyRlNIbPMe/FuRNrKh2DadTfo0qGO9js9b3jnI27g9v6F6yp7A
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nTTAiXKvPVYN5qfjfTk14Go1X1arbHqX8o4wN0Xdh5osFZmqZuSynGQ/DVTE78Qa
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MENanBVgUqWHc/I1D/cH0cHAgBm2QNRhMrNXymb18TXJJgMDtGn5WQ/rX+Iajg+N
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ylifpcwajfLO+i90j/RxcSBOwCZORm8yUsHFjFGgcQV803Pmr10waDq++ZI5EOqv
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fZiIDH7MJfIblBHRj3fClGZcT3bhucy4LpRJ+SGvICXB2FcdZODN4h7tLJn1drtq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;I4mOk8TDOGqCeKtiNvX1oHTSR/STve8yvU5pjV8wifWOm4P1s9RbGmmxl1sAie5Q
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;6FFTIYguNOU2QJM/qAc9uJfSLrbcDvBJwPxEJMwqVwRxO3b2LB4sJnVX55jCJ698
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jvELtkpNWY/e8UFHfAiXlTHb58Y2T39Jz1OXGC9Xn3F/VLU9dF/Il/0fHxV01orV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;aCx8B/n6aa3HRWLijWZFCsiRIfCRCTVCokU1nDJAutRO4TZSVT7xh7hRd2yTkciI
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;GoGslzmlSb4PmcWc2q80CM1cgBGKZj3X7/ed4ftbfsf3AEo7UeAvrwTwlwARAQAB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tB5Kb2huIEJ5cm5lcyA8am9obkBubnl0ZWNoLm5ldD6JAj4EEwECACgFAlSzQ4gC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;GwEFCQlmAYAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEHWpBG/VobiuR0cP
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/AvBdrEmoLAW+9T0Nw28947Cout8991Dsbk0GbWOu+orE3xOe8Jui5LBYlfuLCo5
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uxphsUIoan5EA3EmcBtH+36gw997sEJS/HRwwrwMQJf/dL6tKrwVeqQqCf90124I
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rKpTm2KCGMZ6deZxqru7Pfphlm5buri2TqsaAd0rfTJQNDUxXejAJyzTuF3DHqcC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;DwJK/YsyBMBRN5GrRJaxK1tuO7jsgYjGF/nUOX1dKpT8K8oR2M0fUsLH7ra1fXxD
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ry5+BdUCYY1P47wMZLggFuPrKR0+4nGCBEm+6xXabwAPegK56X5sIEFaFvDrRFk1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PgqgBYKkMreL2QGUYTa3qFSbqE75PE8ffukC5UoQhvdPnKCezdNJ+gG7HT/YS23F
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;1piF5Q/2Gw/dq0E4yGKSxHrNsoaHKrddlrRsZnDvKFv0EkI/6QgsG8tUTfjmF5Gw
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;L960Sc16a67R94b1fGt8ObyoQJHNFTogZh1Zcc+/2clDuez0lQYPrAFN4Hc64wtQ
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Kvnw6RKbV5yI9Nw7vHe1NqfhNoBUjkxZFXTKSOI8Z7fZsjTbnATrKBbbY83BdvKk
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Qo4Zpn5yQcBiqKKqIAJsw/Yu3TDKpa1sKR3CfkLmeT7okVQPwinOVBm3K8Y6d1pH
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;v93yMcVs7NNTMt6ySS5vhmo95KMYKI9Gd77Vs2395ApPtGBKb2huIEJ5cm5lcyAo
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;S2V5IFN1cGVyc2VkZXMgRDU0RDZCQjQgYW5kIGFsbCBwcmlvciBrZXlzIGFzIG9m
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;IDIwMTUtMDEtMTEpIDxqb2huQGpvaG5ieXJuZXMuaW5mbz6JAhwEEAECAAYFAlSz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;QnUACgkQbYdJ3tVNa7QiSRAA17CmZnCFquePMDl5DNjRjSWt2czuCLBWIHP+mxMv
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;r+F0xC2hsjrt7e3oTZfxOg0lvbQ05LZBorXBCyqysQzir6zSo3KAZ2b6JUEk9LB0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;4FCzel2K2jQSveTgUmT/4yTCZByVqjmq+gMvI5Vwfr2rTvh+iWLt07Saeuu8EbjF
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;u7cGA47JlZo+beO6nu6Rhv6BjBqW8x0alPEF0xEh5j3lApPx9enRP23G3JCeeqtz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;7v12xDP/+5mPS4Dexq/QoY3nEZBquXTbohj6GVg44fchTQnidJuVNNRQWQk86Mlk
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/NJqbLrFrUJFvdi3j9AUiy7gtPKQC/KvD/WZGRLOxWWTX9US+KFHdMB7VFOjPMNu
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LJc3v9S7wfgjbWR86YVL6ziLoDuHlUYkeyuDqaSO5lqypxzQxuM7f6ZQVrRRCr1W
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fItgYH7WnmBMh7zFCsK9Dw4EX1kKoOUTD9YdpXjm591GATsKIhVimaTHXWjUbVrN
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ken98oG1PCp21pZ3kB45k4RceHVyJvohRwVNKlPM30i7kcwdVGNFOwNzAsGkEfnl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;9oEQuWRMN7AgHUKD+z5Ie2c8x7wdH31huBB3zAXDzowS4xYHN4m8U95pgoDCPaNv
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;6+eRvrnR3FDHlEb5OQeAm+3veyrhu6NrBKjigC8OHNFh04kCnL0lIc1vBDcHQYbP
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PxeJAj4EEwECACgFAlSzQfcCGwEFCQlmAYAGCwkIBwMCBhUIAgkKCwQWAgMBAh4B
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AheAAAoJEHWpBG/VobiuufYP/A9WXBLCPCUXLE+weEGG2J6VSKVsuKh4J4+B8YJ0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;4qS/puDBsOFj79j4KY0FYRpsOTG74vGl4ttFB1uoCnBWydi4PukM8yNhu/Jly8ow
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;NEeNyESCO4qv9mNs7LRtt4f/Bah3ERvWam+GTyTHART7+hzFiwu4Gt/Jucjn2tOp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;JyEFN3+5ZB449ddGMqgXuDiCEIb2VgBF6CngeN2LwEZQRLYlEibWwJAIBEjiL5CU
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;KAIH9mDDXRWPFZKFunsfuFKNM35rEV54PO0KEDG3s5NTzWYddUY5GXAimyMZaVjH
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wdXDg2X1wRdDvp9Fpv4YUUOtbyasJkiZxZ1i3NTLiFxrv9bkTqhkpQnx5JCfRL2p
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;vqoLQYvStXqHr0OKsO/ezbh3/KotTNMKr9MRzqIByz/rq4rKpN+j9l1rmsyegXsi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;TgTz7le1xgMogxC0wJ7ZizH7Xmwz6whS8+FvWmjEAi78kULwoP7x4UdoWLNofe48
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;K9l4ub0FjjQjswv2ztAq88WPDBrZFYNksB+fRMAHRihMED+Zq8WWIrsnquMmqAMW
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;73KimmaXW6Qm+KjCgFrUkt4Z766WFN6UmSWuKDT/m1nsh372BxQq3z1i4m/WzjU4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;R8deONc07w0wz2Ri2BEGatPR/A3Vj2um+uA80+jVL/8TPPP3DYMQjqlhsZRyXgqN
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uCajiQJBBBMBAgArAhsBBQkJZgGABgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;VLNEcwIZAQAKCRB1qQRv1aG4ruU8D/9V5xKzYg8L5lZhazbk+HEdhNQqYeUY3D9u
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;8/rd5XqSq+7ya6+/awOaYFotEx8RATcVfelgzOOICrkGocM38Kou+o/xBIvr9YgR
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;OdQioWa5yjcoU+qx2KcSxVFQ13yow1y8s5rVjkl9otJ8QrEhDevEy4a3vp3qgz4X
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;16Lw307hC1YLuhot5ZAFZHc0aaQOG0E+r4pwrNe/sgGtgm1yVt2lg+mztWMWrxga
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;b9BUeaMO/lj42INsk2pCuroIVxrNZu+1+UpYF9NukibWUtWXf4xeURwOxSTxglL8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;DROh/mnNNyuAVHWFSqcjS3Jd2ScFRBkFUVX20OiTcaB8ik+nwT+OpfqD65bLa3rb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;N5iTZxfY2Kv0hVBXO3KFYKmWJ55HhpmYX4md+O64JMK6NzMTrMFkFWRdGvJv50lu
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;K2b/b7XY88xctCQ8jmlerCMVy7RY+J/dhND8giVFDUFyYWebLeFAPGUWPMNTxXPt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Dmvmop22YEQR9ZlVd4+hXU8ufx/VbtEl90dvJ+bA9Gld8ZNoY1PxaMkA6qrR4B8G
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;NvwCCW1FMHrfOEQnMcwVEVkjxWPVYIqiCTvHNYSUeBR5Rbnwm+IiDE+uLuUBw1MB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;VX679NC+Sd0d+pAfhu5FLio16YVnz/NY6vF1nbIQ0oCNtPLsOrxQf7B2Hg7UtlRo
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ysz5fxXSirkBDQRUs0L3AQgA2GvvRuF5v4tfMhw7Czyv1jYWeMNa9dmY1KfgZL7d
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;l9/fIwgIPWZYWXTUVVHEpeDmktoNYcK6eTMkMWW96b9k/A0J3rzoeZf3LbdMB9qQ
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;VvyuSLlpkMgWEBUxSmi8/XUst13Ak6lbO8WQEGOlbRw14WL3h/a8Qkx4Sh8ux6si
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AYAYi0yOtSHAPnjbrMTMFZSmgzuG/Rn5ReYjv4cIXt0xPuIId6ppuub9Yu3p9GZE
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;jq3cxs2SseUOYktgRgw7CXkg2iMdQwX0tju0ESKluAu9whD32dr+dVeHYipXzWrq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ToQ5plIoXZFNEfBliSnksF74AJfiOcpBJ0RofkpAECEUhQARAQABiQJHBCgBAgAx
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;BQJU6KhRKh0CT3JpZ2luYWwga2V5IG1hdGVyaWFsIGxvc3QuIEZhY2VwYWxtLi4u
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LgAKCRB1qQRv1aG4rpztD/4xqhxwebzfBV+Z6ywNY4beSvvub10lR1UUr+XO4blr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;UUBlXJsVNt22t0BgWAgFvQulbpBGUHANQ2aZei8NTN2grFxySRqHe+YZrtR4W3cB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;U6TuFq5F0QfJ2hIBANZoPBNCwTBaypqASfEghdRZMdSNfS08NqUZdnQfnNSq5cY7
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RQ5Ez9RoDA/k8udwVd/+VaSBhcB/HL+/cqKuwvc6ucauEooMsdykCs/szWmFH16j
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;lc6XxPIUKyjByFoeW4lvI1wc7NQjGh+Q05TT7+ByAgRXwvE0q4yPrMaHPQhGB+1o
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;T96RELuwqlFT1avPfzSU+oG10ewFibfkJZKK7bwxpsbYIFgpPVPaFR5NT0f/HPul
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;FaX4kD3AVI6bTOIKE2Sa38glRnVpPUFFZHzwUago4wbZGHlGTV4KA2HDj/TenLRf
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;513ZNUr9jERbj8dLAaY9MsYUnzySZVkkY6468E0sbNqk1nPyQr05pRcSqZc+NEu8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;+ph8OvdTnqNJKQhPMQcfCrc0RbeyjsJ65CEWto0W+4YiiqCnVQVyHtn04wwZrnH7
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/jmF1nCTWEgkJC8VhsbBegu58PzGX3nhtF8xs/W8/2ru51+1VjibI125N9YGZrGq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xB7xPTLh9Aa0GwO5luoVo4vAJWiCIyulQSlGtYV1kM00G6fYtcxybNdJAsezpxJK
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;+4kDRAQYAQIADwUCVLNC9wIbAgUJAeEzgAEpCRB1qQRv1aG4rsBdIAQZAQIABgUC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;VLNC9wAKCRAmBd1Xa2fmE7geB/9FDPlU6e9vuMtbJHT0MDUDFRSRINdB/9D0syAN
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xRZrssXLkVgdc2G7nzoHPQLXfMBEM9RETMnh7+iRh8LLk1Py8Pmoqg6GfXefpdjX
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;XuHZxrMkPAoYUzrfb08hOe4B8HFnXdeHJU5V+SpUlvNiSPpRqApfY8KlbXAOKOvh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SPEA7yPXuOIKjj+HbcZXXGJtaptcplIISoXOMFVek6oeOVL5lCJpPhsboBM+WRx8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;gp1NyKlCs2EsUaQ7bsMYD7szAodUmA8WFAgbw5FGtWhdVECprjfi+VmRMToIueta
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uxeIU+WlxMcPAmTLUw+gi+bkeZWAxgeBZglBxoS7uuVSVdrL+AIP/RUhphwWSS4Z
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;6mp1Rd/+XqaBzfXwTwwZDmT0giQzn9q8UWBlU4P7ZkaYUEUZzg/DjBb6EjA/Nirm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PBX6+iI1MhKyS38xQX36rRMXPzjjOskqCeh6Mw1SQRnAAqXgS5jLDkZC5EesgAHX
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;gRFzGx/CgLh6svj/OhNSXLS4ZayDhryquwDuA8QFf6Z3s5ZTSOxKmqu8Ix91g5RI
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;qx8dXw2ulua36WT+y1cO4IJ+w0fmr+VAxXHUspDpqFv1Zw8MaoLcr2LKo10Vnmrm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;7W5II4ELTjrAX0HyaXg6f6aRjPBdcosmSfyWrGTOupu+6mYQVDMuow6MrgTxlGu/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Dl26RiDo2Z6PyzVeDgWIyUTzgNsaODsgkY7LjuU9GUtmsbQaT/7H6QuC6hlgfFJw
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;z41nhhZVHkpHhVBiusJnbvNIa5NYz2IcGEmXgKxNQI/hYnlkAl2+gUhlbEMW+kCb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Cq1HSiGV1Yits4snCymrFxFR6si+OPziZSJIj+q0HfMTLl9MLi81CS9TJxaOAu6l
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AHypFAv4+qpTpPv2YIZlT0u+r/i1Zg2+2d3Tf5lcqHaZhDCBJwWKxKau+hshE+gf
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;He/jowgi5r5Yl5ZLeDGs60kVWv4UfeXPqn38Rnq5HX716iKfVNY+FRrBwtcip8DQ
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;y5xx2pSszNyU+GbNS57mT+SfdjACuidsuQENBFSzQzABCADJp/PGkWj3Ont0I7Q+
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;JkSI6GYMxBIYB/I6llaP2517pJ2AixUxSXJcDreHlYJ7bKdUiRocBIhO7XL1ZYSw
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;1mlFoPaSl+QuHjcXTQ4GxewSTv1aZOyjd3Tyo70ghEB4QlhV66Q9+v8ZlW+hJrNB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;O62vpqFaupp/dtSm0ItP6oUrQ1xui14mLWZf0LzKA+yDm2xykRxpCme+mvzoLpdC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;TRHo3Y3DLp9tpIp3+LGPwK4SA3O/DXsjh3slauf05YgXGhnzodz0QguesPK2eOGM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;CKJ85ErUA1YROlBP3HG28yK1aZTmBSiolcghSg24W8O7jZIy05iKUpIx/umRK7tV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;44rhABEBAAGJAiUEGAECAA8FAlSzQzACGwwFCQHhM4AACgkQdakEb9WhuK6soQ//
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SwdYwgseFegVOZ/VnyMrsm4GW6SuIqMIo+tqhEFdvq6TLr7MoioO3I91Cl0nU51d
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ONWvSmMQ0aSWYqD00YanrMG/BdIov+/zxVEN2SjHwocvbFVhuwE6M8+1ufO5GizP
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/L0jvXFsUjJd9RfjqOKCfscoRLFxPj935J+QDkvr4XqTt0DsRmdghmHrCmZ/AXYt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rFdfkm0d+0DNnKt7ixcyYEvhXmcEbJPbXHyoKHUuvaN6eglc6HnxVVULAazhAluV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;m52o9/jyQMlT7y3rDS8+ZXUCSVHQDb4qcJH38KTGCXukJYFiFf3lWeqrdhT5NANv
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;+DxCw5F+9vv57rbzdUlS31P5OR+KcUNEkSfnCPDwMY5cJCe/ykrYkGX/rNSUGCNn
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;JvRVYAZLj3MxDcd5J9TKGn7dwKNn1s8hBOXHUMvW7YGR17u1fEVpbd9+fJSWCQMp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kby/F58Ozpcch5vMSj/9ddXtFCs9twlsGStnvz0UcDAci02Ux5j/Vmk1R6/MIqUK
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Dasw/mEJs3dRGcWPlg7n8ZgpzHiLnbutpEjqmfW+CCUlmElpS27WOxzW4rF+/m/n
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;JIp8biIwKl5Pz726TWAofD/vjD2u+li4MGe199xnlb0/CDTrvirZ4rTLY/fmUtK7
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;U/B1+c3Hr2EXU4C9BWzg5H7g9QPFa92llUOKCT1SoK6JAkcEKAECADEFAlToqFgq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HQJPcmlnaW5hbCBrZXkgbWF0ZXJpYWwgbG9zdC4gRmFjZXBhbG0uLi4uAAoJEHWp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;BG/Vobiu7aIQAJJPw5IVSG8pMfi3TON2st3GK2moFrw9QrlI/iTISnahnmh+igl/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;QL8HFdIi500yQOmgxzqJKlV8aPedw823SCkKYZPEvOK39Gfpds49/khObPbuk7vz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cjPSI1RisPvZmBfqVy/mH0EMbwGswdYJUNqK1QZEkXLhiXHahG2GfOkE/S38RbOV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kGevVSvbixMvDShU0OI9Ayw402sWMKG/flgH72mQ8vSDHxXMKn9tNDbq+ufrGD4/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;opeOzVbnYIvuJZhWaQw7FTacztisEmq50E6R1sxLpFX+D52FpJoFv/c6ONCV/+Wt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;NQ+QIUtJbYysJ3YvD2tLW2kA6+XDjwt0Go1GVaLiTVXy12ZEt6LX6cdpDNh6dSoz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tiirE2SXDY8v2t7P4PundkFdA/MAgSwO/Pmbs2+0aV1CDDN5A2qoqziF2dG91IDQ
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;eaS4UCxmoAgyS/xk5i/7MRc8jbPVV7mP3SQXREctNnQycjwgDAflQLLBCfUOBp16
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Wh1MPW7qaFl5cOGaUrVzUsFFezUOWp3Z3/iiKH2fYZL2EO7EicYVEqQ9+GWastJb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rlNSUhY3xcCUc7ELUOPanANfZrWDZ2/aRtdIqMHy9jlMsq8/SptLvw57pOnL2Obr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kd5bgvj/gYK+cXW6DF+W6ROOHvjrI5vcTPY940q/5DTAeckWKr7zEXfJuQENBFSz
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;XcMBCAC1hpUZjpmmPSPzr58mgELbV8unfXtJiulMMjaMs4qAuodxHfHz3Avuw509
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fSsj/x8owgrPUPuyXHe6AfIs3udcUFPzboNsTYMhYXdQJw8GnoXxg8rTX/BeQxX/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;IZYUYtKbbNjzJq8PYHFjOJHYNonaIuM7jW5IrqBaE1DnlQXGcuenJDeeeQC8kOZN
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;CvRc7FyT3lNxB7xXhPXLqmb7liZZNr1nqKSdwQZaMNezliucUPcGrnQoahIVtu1Z
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Zzh+2TRNi58TaTKy0FMRkKvU4bq3azatPI4kvNTVv1bHZ2krKy9Rmj86fJBCwLlo
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;7vNB1A86FaariSjWZsEIFAzpHpX3ABEBAAGJAiUEGAECAA8FAlSzXcMCGyAFCQHh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;M4AACgkQdakEb9WhuK6c3w//W4KaUafaibNkwp82bf0XL6AtYSQIAaJWZqx5PmDG
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;EuftKvYd+6l4PwJn1JKXDmdwCZ7E5gqVTc9uWRfOmLpwnYvzrrK9Fs3OQpti0Wsm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uF+GjxEue9BzamdVOgzHCd2ykMnAIKZU3TTtrBxkjB1ZytyDuCoWDAP24lT6uQn9
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mzroEVltYEq75WsqnooSjpc0ZxBSq8rxaFY7Knnl78g9G2P8R2fDSwMgljxwgbB3
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RDSvGSIj1Rb2OEOprlpWoBrFmR3iA5zg4GcbL+lRr3bTV3zCkNdLJ41NterFrm3L
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bh+6TX6YOXpz8l/wT2vIuiGvNe3m9728SLPZl3v/V0A2y340ZtWLVB5EL3XD88de
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;GvF4D1a4ulIo7K8V0XDtKS6LEsGYBSaw9gE5Rx85OexP9EYhyrh1RRZz1W0wX13V
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;lFsn44dKE1kLnThR4MbPRpE0Z/0WE9j7umrHzehFLO1oARCWlFKxjKtonSju0MAY
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;HIxNImOYuVIsxJscJHDy009tnIKaxTlevXKHmEU9sUHSoNzhANjmR83fnh8hTmgr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ZwQINj/7BrcHtgeLHFzXe90MwGvRrlgGRrbc9GwtlBwtjAzcb+vxatXHEwGiwICs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;o/+oxjPi+XI4KxxyQxZ4464e9cPowf+GoTFXwp7LcsK7Um5AY5QtuiZWWKVqWZAm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bweJAkYEKAECADEFAlToqFkqHQJPcmlnaW5hbCBrZXkgbWF0ZXJpYWwgbG9zdC4g
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RmFjZXBhbG0uLi4uAAoJEHWpBG/VobiuE7MP93ATTJFqq2JRNJsajicdpwbGuOnm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;9GuX5d+pNR7njcsxLYwa2aWrRAWh74/o4/61Grr5vHQbJaQSGG20EmMgIqLi8cUM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;kNMM3GNjTYy/D3hoA5L/uW3RTNYUBOflEIodjpLEw5Iho5Sin03z5uitkZQhJpJA
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uovzu1QwYYNwRHrVjdkZ/w4dhkeEnkMTb+D5Oc1bUIeIqPIMjs6KlXXqxx+KhHaF
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uzgg4FEbk/Xq9i69+6vQ/vauH1giQCk/d0LQcM/ewn0nEaF2JQkPWDx1wCZcccQ8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cBCQlV9DIsw8S7cNztizhqx3hzy/a8W7V3i6EY9Lyozp+o79cq+vCKyfg/lkbnj6
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;cU+B2V4WkrE5rd+hOA3OetM/+AOOdXloBC7kAb7qrl+HlvSwepQ8SuPuLiaE270f
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;EPDI698HXQiAHTOLwANeirOTBzx5V7NMjxufGaKQoyHg82uSn6bwqZEeUX4ibZ6y
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sWJRUG9VnbMO23/peT+eE0W4B/xr/Ytxiu6M/pifvq13RXFetZm87y7WXWfOD/2a
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;84RGRf/c2DOw8wOKw/9hT7WbqgCpbU0L4PuwfzYmG/EO/ENT0YODhNcBju5fc2JP
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;8dIOgnT5zrIAuWRpSSh65xUQPO6HDRVcLLfT9Q11LQIm7hR1W8wuOFZf7pFYSN0q
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;bN5X1O/09Ln/KFm5AQ0EVOioXwEIAMIs4joBabeUbK9CNT+/Ov122tme06r0u8hI
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LzDOxynqonnu8jODFXVXZeYoLzfpqdhOmOzIk9/N5ne6z+9KPXeU9lw3hRLDpbhH
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;4EiOpQmsKG7LAzF179fsvvuPMMF4ejI2q/woXpy197FeUQMmeS+o93aWqldmLCkh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;lkJETAi39QVQmtzZpxIGf8hm0cvUIow41tFKsMyfiwN9ZV2AToKR4DhgXVYnAmZS
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;0s8IeuDtA1y4N95LyuSO/CBGEkt+xSG0EsQJ0fMWxAIZvdM/+IBXmICsPMi4jg04
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;0NPDgidH6KZ7LxWPhLJF14vmBiOpdAWROTZo20DeNO77sBXy1rcAEQEAAYkDRAQY
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AQIADwUCVOioXwIbAgUJAeEzgAEpCRB1qQRv1aG4rsBdIAQZAQIABgUCVOioXwAK
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;CRCrScAwoNhzIX8lCACYS/+fn6WmuykSLIcX2D3iFiEPi2krJnkguvhbzCIDaE0T
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MBFnVruyPFf2mpi5n2oXYA7/3w9exqjEZGzFHP05TZaHpxBSY9Lv1zYog/qUTYJY
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ubbqj3KOAou6gqkiEI9Q8faMUREVsLA269m/0K2Aq9COA8QEKb89UCdB2J1962JJ
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;t2qzu7+9ju8rHW8QrG66KxnoZu68F/okM8bxEOXhIDDCmsBYfOpicV41x150NSwW
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;BFbIAu2DdzNGlEEFNf5v68dQgHGLqrX03sxq9uEJ+SHJJP31fpmVYXQTVgToC3s4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;oD8P8ITvoJGaeyuuU7h1xms3UvWL2TccCHY7LU/EOngP/0TweKs9s8GiEuRA0kaj
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;T4uIdatg3YLhWUkZ9dYEGDnePFQNiAbnTTavOCJ7KI38eeUwHMkL6UD1K6K948Wt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zSkijiUDliBdXcXbdhnYPpS6k13E682kaqlHckVvND1EMyIv9p5aEO/7DDO1Rznj
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ztGqGt2mXra3zPP0ABvp1OMn3pHMHytWf/dThmaa5KYe8l+ZR13TjxCj1+zzMnvs
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;xofQNod5RoO2eDdHyv6opI6d+Mzarf/jhHrdgZP0A1PPI6jqddzSfTPciCmO37g7
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;O+SoXlo98l99D9yiNsf+cueGurqq79qD8rH0/mMSuwYcHjjaQCo9svP2vkRQPuJT
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;b4E8ZJGthub/yYHn4KjUULTMd3dyxVNEEzwAL46HKXR8c+eaCTmcTmItblmhPIO4
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;3vinn8CsMcFss3gwl5BsFyef1kcOfQ8nvQXcf9YLWUxHwhbGosX3Qj+F6DIhQe2t
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zsUMjHPjBV+x27no+1kySBkMP1BX/qeQamd1BxKSIwVEEsJ35GSYfSiCadSKz0e0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;3lwzjVeIJ1//p7D4DdCJXXn5gZtmAG7qje+3RLuGexV8eMy8i4GdxA9Ca7B7OmEr
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;J4XUjLAI8TjltqSMzL9I8Abiqomz7YcrvR4z2UqfEAPKaUFT3o+9oACAM+RAw4ts
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;zU+PJi2gXOPIz9+4tS8I6BqOuQENBFToqH8BCADHJMrzdc0aJpnDO+NZFalF0MvY
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;iYTLsHaCoemXfSVKKGBBe0DpvGXmx/9bhgnejqEu/5RDLB4UbSXcZhaGcWIQeTlB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;LOJaUqAP8wQQk7yBf39am9ZnCSUYl8EaXH3Yvy6ap0CRHgwFTZ/lTJxab4VJpV3v
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;H58dtmJnBJuytkMDzVyYNFMZHNI8S/LwLyKKKnZVMvbup3MWIlwJmYYl6zGYyXIt
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uCZPDsY4uLxi+CwS0OTY9TVvFpF2pEMYUEmyGc6LWLEwdf7yNbnplknCHcpTItrT
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MwdUBk4FdOS8O4TtZtWB6M8XxH7QK+ORRQuGXaKte73/44LXz3ylbEFBFiP5ABEB
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AAGJAiUEGAECAA8FAlToqH8CGwwFCQHhM4AACgkQdakEb9WhuK52KhAApIhlWxpm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AgEGsYS1qKfZDS+s9F2m7wMAJmbTjEgHIQGz7RLO/H0vtUaofB7sr+3qWXFdeNdl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tEVEiWtui/En8GX/jxT8dRX+tB6gw9wZsITg/zpT6wi4GcVtZb80ggJL/PNeA56a
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;FQAQ2j1LNp+AAa13n9+6xPBZZmDEN3VlbmPh5SE8HQuVmb/7VcMpxF/vcjvwzU9i
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;7FyTvZjgsunADcL8c2tcJbTMr1H6V0T8p0ONSioongzV6zjVqCzbbJcnrTXjs5fg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ep2QKp4tlrfNs0By8wfNd9CSWS0g5zZZxBAPsJu9ZvRw6YAzDe0YOPIjuh4WWuPM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ZknMH3Y3CS/AuI7c5PuiwGe5R2rvNWfgyNiGuoflGNo/2UGYlmV9GLNTtojIXyDq
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;r6qYThqIwoZCDKaF1HbkpQIGUm2UWhsChyQ3CHjTa0EFjqaK4ouQf3jQX0FHXhO1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AN/OqjJF9sDg/Z5Ip1vHvBK11WkpxL+JzUIWOeGLCJ930DPe35F11C4xOGKggk4G
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;0NnZkF3eIeXnzzpO7s60u3voqN7mjoBul50H0xjMp4cpWRc0x0jtN7M7rVx0hM6W
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SI+o+AuizthmTBqPlxQslYIKDD38rJeTTJkE7xcelSa4Ot86/L1tpQwe7yPYbffW
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;BpGjgHybA5H97FlpNRZXHCwbRUYX8o60UwO5AQ0EVOiolAEIAMTidAKjv6icY7TC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Q21kHxmUV1eflLpZrH7C7B7kmXVLfdeM9MFWLIxOdueZa3cZvdygxL4uBs1cjwrX
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;7ALunTlN9sZVakl7jyA2qQU/LgYbahSrDqkaQ2qqeMfPnhEATn9hv+7U3OfdtnZ6
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SA9Kx2OmtUcbhHbSMjR5ls5OtNE3pBfhwKey2I4sqJfbXfty0QWMOGCFV/zW6LLT
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PrU+rYsWrJDfYhamX/ICIHL/XIlKudXLc4oX8uo8Yqb5TxhsxgeD1N1Sm5ZlgsIg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;U1cQjCoPyAHkRuFAEh5tFxSaO5pE92Py667vbj8FvtOjHu/eeWD/89lF9rcfpRlc
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;WhcdapcAEQEAAYkCJQQYAQIADwUCVOiolAIbIAUJAeEzgAAKCRB1qQRv1aG4rvPj
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;D/92Dj1wtWduRxDQteg1lPt/Fwo564O67lzknXGyjLqi9UGIc0gzfAA/SjfS1GjK
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;AZE4egPFAZDLnPcEfEnASAjH9OB3UXJOCVdQ8eiMl7GJfVuibOXlS/U1iow89v0X
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tCddK2RGx+eNHixXoOcRp5VatJI8V+knFfZaJP1gVh1OHnJGTpQDX0z8H4PJnFgI
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;CoS+QBtHjuOATfaqb+ljmZk9AMi0c4piXcL8cO/75wrjH5Q4imeQL0g7KQhoTAuV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Ajm4Bd1qQ1yEXMTRL48uvGTCDdUgzrMiD1atDuLfMYlxnVjJMUM7aHZDqwxBFGO+
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;+GMvBDcU/KeC5NZMYeWE4WubM4NyLnU8vYQe2vD4yrJDQj9hegY3uSbfKaNhdXnO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;v5q1xP3r+7KPf61JNUkTHD9Equlj4lHfiPGJlGATLI9QOrQjNBNratNonhWZ1ySM
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ot+A39hnloc8hqJIIIGM52m+rEJwoe0PDmw4G9WbTLGJPcdoBNAYEr/hOi64Xp8u
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tE/0LOy2ehTZ4GUjsu5j4Of5HEtZGWUb9/ye6Ngu7/NpLjd1a9CvysVoT2wM3A1U
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;gHJ5QJk14s4DlXLjDQe+RW+sQAD6RH5G/8xLelxOJbKD9uzg3xEO/0ZCjLuBi1Sg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;3VeNi3ekId4dWZiwF0qi9VL/617oz6oYeYPlMFazfYymSQ==
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;=V+iC
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- -----END PGP PUBLIC KEY BLOCK-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----BEGIN PGP SIGNATURE-----
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Version: GnuPG v1
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;iQEcBAEBAgAGBQJU6PnNAAoJEKtJwDCg2HMhQ4wH/A/fxoPpQjxhWmLViNAwhe56
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;k+xQPMLI4wAQLGGVSnBgTeU28T+/NU+lS9+F7lNBqTQGWfwgTpe5+KnKzVsdN0nR
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;40sGb8t3/D6u5WH5xxmocyzT4l3OneD8SKqL6tn+G7HkiKLW22sjr5ogmQJ8mA3O
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;inFHQMBogeoMFKLnCfAONpfudyPagsTqxl40wQ5A+L5txEpIWFC5owFJcTBPYXlV
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ytmpJcA0GOqNLQXVIAyq/XZEj19tEThiNJ2PZ6dtV1uQhjeixJIM7PkiawlSW9Do
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;5vHqWcNa88aCpfzdisnXPkLlPITqOFmPyajSyzLA+3HitHSpx+s8EGSero4I9C0=
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;=NWqO
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-----END PGP SIGNATURE-----&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content></entry><entry><title>Notmuch of a mail setup Part 1- mbsync, msmtp and systemd</title><link rel="alternate" type="text/html" href="https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-1-mbsync-msmtp-and-systemd/"/><id>https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-1-mbsync-msmtp-and-systemd/</id><published>2015-01-16T21:21:00-05:00</published><updated>2024-08-10T22:51:51-04:00</updated><summary>Overview# Some months back, I discovered the Notmuch mail reader. It’s a pretty sweet piece of software based on Xapian to index and tag your mail. As of today, the email setup described here has displaced my Google Apps hosted Gmail for my personal domain. My goal here is to document how I’ve setup …</summary><content type="html">&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;Some months back, I discovered the &lt;a href="http://notmuchmail.org/" rel="external"&gt;Notmuch&lt;/a&gt;
mail reader. It&amp;rsquo;s a pretty sweet piece of software based on Xapian to
index and tag your mail. As of today, the email setup described here has
displaced my Google Apps hosted Gmail for my personal domain. My goal
here is to document how I&amp;rsquo;ve setup my mail workflow.&lt;/p&gt;
&lt;p&gt;As it says in the name, Notmuch is not much of a mail client. It doesn&amp;rsquo;t
get any mail, send any mail, or even display any mail. All it does is to
provide an interface to a Xapian index for your mail. We need to provide
other software that will help us handle the other pieces.&lt;/p&gt;
&lt;p&gt;On one of my computers I&amp;rsquo;m using Arch Linux. I&amp;rsquo;ve tried just about every
Linux distribution in the past fourteen years and have found Arch to be
a pretty good sweet spot for a workstation. The distro has stabilized in
recent years and a system upgrade seems to be less likely to completely
bork your computer. I prefer debian stable on the server since it&amp;rsquo;s so
well tested. The instructions here might be a bit Arch-Centric. I&amp;rsquo;m
going to discuss sending and receiving mail before discussing how to
configure Notmuch. Sending and receiving mail are critical for just
about every GNU/Linux mail client and most of this should be generally
applicable.&lt;/p&gt;
&lt;h2 id="getting-the-mail"&gt;Getting the mail&lt;/h2&gt;
&lt;p&gt;My mail lives on an IMAP server somewhere in cloud-land. I&amp;rsquo;ve had an
account on this machine for several years, but I&amp;rsquo;ve recently forwarded
all of the mail for my domains to this server. There are several good
IMAP clients these days that will synchronize the mail from your local
computer with your mail on the IMAP server.&lt;/p&gt;
&lt;p&gt;Among the ones that I&amp;rsquo;ve tried in the past are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.fetchmail.info" rel="external"&gt;Fetchmail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://pyropus.ca/software/getmail/" rel="external"&gt;Getmail&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://offlineimap.org" rel="external"&gt;OfflineIMAP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://isync.sourceforge.net/" rel="external"&gt;MBsync&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;My mail setup requires the use of STARTTLS, so Getmail and OfflineIMAP
are out of the question. They both support STARTTLS, but they&amp;rsquo;re using a
Python library that doesn&amp;rsquo;t perform any verification of the certificate.
This leaves me open to a MITM attack where someone upstream can present
a fake certificate and proxy my traffic. I ended up using MBSync to
fetch my mail from the server.&lt;/p&gt;
&lt;p&gt;The documentation for MBSync is pretty terse, but there&amp;rsquo;s a
&lt;a href="https://wiki.archlinux.org/index.php/Mbsync" rel="external"&gt;nice page at the
ArchLinux wiki.&lt;/a&gt;. I&amp;rsquo;ve included a configuration file that works for my
needs.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; =~/.mbsyncrc= ##
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Address to connect to
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Host mail.servername.info
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Port 143
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;User BostonEnginerd
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PassCmd &amp;#34;gnome-keyring-query get servername\\_mail&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SSLType starttls
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SSLVersions TLSv1.2
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SystemCertificates no # The following line should work. If get
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;certificate errors, uncomment the two following lines and read the
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&amp;#34;Troubleshooting&amp;#34; section.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;CertificateFile ~/.cert/mail.servername.pem
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;IMAPStore servername-remote
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Account servername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;MaildirStore servername-local
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# The trailing &amp;#34;/&amp;#34; is important
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Path ~/.mail/servername/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Inbox ~/.mail/servernamw/Inbox
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Channel servername
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Master :servername-remote:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Slave :servername-local:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Patterns *
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Automatically create missing mailboxes, both locally and on the server
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Create Both
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Save the synchronization state files in the relevant directory
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;SyncState *&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;You will need to get the ssl certificate from your server. If it&amp;rsquo;s a
&amp;ldquo;real&amp;rdquo; SSL certificate signed by a CA, including the CA certificate
should be sufficient. If it&amp;rsquo;s self-signed, it&amp;rsquo;s easiest to get the
certificate from the server and save it to a file. The commandline
openssl command can do that for you:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;openssl s_client -starttls imap -connect some.imap.server:port -showcerts&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I just copied and pasted from the &amp;mdash;&amp;mdash;-BEGIN CERTIFICATE&amp;mdash;&amp;ndash; to the
END CERTIFICATE line into a file and referred to that in the
configuration.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m using the gnome-keyring-daemon to store the mail password so it&amp;rsquo;s
not sitting on my hard disk in plaintext. There&amp;rsquo;s a program in the AUR
called &lt;code&gt;gnome-keyring-query&lt;/code&gt; which allows you to interact with the
keyring on the command line. The &lt;code&gt;get&lt;/code&gt; command gets the requested key.
There is a &lt;code&gt;set&lt;/code&gt; command as well for storing a password. One of these
days, I might try to setup something that uses a certificate to
authenticate the client.&lt;/p&gt;
&lt;h2 id="sending-the-mail"&gt;Sending the Mail&lt;/h2&gt;
&lt;p&gt;The second most important thing that a mail client can do is send mail.
I&amp;rsquo;m using the SMTP server on my host, again using STARTTLS. To send the
mail, I decided to use a program called &lt;code&gt;msmtp&lt;/code&gt; which implements a small
send-only smtp client. The ArchLinux wiki has a
&lt;a href="https://wiki.archlinux.org/index.php/Mbsync" rel="external"&gt;nice tutorial on using
this also&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;After installing msmtp, you need to configure it. A working config file
is below:&lt;/p&gt;
&lt;h3 id="msmtprc"&gt;&lt;code&gt;~/.msmtprc&lt;/code&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Set default values for all following accounts.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;defaults
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tls on
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tls_starttls on
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;tls_fingerprint AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:AA:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;logfile ~/.msmtp.log
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# A freemail service
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;account myserver
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;host my.server.tld
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;port 9000
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;from bostonenginerd@myserver
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;auth on
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;user myname
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;passwordeval gnome-keyring-query get myserver.smtp
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# A second mail address at the same freemail service
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;account myotheraccountname : myserver
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;from myname@myotherdomain
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Set a default account
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;account default : myserver&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I get the TLS fingerprint from the server using the &lt;code&gt;openssl s_client&lt;/code&gt;.
Again, I&amp;rsquo;m using the gnome-keyring to store the passwords encrypted on
the disk.&lt;/p&gt;
&lt;p&gt;Once msmtp is working you can send mail when your computer is online.&lt;/p&gt;
&lt;p&gt;A nice feature would be to queue messages when the network connection is
down and send them when you come back online. Fortunately recent
versions of msmtp come with a queue management script. On Arch, there
are two included. I&amp;rsquo;m using the one called &lt;code&gt;msmtpqueue&lt;/code&gt; which includes
three scripts - &lt;code&gt;msmtp-enqueue.sh&lt;/code&gt;, &lt;code&gt;msmtp-listqueue.sh&lt;/code&gt; and
&lt;code&gt;msmtp-runqueue.sh&lt;/code&gt;. These scripts pretty much do what they say. Copy
them to somewhere in your path.&lt;/p&gt;
&lt;p&gt;Using the scripts requires that you have a directory called
&lt;code&gt;~/.msmtpqueue&lt;/code&gt;. The email will be stored in this directory when you use
the msmtp-enqueue.sh command in your mail client. To send all the mail,
you can use the msmtp-runqueue.sh script when you&amp;rsquo;re connected to the
internet. In the past, I&amp;rsquo;ve had problems sending too many messages too
quickly. If you encounter this, you can put a sleep command in the
msmtp-runqueue.sh script.&lt;/p&gt;
&lt;h2 id="sending-and-receiving-automatically"&gt;Sending and Receiving Automatically&lt;/h2&gt;
&lt;p&gt;Now that we&amp;rsquo;re able to receive and send mail from the command line, it
would be good to automate the process. I put together a hacked up script
that checks if we&amp;rsquo;re connected to the Internet, sends all of the mail
sitting in the queue and pulls in new messages. &lt;code&gt;nmcli&lt;/code&gt; interacts with
the NetworkManager daemon to query the state of the internet connection.
Possible answers are &lt;code&gt;none&lt;/code&gt;, &lt;code&gt;portal&lt;/code&gt;, &lt;code&gt;limited&lt;/code&gt; and &lt;code&gt;full&lt;/code&gt;. We only
want to go through the trouble of trying to send messages when we have
full connectivity.&lt;/p&gt;
&lt;h3 id="scriptscheckmail.sh"&gt;&lt;code&gt;~/scripts/checkmail.sh&lt;/code&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;#!/bin/sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;STATE=`nmcli networking connectivity`
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;if [ $STATE = &amp;#39;full&amp;#39; ]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;then
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; /usr/local/bin/msmtp-runqueue.sh
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; mbsync -qq accountname
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; exit 0
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;echo &amp;#34;No internet connection.&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;exit 0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now that we have this together, it would be awfully nice if my computer
would run this script periodically. There are two ways to do this now.
One way is to use cron. This is the standard way to accomplish something
like this.&lt;/p&gt;
&lt;p&gt;I thought that I would take the opportunity to play with what seems to
be the new init system for major Linux distributions &amp;ndash; systemd. I
haven&amp;rsquo;t really been following all the drama surrounding this project,
but it&amp;rsquo;s the new init system for Arch, Debian and Fedora. I&amp;rsquo;ve noticed
that computers with systemd tend to boot substantially faster than the
initV based systems. I was inspired to do this based on a blog post that
&lt;a href="http://joeyh.name/blog/entry/a_programmable_alarm_clock_using_systemd/" rel="external"&gt;Joey
Hess&lt;/a&gt; wrote to document building himself an alarm clock with systemd.&lt;/p&gt;
&lt;p&gt;I wanted to check for new mail and send old mail every fifteen minutes.
To do this requires that I create two files &lt;code&gt;checkmail.service&lt;/code&gt; and
&lt;code&gt;checkmail.timer&lt;/code&gt; in the &lt;code&gt;~/.config/systemd/user&lt;/code&gt; directory.&lt;/p&gt;
&lt;h3 id="checkmail.service"&gt;&lt;code&gt;checkmail.service&lt;/code&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Unit]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Description=check mail
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RefuseManualStart=no
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RefuseManualStop=yes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Service]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Type=oneshot
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ExecStart=/home/bostonenginerd/scripts/checkmail.sh&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This file defines what the service does. &lt;code&gt;Type=oneshot&lt;/code&gt; indicates that
this is not a daemon and will just run and exit. Setting the
&lt;code&gt;RefuseManualStop=yes&lt;/code&gt; variable will make &lt;code&gt;systemctl&lt;/code&gt; unable to stop the
service. In this case, that&amp;rsquo;s fine because the script will teriminate
when it&amp;rsquo;s done running. Now we need to setup the schedule for running
the job.&lt;/p&gt;
&lt;h3 id="checkmail.timer"&gt;&lt;code&gt;checkmail.timer&lt;/code&gt;&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Unit]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Description=Check Mail every fifteen minutes
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RefuseManualStart=no
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;RefuseManualStop=no
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Timer]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Persistent=false
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;OnBootSec= 5min
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;OnUnitActiveSec= 15min
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Unit=checkmail.service
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[Install]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;WantedBy=default.target&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In this file, we&amp;rsquo;re setting &lt;code&gt;RefuseManualStop=no&lt;/code&gt; because this will be a
long running service which we will can terminate at some point. In the
&lt;code&gt;[Timer]&lt;/code&gt; section, we set &lt;code&gt;OnBootSec&lt;/code&gt; to five minutes. This means that
the checkmail.service job will not run until five minutes after the
computer boots up. I put this in to wait some time for a network
connection to come up before trying to get the mail. The
&lt;code&gt;OnUnitActiveSec&lt;/code&gt; variable control the time delay in between repeats of
the job. Here it&amp;rsquo;s set to 15 minutes, but could be set for any interval.&lt;/p&gt;
&lt;p&gt;To start the timer, you should type
&lt;code&gt;systemctl --user start checkmail.timer&lt;/code&gt;. Using the command
&lt;code&gt;systemctl --user status checkmail.timer&lt;/code&gt; will allow you to see if the
timer was successfully started. To start the timer automatically, issue
the &lt;code&gt;systemctl --user start checkmail.timer&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;Another neat command is &lt;code&gt;systemctl --user list-timers&lt;/code&gt;. This will list
all of the timers that you have active and how long until they&amp;rsquo;re
triggered again. Neat stuff. Systemd is pretty clever.&lt;/p&gt;
&lt;p&gt;Ideally we could simplify our script and add a systemd dependency to the
service that requires that the internet be active before running the
script. I&amp;rsquo;d love to hear any ideas on how to do that, or how to do this
more efficiently.&lt;/p&gt;
&lt;h2 id="end-part-1"&gt;End Part 1&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ll finish up the Notmuch specific portions of my email setup at a
later date.&lt;/p&gt;</content></entry></feed>