Fixed issue #254

Added automatic fire-uping "sup-config" if there are no any configured sources.
You change the time of mail index locking, this might have other
consequences. Why did you change it in the first place? You also move it
into a begin/rescue block where it was not previously.

On Tue, Dec 30, 2014 at 1:05 PM, Tymon Radzik <notifications@github.com>
wrote:

> In bin/sup
> <https://github.com/sup-heliotrope/sup/pull/358#discussion-diff-22345721>:
>
> >
> >  begin
> >    Redwood::start
> > +  Redwood::SourceManager.load_sources
> > +
> > +   if Redwood::SourceManager.sources.empty?
> > +    debug "No sources found!"
> > +    exec("sup-config")
> > +    abort
> > +  end
> > +
> > +  Index.lock_interactively or exit
>
> I have tested this solution on two kinds of email sources and it worked. I
> don't see any problem there, everything should work as expected.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/sup-heliotrope/sup/pull/358/files#r22345721>.
>