From: Sascha Silbe <sascha-pgp@silbe.org>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH] fix crash in sup-sync if the default sent source is used
Date: Thu, 8 Jul 2010 12:28:31 +0000 [thread overview]
Message-ID: <1278592111-654-1-git-send-email-sascha-pgp@silbe.org> (raw)
This fixes a crash in sup-sync when syncing a folder that contains a copy of a
"sent" message and no "sent" folder has been explicitly configured in the
config file (so it hasn't been added to sources.yaml).
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
---
bin/sup-sync | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/sup-sync b/bin/sup-sync
index 6eb8f80..7fb2a87 100755
--- a/bin/sup-sync
+++ b/bin/sup-sync
@@ -116,6 +116,12 @@ index.lock_interactively or exit
begin
index.load
+ if(s = Redwood::SourceManager.source_for Redwood::SentManager.source_uri)
+ Redwood::SentManager.source = s
+ else
+ Redwood::SourceManager.add_source Redwood::SentManager.default_source
+ end
+
sources = if opts[:all_sources]
Redwood::SourceManager.sources
elsif ARGV.empty?
--
1.7.1
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2010-07-08 12:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 12:28 Sascha Silbe [this message]
2010-07-13 2:13 ` Rich Lane
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=1278592111-654-1-git-send-email-sascha-pgp@silbe.org \
--to=sascha-pgp@silbe.org \
--cc=sascha-ml-reply-to-2010-2@silbe.org \
--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