User:Anindyapandey

From MozillaWiki
Revision as of 07:15, 27 June 2016 by Anindyapandey (talk | contribs)
Jump to navigation Jump to search

I got selected for GSOC 2016. I am going to work on implementing an mbox->maildir converter for Thunderbird. I need an account on Mozilla Wiki to be able to put my weekly updates on it. https://drive.google.com/open?id=1LZr6QCWwCj6vW55aYNl9oatVXzzmoN_elCO53sCn3To

Week 1:

  1. Enabled the store type drop down menu.
  2. Detect change in store type. Whenever there is a change in the store type a migration dialog modal appears.
  3. The migration dialog modal currently has a temporary title and text.
  4. There are 2 buttons - Yes ( to proceed with the migration ) and No ( to cancel the migration ).
  5. For now, pressing Yes creates a folder "Converter" in the tmp directory with the folder hierarchy of the account root folder and copies over the files in their corresponding places from the account root folder.
  6. Pressing No closes the migration dialog modal.


Week 2:

  1. On pressing 'No' or the close button, the migration dialog modal closes and the store type is reverted to the original store type.
  2. On pressing 'Yes' a folder "Converter" is created in the tmp directory with the folder hierarchy of the account root folder and the mbox files are parsed and corresponding maildir files are created in proper places in the "Converter" folder.
  3. Check if migration is complete and on completion, the migration dialog modal closes with an alert message 'done'.


Week 3:

  1. On pressing 'Yes' a progress bar appears and the warning messages disappear.
  2. The max value of progress bar is equal to the number of messages in the account.
  3. The value of progress bar increases as messages are copied over.
  4. When the value of progress bar is equal to the max value ie the migration is complete, the migration dialog modal closes with an alert message 'done'.


Week 4:

  1. The .msf and the .dat files get copied over as part of migration.
  2. For imap accounts max value of progress bar is equal to the no. of files and folders within the account root folder.
  3. For imap accounts value of progress bar increases by 1 for each file or folder that is encountered as the converter moves through the account root folder.


Week 5:

  1. Before creating the "Converter" folder, if there is already a folder with the same name in the tmp directory, then the already existing folder is first removed.
  2. The name of the "Converter" folder is "Converter-" followed by the account root folder name.
  3. After the migration is complete, if there is already a folder with the same name in the parent directory of account root folder, then the already existing folder is first removed.
  4. Then the "Converter" folder is moved to the parent directory of account root folder.
  5. The following prefs are appropriately changed to make the "Converter" folder the new account root folder -
  • mail.server.%serverKey%.directory
  • mail.server.%serverKey%.directory-rel
  • mail.server.%serverKey%.newsrc
  1. Thunderbird restarts and the new messages are added to the new account root folder.