<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>Latest snippets tagged mail</title>
  <link rel="alternate" href="http://snippets.prendreuncafe.com/snippets/tagged/mail/order_by/date"></link>
  <id>http://snippets.prendreuncafe.com/snippets/tagged/mail/order_by/date</id>
  <updated>2008-04-02T14:29:49Z</updated>
  <author>
    <name>Symfony</name>
    <author_email>noreply@symfony-project.com</author_email>
  </author>
<entry>
  <title>Lire les mails en texte brut sous OS X avec Mail.app</title>
  <link href="http://snippets.prendreuncafe.com/snippet/84"></link>
  <updated>2008-04-02T14:29:49Z</updated>
  <id>84</id>
  <summary type="html">Ouvrir un terminal et taper :

[code]
$ defaults write com.apple.mail PreferPlainText -bool TRUE
[/code]</summary>
</entry>
<entry>
  <title>Mailer un backup mysql comme attachement en ligne de commande</title>
  <link href="http://snippets.prendreuncafe.com/snippet/55"></link>
  <updated>2007-02-09T15:50:53Z</updated>
  <id>55</id>
  <summary type="html">On va utiliser mutt :

[code]
$ sudo apt-get install mutt
[/code]

La commande (cronable) :

[code]
$ mysqldump -uroot -p --all-databases --opt \
  | bzip2 &gt; /path/to/backup/export.sql.bz2 \
  &amp;&amp; echo &quot;En date du &quot; `date` \
  | mutt -s &quot;[Nikobox] Backup MySQL total du `date | awk '{ print $2,$3,$4}'`&quot; \
  -a /path/to/backup/export.sql.bz2 you@fai.com
[/code]</summary>
</entry>
<entry>
  <title>[Ubuntu] Mailer en ligne de commande</title>
  <link href="http://snippets.prendreuncafe.com/snippet/53"></link>
  <updated>2007-02-05T21:02:24Z</updated>
  <id>53</id>
  <summary type="html">Il faut installer mailx :

[code]
$ sudo apt-get install mailx
[/code]

Un test :

[code]
$ echo &quot;Test&quot; | mail monmail@gmail.com -s &quot;Test de mail&quot;
[/code]</summary>
</entry>
</feed>