Fill out Message class, get streaming from stdin working.
FossilOrigin-Name: 8f3589d9d53f730c498e99104318e0ac41f3ef3c59945eab57986fbd386e6f61
This commit is contained in:
parent
33a5553e31
commit
312de83456
2 changed files with 90 additions and 20 deletions
17
src/sieb.nim
17
src/sieb.nim
|
|
@ -1,8 +1,7 @@
|
|||
# vim: set et nosta sw=4 ts=4 :
|
||||
|
||||
import
|
||||
std/os,
|
||||
std/streams
|
||||
std/os
|
||||
|
||||
import
|
||||
lib/config,
|
||||
|
|
@ -19,15 +18,11 @@ let
|
|||
conf = get_config( opts.config )
|
||||
default = newMaildir( home & "Maildir" )
|
||||
|
||||
let dest = default.subDir( ".wooo" )
|
||||
|
||||
echo repr default.newMessage
|
||||
let msg = default.newMessage
|
||||
msg.writeStdin()
|
||||
# msg.filter()
|
||||
msg.save( dest )
|
||||
|
||||
# let input = stdin.newFileStream()
|
||||
# var buf = input.readStr( 8192 )
|
||||
# var message = buf
|
||||
# while buf != "":
|
||||
# buf = input.readStr( 8192 )
|
||||
# message = message & buf
|
||||
|
||||
# echo message
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue