-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Maksimov
committed
Nov 17, 2023
1 parent
525ad07
commit ecc2d64
Showing
8 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "gnome-online-accounts", | ||
"buildsystem": "meson", | ||
"config-opts": [ | ||
"-Dgoabackend=false", | ||
"-Dvapi=false", | ||
"-Dexchange=false", | ||
"-Dgoogle=false", | ||
"-Dimap_smtp=false", | ||
"-Dkerberos=false", | ||
"-Downcloud=false", | ||
"-Dwindows_live=false" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://gitlab.gnome.org/GNOME/gnome-online-accounts.git" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "python3-imapclient", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"imapclient\" --no-build-isolation" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/c6/74/11a144d35e0f36e34aa09c61847c54894b143f3700c26d9fe85d2c8632b2/IMAPClient-3.0.0-py2.py3-none-any.whl", | ||
"sha256": "31ec03da31f82fb380fdc0c79a9c31272789b50680285ade6581338c17ad8bf3" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "python3-inject", | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"inject\" --no-build-isolation" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "file", | ||
"url": "https://files.pythonhosted.org/packages/0a/d4/b812b4e7d826ce0d6ec38f03080a0118d68879ba06454275f410a02f3f21/inject-5.1.0-py2.py3-none-any.whl", | ||
"sha256": "2375e4b3852eb9243e4f736c7c3a9ec723ad8765a23d16cb1e89c0ea425e1433" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from gi.repository import GObject | ||
from imapclient import IMAPClient | ||
|
||
|
||
class ImapProvider(GObject.GObject): | ||
__gtype_name__ = "ImapProvider" | ||
|
||
server: IMAPClient | ||
|
||
# Props | ||
|
||
# Signals | ||
__gsignals__ = { | ||
} | ||
|
||
def __init__(self, server_host: str): | ||
super().__init__() | ||
|
||
self.server = IMAPClient(server_host, use_uid=True) | ||
|
||
def login(self, username: str, password: str): | ||
self.server.login(username, password) | ||
|
||
def list_folders(self, directory: str = '', pattern: str = '*'): | ||
if not self.server: | ||
return | ||
|
||
folders = self.server.list_folders(directory, pattern) | ||
print('FOLDERS:') | ||
print(folders) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters