[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] sent_source - singular or per-account?



Bryan Richardson, 2010-01-12 23:38:
> Would someone be nice enough to tell me when/where the source gets
> set in SentManager?

Look at bin/sup lines 157-161.

> Also, where's the code that checks the front of the sent_source uri
> for 'maildir' in order to know to create a new Maildir source
> object?

That would be only in bin/sup-add.

If you look inside sources.yaml, you see that source classes are
stored there (together with instance attributes) and thats how
SourceManager#load_sources (actually YAML::load_file inside it) knows
what source classes to instantiate.

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk