Commit Graph

21 Commits

Author SHA1 Message Date
R. Tyler Ballance 1ee1c01bc7 Add a README, why not
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-23 02:06:33 -08:00
R. Tyler Ballance cc1be35f7f Checkpointing, working on N-ary tree traversal code
Somewhat uncertain how I want to lay out the tree in main()

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-23 01:51:58 -08:00
R. Tyler Ballance 31b2869db1 Add the 3-clause BSD license
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-23 01:17:51 -08:00
R. Tyler Ballance 81423d644f Start working on laying out the pretend-filesystem-tree into an N-ary tree courtesy of GLib
The basic idea is maintain a GHashTable of accounts->trees in imuse.c and allow for the getattr(2), read(2), open(2), readdir(2) calls to navigate the trees appropriately.

Take the following crappy diagram:
              Accounts/
                 |--> (d) github.com
                             |--> (f) NewEmail.template
                             |--> (d) INBOX
                             |         |--> (d) INBOX.other
                             |--> (d) Junk
                             |--> (d) Sent
                                       |--> (f) Some_Email_Subject-(2009-01-16).email

Look at muse_tree.c for more details on how I /think/ this should work

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-23 01:12:18 -08:00
R. Tyler Ballance 653ab7c2f8 Moving email sending functionality into muse_send.[c/h]
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-23 00:25:41 -08:00
R. Tyler Ballance b940d26476 Ensure we receive a status code 250 after successfully sending email
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-22 23:28:57 -08:00
R. Tyler Ballance 2f36660468 Kill stupid prompt() method
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-22 23:17:29 -08:00
R. Tyler Ballance 887927b457 Finish up the smtp sending test, which works for the most part.
Only problem now is that the thing SIGSEGV's on smtp_close()

	 Program received signal SIGSEGV, Segmentation fault.
	 0x00007ffff6a52c25 in free () from /lib64/libc.so.6

lolwut!?

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-22 23:07:43 -08:00
R. Tyler Ballance f2eff20475 Debugging smtp tests
Fun:

Suite: Smtp_Suite
  Test: empty test ... passed
  Test: sending a basic email ... ==(mm_log)==> Trying IP address [10.10.1.10]
*** glibc detected *** ./smtp: free(): invalid pointer: 0x0000000000609000 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7f4458c81118]
/lib64/libc.so.6(cfree+0x76)[0x7f4458c82c76]
/usr/lib64/libc-client.so.2006c1_suse(fs_give+0x3c)[0x7f4458fce5cc]
/usr/lib64/libc-client.so.2006c1_suse(tcp_close+0x4c)[0x7f4458fce6bc]
/usr/lib64/libc-client.so.2006c1_suse(net_close+0x1a)[0x7f4458f9510a]
/usr/lib64/libc-client.so.2006c1_suse(smtp_close+0x45)[0x7f4458fe23d5]
./smtp[0x401205]
/usr/local/lib/libcunit.so.1[0x7f4459be2b83]
/usr/local/lib/libcunit.so.1[0x7f4459be2956]
/usr/local/lib/libcunit.so.1(CU_run_all_tests+0x89)[0x7f4459be20c7]
/usr/local/lib/libcunit.so.1[0x7f4459be415a]
/usr/local/lib/libcunit.so.1(CU_basic_run_tests+0x5e)[0x7f4459be3f02]
./smtp[0x4012a9]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x7f4458c2b586]
./smtp[0x400e59]
2009-01-19 07:12:28 -08:00
R. Tyler Ballance 2de2309ba0 Add smtp test file
Turns out to build properly against c-client you have to predefine all the crazy c-client callbacks whether you want them or not.

Stubbed out inside of smtp.c, working on sending mail with c-client; seems like a "light" introduction to working with the API
Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-19 06:28:57 -08:00
R. Tyler Ballance 71504cf8df Finish up verifying config file contents in their current incarnation
I think I have a feel for GLib's config file handling now

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-19 04:24:29 -08:00
R. Tyler Ballance a95759749b Add sample configuration file
Start writing some GLib key-value file parsing test code to get a handle on it.

I think the general plan is to write a simple configuration utility, that will generate a .config/imuse/configuration file,
then let imuse use that as the default means of reading settings for the connections

Another option, instead of a configuration utility, would be to present the settings file as a "special" file in the imuse file-system

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-19 04:07:54 -08:00
R. Tyler Ballance 57165106ea Add the tests directory, before I dive head first into some IMAP and other code, I should have some tests
Going to use CUnit to familiarize myself with the c-client code, as well as some GLib funness

Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
2009-01-19 03:18:56 -08:00
R. Tyler Ballance 56dccd76b8 Odd that g_list_find() wasn't properly finding my strings in the GList, fixed.
Now it's at least representing special directories properly, looking at N-ary tree in GLib for properly representing these based on configuration files, etc.

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
2009-01-12 05:17:43 -08:00
R. Tyler Ballance e412e7d868 Working GLib into the equation, mmm hash tables. Working on the special file support (for things like accounts)
while I get a handle on dealing with C again >_<
2009-01-12 05:04:03 -08:00
R. Tyler Ballance 17304ed165 Revert "Switch over to fuse.py, and start with Giorgos' example.py"
This reverts commit 5ead39acfa.
2009-01-12 03:58:22 -08:00
R. Tyler Ballance 1ae9dab7cd Revert "fuse.py is a pain in the ass."
This reverts commit a725106374.
2009-01-12 03:58:01 -08:00
R. Tyler Ballance a725106374 fuse.py is a pain in the ass.
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
2009-01-12 03:57:25 -08:00
R. Tyler Ballance 5ead39acfa Switch over to fuse.py, and start with Giorgos' example.py
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
2009-01-12 03:34:23 -08:00
R. Tyler Ballance 5cbd2c4dad Add some getattr stuff, think I might just use fusepy or something. C sucks
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
2009-01-12 03:26:10 -08:00
R. Tyler Ballance 98b3a99ce7 Initial commit, toying around the idea of browsing an IMAP account via FUSE
Basing some of the work on xorgfs from J.R. Mauro <http://github.com/jrm8005/xorgfs/>

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
2009-01-12 03:16:34 -08:00