Gnus development mailing list
 help / color / mirror / Atom feed
* file storage in IMAP (eventually for Tramp) working and needs testing
@ 2007-12-26 20:02 Ted Zlatanov
  2007-12-29 22:34 ` David
  2009-04-12 13:04 ` Magnus Henoch
  0 siblings, 2 replies; 58+ messages in thread
From: Ted Zlatanov @ 2007-12-26 20:02 UTC (permalink / raw)
  To: Ding Mailing List; +Cc: Simon Josefsson

[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]

Using imap.el and encrypt.el, I was able to store files in IMAP.

imap.el is in the Emacs core now, and encrypt.el can be replaced by
pgg.el or something similar if necessary (I personally find it
convenient to use encrypt.el but it's not the only way).  So this
package doesn't depend on Gnus functionality, although it can definitely
be used in Gnus.

The attached trimp.el (name is not final, but I like it) will eventually
provide a Tramp over IMAP interface.  For now it's simply a way to
put/get files from an IMAP mailbox.

Store a file (uses a file name):
(trimp-put-file mailbox file-to-insert)

Get a file (returns just contents):
; assumes mailbox is already selected
(trimp-get-file message-number)

The messages are build with a hardcoded headers string for now.  There's
no message ID header, for instance.  Duplicates are allowed for now
(this is useful IMO, since it provides a sort of version history, but
there will probably be a limit on the number of duplicates).

The files are stored as GPG-encrypted (AES cipher) data (encrypt.el
allows much more choice, this is just hard-coded for testing).  This
encryption is, IMO, much easier than the hassle of MIME over IMAP, plus
it gives us file encryption.  The sacrifice of having to store 1 file
per message is worthwhile, again IMO.

This is very experimental work, but it does work for me to a Courier
IMAP server.  If anyone wants to test this out, look at the function
trimp-test which encapsulates the current state of my testing.  

I think trimp.el could be very useful for storing things like marks and
passwords on an IMAP server for Gnus; the applications are literally
unlimited once it works with Tramp.  I need to make sure the IMAP basics
are solid before I get to that point, though.  That's why I'm not cc-ing
the Tramp devel list yet.

Simon and other Gnus users, if you could take a look and comment, I
would appreciate it.

Thanks
Ted


[-- Attachment #2: trimp.el --]
[-- Type: application/emacs-lisp, Size: 3396 bytes --]

^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2009-09-28 12:03 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-26 20:02 file storage in IMAP (eventually for Tramp) working and needs testing Ted Zlatanov
2007-12-29 22:34 ` David
2007-12-30 20:35   ` Ted Zlatanov
2007-12-31 10:14     ` Michael Albinus
2007-12-31 12:30       ` Ted Zlatanov
2007-12-31 13:35         ` Michael Albinus
2007-12-31 14:52           ` Ted Zlatanov
2007-12-31 17:14             ` Michael Albinus
2007-12-31 17:45               ` Ted Zlatanov
2007-12-31 21:32                 ` Michael Albinus
2008-01-02 20:43                   ` Ted Zlatanov
2008-01-02 21:40                     ` Reiner Steib
2008-01-02 22:15                       ` Ted Zlatanov
2008-01-02 23:50                     ` Michael Albinus
2008-01-03 11:32                       ` Reiner Steib
2008-01-03 12:43                         ` Ted Zlatanov
2008-01-03 12:56                           ` Michael Albinus
2008-01-03 13:21                       ` Ted Zlatanov
2008-01-03 13:27                         ` Ted Zlatanov
2008-01-03 17:31                         ` James Cloos
2008-01-03 17:42                           ` Ted Zlatanov
2008-01-04 11:00                         ` Michael Albinus
2007-12-31 17:09     ` David
2009-04-12 13:04 ` Magnus Henoch
2009-04-13 15:50   ` Ted Zlatanov
2009-04-14  8:44     ` Michael Albinus
2009-04-14 16:22       ` Ted Zlatanov
2009-04-15 21:03         ` Michael Albinus
2009-04-23  0:15           ` Ted Zlatanov
2009-04-23  2:45             ` Daiki Ueno
2009-04-23 12:51               ` Ted Zlatanov
2009-04-23 13:09                 ` Daiki Ueno
2009-04-23 13:44                   ` Ted Zlatanov
2009-04-23 13:48                     ` Daiki Ueno
2009-04-23 14:19                       ` Ted Zlatanov
2009-04-23 14:28                       ` Daiki Ueno
2009-04-23 15:16                         ` Ted Zlatanov
2009-04-24  0:37                           ` Daiki Ueno
2009-04-23 21:30             ` Ted Zlatanov
2009-04-25 17:25               ` Michael Albinus
2009-07-10 21:34                 ` Ted Zlatanov
2009-07-15 21:25                   ` Tramp-IMAP works " Ted Zlatanov
2009-07-16  6:42                     ` Michael Albinus
2009-07-18 11:11                     ` Michael Albinus
2009-09-07  4:13                       ` Ted Zlatanov
2009-09-08 13:33                         ` Michael Albinus
2009-09-09 16:13                           ` Ted Zlatanov
2009-09-10  7:18                             ` Michael Albinus
2009-09-21 19:28                           ` imap-hash.el and tramp-imap.el Ted Zlatanov
2009-09-22 14:52                             ` Michael Albinus
2009-09-23 21:07                               ` Ted Zlatanov
2009-09-24 10:38                                 ` Michael Albinus
2009-09-25 20:48                                   ` Ted Zlatanov
2009-09-27 15:57                                     ` Ted Zlatanov
2009-09-27 19:24                                       ` Michael Albinus
2009-09-28 12:03                                         ` Michael Albinus
2009-09-24  6:44                             ` Reiner Steib
2009-09-25 20:49                               ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).