Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Michael Stapelberg <michael+sup@stapelberg.de>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Snippet: Copy unread messages to maildir
Date: Mon, 25 Oct 2010 22:32:18 +0200	[thread overview]
Message-ID: <1288038555-sup-4375@midna.zekjur.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

Hi,

I thought it would be a good idea to copy the unread messages from my sup inbox
to a separate maildir to access it from my phone. Turns out that once you are
spoiled with sup, you cannot go back to "normal" mail clients (k-9 mail in this
case) ;-).

Nevertheless, I thought maybe somebody could use the code I wrote. I’m
attaching it to this mail, but beware, it still has a bug: It crashes when
exporting messages sometimes. It also uses absolute paths.

Best regards,
Michael

[-- Attachment #2: copy-unread.rb --]
[-- Type: application/x-ruby, Size: 850 bytes --]

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

             reply	other threads:[~2010-10-25 20:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-25 20:32 Michael Stapelberg [this message]
2010-10-26  0:50 ` Ben Walton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1288038555-sup-4375@midna.zekjur.net \
    --to=michael+sup@stapelberg.de \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox