Revision 183749 of User talk:Felix.Schwarz

  • Revision slug: User_talk:Felix.Schwarz
  • Revision title: User talk:Felix.Schwarz
  • Revision id: 183749
  • Created:
  • Creator: Felix.Schwarz
  • Is current revision? No
  • Comment squashing small bugs...

Revision Content

Hi, just randomly ran into your User page and saw your question about writing a Thunderbird importer. I don't use Thunderbird, and I don't generally write extensions for it, but I think I can offer you some insight into how to make this happen.

  1. The import dialog code lives at http://lxr.mozilla.org/seamonkey/source/mail/components/migration/content/
  2. To get your importer as an option, you'll want to overlay chrome://messenger/content/migration/migration.xul, specifically you need to put a xul:radio element inside <radiogroup id="importSourceGroup"> to have your option be available.
  3. From this dialog your migration component will be instantiated using the Contract ID "@mozilla.org/profile/migrator;1?app=mail&type=" + the id of your radio element. So if you put in <radio id="thebat"> then you'll need to have a contract id of "@mozilla.org/profile/migrator;1?app=mail&type=thebat"
  4. From that point, I think it's just a matter of implementing the interface properly to handle the data you want.

Sounds like this is code that the Thunderbird project might want, so if you get it working you should consider filing a bug (or finding an existing one) and attaching a patch.

Good luck! --Ted Mielczarek 10:07, 12 October 2006 (PDT)

Thanks for your input, Ted. Last time, the overlay thing didn't work out, but I'll definitely look into this again after finishing my final (Diplom) thesis in late November. Actually, there is already bug 217988 to track any progress. --Felix.Schwarz 11:13, 12 October 2006 (PDT)

Revision Source

<p>Hi, just randomly ran into your User page and saw your question about writing a Thunderbird importer.  I don't use Thunderbird, and I don't generally write extensions for it, but I think I can offer you some insight into how to make this happen.
</p>
<ol><li> The import dialog code lives at http://lxr.mozilla.org/seamonkey/source/mail/components/migration/content/
</li><li> To get your importer as an option, you'll want to overlay chrome://messenger/content/migration/migration.xul, specifically you need to put a xul:radio element inside &lt;radiogroup id="importSourceGroup"&gt; to have your option be available.
</li><li> From this dialog your migration component will be instantiated using the Contract ID "@mozilla.org/profile/migrator;1?app=mail&amp;type=" + the id of your radio element.  So if you put in &lt;radio id="thebat"&gt; then you'll need to have a contract id of "@mozilla.org/profile/migrator;1?app=mail&amp;type=thebat"
</li><li> From that point, I think it's just a matter of implementing the interface properly to handle the data you want.
</li></ol>
<p>Sounds like this is code that the Thunderbird project might want, so if you get it working you should consider filing a bug (or finding an existing one) and attaching a patch.
</p><p>Good luck!
--<a href="User:Ted_Mielczarek">Ted Mielczarek</a> 10:07, 12 October 2006 (PDT)
</p>
<dl><dd> Thanks for your input, Ted. Last time, the overlay thing didn't work out, but I'll definitely look into this again after finishing my final (Diplom) thesis in late November. Actually, there is already <a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=217988">bug 217988</a> to track any progress. --<a href="User:Felix.Schwarz">Felix.Schwarz</a> 11:13, 12 October 2006 (PDT)
</dd></dl>
Revert to this revision