lavab / api Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gitter-badger/api-3
Lavaboom's main backend API.
Home Page: https://lavaboom.com
This project forked from gitter-badger/api-3
Lavaboom's main backend API.
Home Page: https://lavaboom.com
@piggyslasher somehow managed to create an account with duplicated primary labels...
So he now has multiple Inbox, Sent, Starred, Spam etc labels...
Where? Takes place on .com
When? first noticed 1 day before, confirmed now
His owner id is: ytut9R6fngoXCmeicW51
example of label ids(Inbox): GW6V8NXNMzoYlCMDz8Ci, TGg7nZhU7PADQCMHlZ7m
Need to fix this as soon as possible
P.S. my code does not create labels with one exception - drafts
https://github.com/lavab/web/blob/develop/src/js/apps/AppLavaboom/services/inbox.js#L108-108
Where? .com/.co
When? now
What?
This field should have positive value only for Inbox label
For example:
When I send email I get unread_threads_count > 0 for Sent, if I star this thread I will get the same for Starred label
How to reproduce:
Email is getting encrypted as soon as it hits out servers, no reason to expose neither store subject in clear text.
Some route code might be broken, contact @andreis for exact information.
I have forwarded an email from gmail to my lavaboom.com account - it came from unsecure source and was encrypted on our server.
Thread id: XTuxuCBsZsdJXbn3GfW0
what I got? thread.secure: all
what I expected? thread.secure: none
where? .com
when? just now
I ended up with 4 threads id ex1MSUrqCsuSCXwjnXz8 in my inbox after having a short conversation with myself(gmail inbox)
help...
Please check the following threads: xjsBCuwAmDJxTfsrc6ZM, rUwzPnnL4xcXlDlIgTrW
also from another account: 8L2u9CIvgjDjwMl8o0fV
emails.list emails do not have any information about attachments, neither manifest does have
Manifest has only 'body' available in manifest.parts
This sometimes creates problems.
Steps to reproduce:
What happens:
Emails from Alice and Bob are shown in one thread, even though they don't have anything to do with each other.
This also happens in practice, for example all "Undelivered emails returned to sender" messages are aggregated into one thread.
Appears to be duplicate of #127, sorry.
Part of data from threads.list
body: "111"
kind: "raw"
manifest: "long-manifest-data-goes-here"
pgp_fingerprints: Array[0]
Please note kind is raw and pgp_fingerprints is empty, while it should be manifest + pgp_fingerprints should contain fingerprints of user default public key
Probably it was caused by a hack I have to use, see #81
Need this fixed as soon as possible
Tine from Lavaboom ([email protected])
Lavabot ([email protected])
thread.kind = thread.emails[0].kind
I need this to determine is thread secure or not(fast check without pulling the actual email),
I can't use thread.manifest as all threads have manifest because we have on-the-fly encryption of emails as soon as they hit Lavaboom servers
also see: #85
Fix/remove count_files
basically I can take the information from attached manifest
Email can be received from gmail for example,
There's a small time window after queueing the email and sending it
During which the email can be unencrypted
And all inbound raw emails are encrypted
We need to make sure API exposes only encrypted emails
Details: lavab/web#594
Change
-log="text": Log formatter type. Either "json" or "text"
-loggly_token="": Loggly token
to log-type
and log-token
(to be provider agnostic)
It appears only in Sent
Idea 1: load them on startup into a bloom filter
Idea 2: sqlite or similar simple db to store a hashtable on disk (as account creation is a relatively infrequent operation)
Threads id: J8Hruu9FUctqJugIid6D, PnxwrffOOIaGQT2JW849, uB0TEHN0cs2FMCLEt4b1
For information see here: lavab/web#312
Just tried to send email to gmail - got no event from the server
where? .com/.co
what? to should contain destination addresses but it's empty
example email id: QQ52qMofdPQwXL8iOUQ8
As we use manifests now it would be nice to get rid of Email.list/get from
and to
fields - required data is in manifest and we have manifests for all emails
threadAndDate in emails is thread + date_created
background: lavab/web#404
I'm not sure regarding the exact implementation of this on backend, so let's discuss
Currently we mark thread as read after a certain timeout(4 sec)
if user moves the thread faster to his trash/spam thread stays unread
we do not show it in the Inbox, but labels.list has no idea about new labels filtering Inbox -Trash -Spam...
I've tried to reply to a thread, sent valid thread_id, server accepted the email but it does not appear in the same thread in my Inbox label
I've replied to a email from my gmail account, server received email but did not notify me about it via sockjs event, tho after I refreshed page email was here.
thread id: ex1MSUrqCsuSCXwjnXz8
There should be a way to separately update is_read flag, using a hack now:
https://github.com/lavab/web/blob/develop/src/js/apps/AppLavaboom/services/inbox.js#L79-79
Filter out threads with labels Spam/Trash when we request a list of threads outside of Spam/Trash
I'm going to mark threads as Spam just by adding Spam label and preserve all original labels so later thread could be easily restored from spam
Expected: email should go to another thread
where? .com
lavab/web#313
See here for more info.
I have tracked it down that it fails to convert JSON body to internal go struct, but I have no idea why
it perfectly worked 12 hours ago on .com and now after update it fails
leaking cursors ftw
Client side I don't need this, should be totally fine to put everything under pgp
What do you think @pzduniak ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.