Comments (4)
Yup, a lot has happened since that documentation was written.. I'd suggest starting from mbox or maildir and take it from there (mbox is probably the easiest). @hsanson has been experimenting with a GMail source.
from sup.
Thanks for help. To clarify, my aim is to use sup with GMail on multiple computers with locally cached messages. For this to work correctly I need to synchronize labels back to GMail. Since this seems problematic with maildir, my idea is to:
- Store emails in a SQLite database. This way I'll get ACID properties for free, as well as the possibility to add additional information to messages, such as labels. Another bonus are simple backups - everything is in one file.
- Write a simple GMail-IMAP synchronization tool that only downloads messages from All mail to the database and synchronizes labels back using GMail extensions. (There could be some time limit like
"download only messages newer than 1 year or so.) - Modify sup so that it can use this SQLite store and store (or copy) labels into it.
This also solves the awkward intermediate step when using OfflineIMAP that labels are first converted into IMAP folders, downloaded locally to multiple folders and then again converted to labels for sup (and sup needs to check multiple folders). Using instead one big folder that understand labels seems much cleaner.
(Perhaps it would be worth to store GMail thread ID too?)
from sup.
Hi Petr,
Take a look at Horacio's work, he has gotten pretty far doing just that!
But some of the label stuff can be very slow for large volumes atm.
His gmail.rb is well-written and relatively easy to understand:
https://github.com/hsanson/sup/tree/gmail_source
His last message to sup-devel:
http://rubyforge.org/pipermail/sup-devel/2013-July/001415.html
Also, feel free to sign up to the devel mailing list:
http://rubyforge.org/mailman/listinfo/sup-devel
or the users list, sup-talk: http://rubyforge.org/mailman/listinfo/sup-talk
Regards, Gaute
On 29. juli 2013 09:44, Petr Pudlák wrote:
Thanks for help. To clarify, my aim is to use sup with GMail on
multiple computers with locally cached messages. For this to work
correctly I need to synchronize labels back to GMail. Since this
seems problematic with maildir, my idea is to:
- Store emails in a SQLite database. This way I'll get ACID
properties for free, as well as the possibility to add additional
information to messages, such as labels. Another bonus are simple
backups - everything is in one file. - Write a simple GMail-IMAP
synchronization tool that only downloads messages from All mail to
the database and synchronizes labels back using GMail
extensions.(There could be some time limit like "download only messages newer
than 1 year or so.) - Modify sup so that it can use this SQLite
store and store (or copy) labels into it.This also solves the awkward intermediate step when using
OfflineIMAP that labels are first converted into IMAP folders,
downloaded locally to multiple folders and then again converted to
labels for sup (and sup needs to check multiple folders). Using
instead one big folder that understand labels seems much cleaner.(Perhaps it would be worth to store GMail thread ID too?)
--- Reply to this email directly or view it on GitHub:
#113 (comment)
from sup.
Fixed in #114.
from sup.
Related Issues (20)
- Error from psych after sup-config HOT 9
- "wrong id called on nil" (RuntimeError)
- Exception while importing mail HOT 1
- unknown encoding causes crash HOT 4
- ERROR: oh crap, an exception HOT 1
- undefined method `encode' for URI:Module HOT 5
- Send mail? HOT 1
- Cant get sup properly installed or running, what am i missing? HOT 3
- sup-mail_1.0.orig.tar.gz HOT 1
- ERROR: oh crap, an exception HOT 2
- Emails without Date: header are always on top
- Wiki link to home page HOT 1
- RFC6532 support ("international email"): UTF-8 in headers, message/global MIME type
- sup-sync-back-maildir crashes: tried to create Proc object without a block (ArgumentError) HOT 1
- Login with Outlook / Office 365 Mail HOT 2
- Missing `mime/types` dependency in Debian Bullseye HOT 2
- just hitting 'j' to move through 40k messages and the whole program crashed HOT 3
- Sup on M1, M2 Mac / Apple Silicon HOT 15
- XDG_CONFIG_HOME
- Config Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sup.