You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @kodjima33! I'm working on this issue and will raise a PR asap. Just one thing I want to know is that this issue have a big checklist. So will it be divided into multiple sub-issues or not?
@beastoin@kodjima33 Are any of the imports still open to work upon or are you guys planning to go with @ibrahimAlbyrk 's approach for every import listed?
FYI the import app docs link you have posted above no longer works. It looks like the link you need now is: https://docs.omi.me/doc/developer/apps/Import
The difference is the new one is at /doc/ & the old one is at /docs/ <- this causes a redirect to the docs intro page.
Note that connecting to a real email server requires network access and
valid credentials. This example will fail without internet connectivity,
but the code demonstrates the intended usage pattern.
"""
import os
server = os.getenv('EMAIL_SERVER')
username = os.getenv('EMAIL_USERNAME')
password = os.getenv('EMAIL_PASSWORD')
if not all([server, username, password]):
print("Please set EMAIL_SERVER, EMAIL_USERNAME and EMAIL_PASSWORD environment variables")
return
importer = EmailImporter(server, username, password)
try:
messages = importer.fetch_last_n_messages('INBOX', count=5)
for i, msg in enumerate(messages, 1):
print(f"Email {i}")
print(f" From: {msg['from']}")
print(f" To: {msg['to']}")
print(f" Subject: {msg['subject']}")
print(f" Date: {msg['date']}")
# Compute preview separately to avoid backslash in f-string
preview = msg['body'][:200].replace('\n', ' ')
print(f" Body Preview: {preview}...\n")
finally:
importer.disconnect()
Activity
abhayguptas commentedon Feb 22, 2025
Hi, @kodjima33! I'm working on this issue and will raise a PR asap. Just one thing I want to know is that this issue have a big checklist. So will it be divided into multiple sub-issues or not?
parthiv11 commentedon Feb 22, 2025
yes it would be better to divide so than more than one can work, i would also like to work on this
[-]Modify Web Personas[/-][+]Add more sources to get data from[/+]17 remaining items
Ani-4x commentedon May 14, 2025
@beastoin @kodjima33 Are any of the imports still open to work upon or are you guys planning to go with @ibrahimAlbyrk 's approach for every import listed?
solomonshalom commentedon May 24, 2025
Hello! @kodjima33 @beastoin @mdmohsin7 @aaravgarg
Did a PR on this #2435
Hope you like it!
Thanks!
solomonshalom commentedon May 25, 2025
Update: I have made the OMI app + deployed it to Vercel 🫡
Check it out [at] https://omi-crisps.vercel.app
OR, search for OMI Crisps on the OMI app store!
michaelgreen06 commentedon Jul 2, 2025
@kodjima33
FYI the import app docs link you have posted above no longer works. It looks like the link you need now is:
https://docs.omi.me/doc/developer/apps/ImportThe difference is the new one is at /doc/ & the old one is at /docs/ <- this causes a redirect to the docs intro page.
Thegringolingo commentedon Aug 5, 2025
Note that connecting to a real email server requires network access and
valid credentials. This example will fail without internet connectivity,
but the code demonstrates the intended usage pattern.
"""
import os
server = os.getenv('EMAIL_SERVER')
username = os.getenv('EMAIL_USERNAME')
password = os.getenv('EMAIL_PASSWORD')
if not all([server, username, password]):
print("Please set EMAIL_SERVER, EMAIL_USERNAME and EMAIL_PASSWORD environment variables")
return
importer = EmailImporter(server, username, password)
try:
messages = importer.fetch_last_n_messages('INBOX', count=5)
for i, msg in enumerate(messages, 1):
print(f"Email {i}")
print(f" From: {msg['from']}")
print(f" To: {msg['to']}")
print(f" Subject: {msg['subject']}")
print(f" Date: {msg['date']}")
# Compute preview separately to avoid backslash in f-string
preview = msg['body'][:200].replace('\n', ' ')
print(f" Body Preview: {preview}...\n")
finally:
importer.disconnect()
if name == 'main':
main()
MithilSaiReddy commentedon Sep 29, 2025
is it still open
rishi-jat commentedon Nov 2, 2025
@kodjima33 can I work on this issue ?