<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MRo Blog &#187; T-Mobile</title>
	<atom:link href="http://blog.mro.name/tag/t-mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mro.name</link>
	<description>Marcus Rohrmoser mobile Software</description>
	<lastBuildDate>Wed, 23 Jun 2010 11:32:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>T-Mobile / MMS / iPhone</title>
		<link>http://blog.mro.name/2010/01/t-mobile-mms-iphone/</link>
		<comments>http://blog.mro.name/2010/01/t-mobile-mms-iphone/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 08:25:50 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Artikel auf deutsch]]></category>
		<category><![CDATA[seenontheweb]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MMS]]></category>
		<category><![CDATA[T-Mobile]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=1678</guid>
		<description><![CDATA[klick ich den Link, den T-Mobile mir per SMS geschickt hat, kriege ich:]]></description>
			<content:encoded><![CDATA[<p>klick ich den Link, den T-Mobile mir per SMS geschickt hat, kriege ich:</p>
<div id="attachment_1679" class="wp-caption alignnone" style="width: 330px"><img class="size-full wp-image-1679 " title="T-Mobile Scherz" src="http://blog.mro.name/wp-content/uploads/2010/01/IMG_1318.png" alt="T-Mobile Scherz" width="320" height="480" /><p class="wp-caption-text">T-Mobile Scherz</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2010/01/t-mobile-mms-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-Mobile Rechnungen auspacken und umbenennen</title>
		<link>http://blog.mro.name/2009/11/t-mobile-rechnungen-auspacken-umbenennen/</link>
		<comments>http://blog.mro.name/2009/11/t-mobile-rechnungen-auspacken-umbenennen/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:50:19 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Artikel auf deutsch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[GnuPG]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[T-Mobile]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=1354</guid>
		<description><![CDATA[über T-Mobile RechnungOnline kann man sich die Rechnung als gpg-verschlüsselten Anhang per Mail schicken lassen &#8211; incl. Einzelverbindungsnachweis. Und obwohl&#8217;s nur 1x im Monat kommt, ist das Auspacken und Umbenennen in sinnvolle Dateinamen eine lästige Routinearbeit. Also &#8211; automatisieren. Das folgende Ruby-Script erledigt das, nachdem der Rechnungsanhang in einen der Ordner &#8220;Downloads&#8221; oder &#8220;Desktop&#8221; gelegt [...]]]></description>
			<content:encoded><![CDATA[<p>über <a href="http://www.t-mobile.de/faq/1,1951,18-_,00.html">T-Mobile RechnungOnline</a> kann man sich die Rechnung als <a href="http://www.gnupg.org/">gpg</a>-verschlüsselten Anhang per Mail schicken lassen &#8211; incl. Einzelverbindungsnachweis. Und obwohl&#8217;s nur 1x im Monat kommt, ist das Auspacken und Umbenennen in sinnvolle Dateinamen eine lästige Routinearbeit.</p>
<p>Also &#8211; automatisieren. Das folgende Ruby-Script erledigt das, nachdem der Rechnungsanhang in einen der Ordner &#8220;Downloads&#8221; oder &#8220;Desktop&#8221; gelegt wurde:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;">#!/usr/bin/ruby</span>
&nbsp;
dst=<span style="color:#996600;">&quot;#{ENV['HOME']}/Documents/tmobile&quot;</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># 1. pull together all pgp crypted find Rechnung_15.10.2009.zip.pgp in Desktop, Downloads, local dir</span>
<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;#{ENV['HOME']}/Downloads&quot;</span>, <span style="color:#996600;">&quot;#{ENV['HOME']}/Desktop&quot;</span>, dst<span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>dir<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#CC00FF; font-weight:bold;">Dir</span>.<span style="color:#9900CC;">foreach</span><span style="color:#006600; font-weight:bold;">&#40;</span>dir<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>file<span style="color:#006600; font-weight:bold;">|</span>
    m = <span style="color:#006600; font-weight:bold;">/</span>Rechnung_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>\.<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>\.<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>\.<span style="color:#9900CC;">zip</span><span style="color:#006600; font-weight:bold;">&#40;</span>\.<span style="color:#9900CC;">pgp</span><span style="color:#006600; font-weight:bold;">|</span>\.<span style="color:#9900CC;">gpg</span><span style="color:#006600; font-weight:bold;">&#41;</span>?<span style="color:#006600; font-weight:bold;">/</span>.<span style="color:#9900CC;">match</span> file
    <span style="color:#9966CC; font-weight:bold;">if</span> m
      s = <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;mv #{dir}/#{file} #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip#{m[4]}&quot;</span>
      s = <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;gpg #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip#{m[4]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> m<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#93;</span>
      <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;rm #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip#{m[4]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> s <span style="color:#006600; font-weight:bold;">&amp;&amp;</span> m<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#93;</span>
      s = <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;unzip #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip&quot;</span>
      <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;rm #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> s
      <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;de-crypted &amp; unpacked #{dst}/#{m[3]}-#{m[2]}-#{m[1]}-bill.zip&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># 2. rename unpacked files accordingly</span>
<span style="color:#CC00FF; font-weight:bold;">Dir</span>.<span style="color:#9900CC;">foreach</span><span style="color:#006600; font-weight:bold;">&#40;</span>dst<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>file<span style="color:#006600; font-weight:bold;">|</span>
  m = <span style="color:#006600; font-weight:bold;">/</span>^Rechnung_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006600; font-weight:bold;">&#41;</span>$<span style="color:#006600; font-weight:bold;">/</span>.<span style="color:#9900CC;">match</span> file
  <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;mv #{dst}/#{file} #{dst}/#{m[1]}-#{m[2]}-bill-#{m[3]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> m
  m = <span style="color:#006600; font-weight:bold;">/</span>^Einzelverbindungsnachweis_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006600; font-weight:bold;">&#41;</span>$<span style="color:#006600; font-weight:bold;">/</span>.<span style="color:#9900CC;">match</span> file
  <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;mv #{dst}/#{file} #{dst}/#{m[1]}-#{m[2]}-evn--#{m[3]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> m
  m = <span style="color:#006600; font-weight:bold;">/</span>^Rechnung_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">5</span>,<span style="color:#006666;">20</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006600; font-weight:bold;">&#41;</span>$<span style="color:#006600; font-weight:bold;">/</span>.<span style="color:#9900CC;">match</span> file
  <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;mv #{dst}/#{file} #{dst}/#{m[3]}-#{m[2]}-bill-#{m[1]}#{m[4]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> m
  m = <span style="color:#006600; font-weight:bold;">/</span>^Einzelverbindungsnachweis_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">5</span>,<span style="color:#006666;">20</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>_<span style="color:#006600; font-weight:bold;">&#40;</span>\d<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#40;</span>.<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006600; font-weight:bold;">&#41;</span>$<span style="color:#006600; font-weight:bold;">/</span>.<span style="color:#9900CC;">match</span> file
  <span style="color:#CC0066; font-weight:bold;">system</span> <span style="color:#996600;">&quot;mv #{dst}/#{file} #{dst}/#{m[3]}-#{m[2]}-evn--#{m[1]}#{m[4]}&quot;</span> <span style="color:#9966CC; font-weight:bold;">if</span> m
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2009/11/t-mobile-rechnungen-auspacken-umbenennen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GSM Codes zum Ausschalten der Mobilbox</title>
		<link>http://blog.mro.name/2009/04/gsm-codes-zum-ausschalten-der-mobilbox/</link>
		<comments>http://blog.mro.name/2009/04/gsm-codes-zum-ausschalten-der-mobilbox/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 14:28:41 +0000</pubDate>
		<dc:creator>mro</dc:creator>
				<category><![CDATA[Artikel auf deutsch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[GSM Code]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[T-Mobile]]></category>

		<guid isPermaLink="false">http://blog.mro.name/?p=828</guid>
		<description><![CDATA[[Nachtrag: Auch nicht schlecht: GSM-Codes für's iPhone.] im Moment mag ich keine Mobilbox haben &#8211; das scheint aber für iPhones nicht vorgesehen zu sein. Aber da gibt&#8217;s ja noch die GSM Codes (wie ich heute erfahren habe &#8211; danke, Ex-Chef!): &#160; Ach ja &#8211; die 0179 kommt weil ich meine Nummer von O2 zu T-Mobile [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">[Nachtrag: Auch nicht schlecht: <a href="http://blog.webmart.de/2007/11/20/iphone-visual-voicemail-codes-fur-rufumleitung/">GSM-Codes für's iPhone</a>.]</p>
<p style="text-align: left;">im Moment mag ich keine Mobilbox haben &#8211; das scheint aber für iPhones nicht vorgesehen zu sein.</p>
<p style="text-align: left;">Aber da gibt&#8217;s ja noch die <a href="http://mobilfaq.in-ulm.de/t-mobile.faq.html">GSM Codes</a> (wie ich heute erfahren habe &#8211; danke, Ex-Chef!):</p>
<p><span id="more-828"></span></p>
<div class="wp-caption alignleft" style="width: 202px"><img title="Status Abfragen" src="http://blog.mro.name/wp-content/2009/04/img_00041.png" alt="" width="192" height="288" /><p class="wp-caption-text">Statusabfrage</p></div>
<div class="wp-caption alignright" style="width: 202px"><img title="Status vorher" src="http://blog.mro.name/wp-content/2009/04/img_00051.png" alt="" width="192" height="288" /><p class="wp-caption-text">Status vorher</p></div>
<div class="wp-caption alignleft" style="width: 202px"><img title="Umleitung Ausschalten" src="http://blog.mro.name/wp-content/2009/04/img_00061.png" alt="" width="192" height="288" /><p class="wp-caption-text">Umleitung Ausschalten</p></div>
<div class="wp-caption alignright" style="width: 202px"><img title="Feedback" src="http://blog.mro.name/wp-content/2009/04/img_00071.png" alt="" width="192" height="288" /><p class="wp-caption-text">Feedback</p></div>
<div class="wp-caption alignleft" style="width: 202px"><img title="Status Abfragen" src="http://blog.mro.name/wp-content/2009/04/img_00081.png" alt="" width="192" height="288" /><p class="wp-caption-text">Statusabfrage</p></div>
<div class="wp-caption alignright" style="width: 202px"><img title="Status nachher" src="http://blog.mro.name/wp-content/2009/04/img_00091.png" alt="" width="192" height="288" /><p class="wp-caption-text">Status nachher</p></div>
<p><span style="float: clear;">&nbsp;</span></p>
<hr style="float: left;"/>
<p style="float: left;">Ach ja &#8211; die 0179 kommt weil ich meine Nummer von O2 zu T-Mobile mitgenommen habe.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mro.name/2009/04/gsm-codes-zum-ausschalten-der-mobilbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
