Skip to content

Commit

Permalink
Linux - mail apps that use thunderbird process
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Jun 6, 2024
1 parent 36e9bb7 commit 4bdf87c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
6 changes: 4 additions & 2 deletions Linux/lazagne/config/manage_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from lazagne.softwares.browsers.firefox_browsers import firefox_browsers
from lazagne.softwares.browsers.chromium_browsers import chromium_browsers

# mails
from lazagne.softwares.mails.thunderbird_mails import thunderbird_mails

try:
from lazagne.softwares.memory.memorydump import MemoryDump
except ImportError:
Expand All @@ -31,7 +34,6 @@ def get_categories():
def get_modules_names():
return [
("lazagne.softwares.mails.clawsmail", "ClawsMail"),
("lazagne.softwares.mails.thunderbird", "Thunderbird"),
("lazagne.softwares.databases.dbvis", "DbVisualizer"),
("lazagne.softwares.sysadmin.env_variable", "Env_variable"),
("lazagne.softwares.sysadmin.apachedirectorystudio", "ApacheDirectoryStudio"),
Expand Down Expand Up @@ -68,4 +70,4 @@ def get_modules_names():

def get_modules():
modules = [soft_import(package_name, module_name)() for package_name, module_name in get_modules_names()]
return modules + chromium_browsers + firefox_browsers
return modules + chromium_browsers + firefox_browsers + thunderbird_mails
4 changes: 2 additions & 2 deletions Linux/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ def long_to_bytes(n, blocksize=0):

class Mozilla(ModuleInfo):

def __init__(self, browser_name, path):
def __init__(self, browser_name, path, category='browsers'):
self.path = path
ModuleInfo.__init__(self, browser_name, category='browsers')
ModuleInfo.__init__(self, browser_name, category=category)

def get_firefox_profiles(self, directory):
"""
Expand Down
9 changes: 0 additions & 9 deletions Linux/lazagne/softwares/mails/thunderbird.py

This file was deleted.

11 changes: 11 additions & 0 deletions Linux/lazagne/softwares/mails/thunderbird_mails.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from lazagne.config.soft_import_module import soft_import

mozilla_module_location = "lazagne.softwares.browsers.mozilla", "Mozilla"
Mozilla = soft_import(*mozilla_module_location)

# Name, path
thunderbird_mails = [
(u'thunderbird', u'.thunderbird'),
]

thunderbird_mails = [Mozilla(browser_name=name, path=path, category='mails') for name, path in thunderbird_mails]

0 comments on commit 4bdf87c

Please sign in to comment.