Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Start of switch (does not compile

  • Loading branch information...
commit 43b54cddbe0b615563d6358682dabaebfee9e2fa 1 parent 3a4a30e
Scott Lawrence authored

Showing 3 changed files with 4 additions and 7 deletions. Show diff stats Hide diff stats

  1. +0 1  README.md
  2. +1 2  mbox.go
  3. +3 4 thread.go
1  README.md
Source Rendered
... ... @@ -1,3 +1,2 @@
1 1 Here's a quick demo: http://www.physics.umd.edu/~srl/raw/slark-test/.
2 2
3   -
3  mbox.go
@@ -4,9 +4,8 @@ import (
4 4 "bufio"
5 5 "bytes"
6 6 "io"
  7 + "net/mail"
7 8 "os"
8   -
9   - "github.com/bytbox/go-mail"
10 9 )
11 10
12 11 const _MAX_LINE_LEN = 1024
7 thread.go
... ... @@ -1,14 +1,13 @@
1 1 package main
2 2
3 3 import (
  4 + "net/mail"
4 5 "sort"
5 6 "time"
6   -
7   - . "github.com/bytbox/go-mail"
8 7 )
9 8
10 9 type Threaded struct {
11   - Message
  10 + mail.Message
12 11 Parent *Threaded
13 12 Children []*Threaded
14 13
@@ -50,7 +49,7 @@ func (s sortable) Swap(i, j int) {
50 49 s[i], s[j] = s[j], s[i]
51 50 }
52 51
53   -func Thread(msgs []Message) ([]*Threaded, []*Threaded) {
  52 +func Thread(msgs []mail.Message) ([]*Threaded, []*Threaded) {
54 53 tmap := map[string]*Threaded{}
55 54 for _, msg := range msgs {
56 55 mid := msg.MessageId

0 comments on commit 43b54cd

Please sign in to comment.
Something went wrong with that request. Please try again.