mozilla

Revision 183750 of User talk:Felix.Schwarz

  • Revision slug: User_talk:Felix.Schwarz
  • Revision title: User talk:Felix.Schwarz
  • Revision id: 183750
  • Created:
  • Creator: Felix.Schwarz
  • Is current revision? Yes
  • Comment Reply to record the correct solution for any later visitors.

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/sou...ation/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)
Actually, Ted's hint was wrong (but provided a HUGH motivation boost to find the correct solution) because the import code can be found in http://lxr.mozilla.org/seamonkey/sou...urces/content/ and no overlay is needed, just a correctly registered nsIImportModule module. --Felix.Schwarz 10:33, 12 August 2007 (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 <a class=" external" href="http://lxr.mozilla.org/seamonkey/source/mail/components/migration/content/" rel="freelink">http://lxr.mozilla.org/seamonkey/sou...ation/content/</a>
</li><li> To get your importer as an option, you'll want to overlay <a class=" external" href="chrome://messenger/content/migration/migration.xul" rel="freelink">chrome://messenger/content/migration/migration.xul</a>, 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="link-https" 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>
<dl><dd><dl><dd> Actually, Ted's hint was wrong (but provided a HUGH motivation boost to find the correct solution) because the import code can be found in <a class=" external" href="http://lxr.mozilla.org/seamonkey/source/mailnews/import/resources/content/" rel="freelink">http://lxr.mozilla.org/seamonkey/sou...urces/content/</a> and no overlay is needed, just a correctly registered nsIImportModule module. --<a href="User:Felix.Schwarz">Felix.Schwarz</a> 10:33, 12 August 2007 (PDT)
</dd></dl>
</dd></dl>
Revert to this revision