Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Start of switch (does not compile

  • Loading branch information...
commit 43b54cddbe0b615563d6358682dabaebfee9e2fa 1 parent 3a4a30e
@bytbox authored
Showing with 4 additions and 7 deletions.
  1. +0 −1  README.md
  2. +1 −2  mbox.go
  3. +3 −4 thread.go
View
1  README.md
@@ -1,3 +1,2 @@
Here's a quick demo: http://www.physics.umd.edu/~srl/raw/slark-test/.
-
View
3  mbox.go
@@ -4,9 +4,8 @@ import (
"bufio"
"bytes"
"io"
+ "net/mail"
"os"
-
- "github.com/bytbox/go-mail"
)
const _MAX_LINE_LEN = 1024
View
7 thread.go
@@ -1,14 +1,13 @@
package main
import (
+ "net/mail"
"sort"
"time"
-
- . "github.com/bytbox/go-mail"
)
type Threaded struct {
- Message
+ mail.Message
Parent *Threaded
Children []*Threaded
@@ -50,7 +49,7 @@ func (s sortable) Swap(i, j int) {
s[i], s[j] = s[j], s[i]
}
-func Thread(msgs []Message) ([]*Threaded, []*Threaded) {
+func Thread(msgs []mail.Message) ([]*Threaded, []*Threaded) {
tmap := map[string]*Threaded{}
for _, msg := range msgs {
mid := msg.MessageId
Please sign in to comment.
Something went wrong with that request. Please try again.