Skip to content

Instantly share code, notes, and snippets.

@clkao
Created September 1, 2010 14:51
Show Gist options
  • Save clkao/560786 to your computer and use it in GitHub Desktop.
Save clkao/560786 to your computer and use it in GitHub Desktop.
CLIENT:
mtl-2:rt-extension-mailgate clkao$ fdm -vvvv -f t/fdm.conf fetch
version is: fdm 1.6, started at: Wed Sep 1 22:50:39 2010
running on: Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
host is: mtl-2.local mtl-2.local fe80::21e:52ff:fe80:2b63%en1
home is: /Users/clkao
loading configuration from t/fdm.conf
added account "test-acconut": fetch=imaps server "localhost" port 1993 user "test-account@example.com" folders "INBOX"
added rule 0: matches=regexp "^To:.*contact@example.com" in headers actions="rtmail"
added action "rtmail": deliver=0:exec "cat"
configuration loaded
locking using: flock
options are: maximum-size=33554432, timeout=900, default-user="clkao", command-user="clkao", file-umask=077, queue-high=2, queue-low=1, strip-characters="\<>$%^&*|{}[]"'`;"
using tmp directory: /var/folders/B3/B38nM+y8EfuIsOtDjqSQAk+++TI/-Tmp-
parent: started, pid is 7243
parent: 0 children, 0 dead children
parent: child 7244 (test-acconut) started
test-acconut: fetch started, pid 7244
test-acconut: user is 501
test-acconut: started processing
test-acconut: fetching
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * OK IMAP4rev1 Server
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 1 CAPABILITY
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * CAPABILITY IMAP4rev1 CHILDREN LITERAL+ UIDPLUS ID NAMESPACE AUTH=PLAIN
< 1 OK CAPABILITY COMPLETED
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 2 LOGIN {24}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> test-account@example.com {4}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> test
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< 2 OK LOGIN COMPLETED
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 3 SELECT {5}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> INBOX
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
< * 1 EXISTS
< * 0 RECENT
< * OK [UNSEEN 1]
< * OK [UIDVALIDITY 1283352639]
< * OK [UIDNEXT 1001]
< * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)]
< 3 OK [READ-WRITE] Completed
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 4 UID SEARCH ALL
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * SEARCH 1000
< 4 OK UID COMPLETED
test-acconut: fetching UID: 1000
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 5 UID FETCH 1000 BODY[]
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * 1 FETCH (BODY[] {210}
From: jesse@example.com
To: contact@example.com
Subject: This is a test message!
Hello. I am executive assistant to the director of
Bear Stearns, a failed investment Bank. I have
access to USD6,000,000. ...
UID 1000 FLAGS (\Seen))
< 5 OK UID COMPLETED
test-acconut: invalid response: From: jesse@example.com
To: contact@example.com
Subject: This is a test message!
Hello. I am executive assistant to the director of
Bear Stearns, a failed investment Bank. I have
access to USD6,000,000. ...
UID 1000 FLAGS (\Seen))
test-acconut: fetching error. aborted
test-acconut: 0 messages processed in 0.159 seconds
test-acconut: finished processing. exiting
test-acconut: sending exit message to parent
test-acconut: waiting for exit message from parent
parent: got message type 1, id 0 from child 7244
parent: child 7244 returned 1
parent: finished, total time 0.167 seconds
mtl-2:rt-extension-mailgate clkao$ fdm -vvvv -f t/fdm.conf fetch
version is: fdm 1.6, started at: Wed Sep 1 22:51:03 2010
running on: Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
host is: mtl-2.local mtl-2.local fe80::21e:52ff:fe80:2b63%en1
home is: /Users/clkao
loading configuration from t/fdm.conf
added account "test-acconut": fetch=imaps server "localhost" port 1993 user "test-account@example.com" folders "INBOX"
added rule 0: matches=regexp "^To:.*contact@example.com" in headers actions="rtmail"
added action "rtmail": deliver=0:exec "cat"
configuration loaded
locking using: flock
options are: maximum-size=33554432, timeout=900, default-user="clkao", command-user="clkao", file-umask=077, queue-high=2, queue-low=1, strip-characters="\<>$%^&*|{}[]"'`;"
using tmp directory: /var/folders/B3/B38nM+y8EfuIsOtDjqSQAk+++TI/-Tmp-
parent: started, pid is 7245
parent: 0 children, 0 dead children
parent: child 7246 (test-acconut) started
test-acconut: fetch started, pid 7246
test-acconut: user is 501
test-acconut: started processing
test-acconut: fetching
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * OK IMAP4rev1 Server
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 1 CAPABILITY
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * CAPABILITY IMAP4rev1 CHILDREN LITERAL+ UIDPLUS ID NAMESPACE AUTH=PLAIN
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< 1 OK CAPABILITY COMPLETED
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 2 LOGIN {24}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> test-account@example.com {4}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> test
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< 2 OK LOGIN COMPLETED
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> 3 SELECT {5}
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< + Continue
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
> INBOX
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
test-acconut: queued 0; blocked 0; flags 0x02
test-acconut: polling: 2, timeout=900000
< * 1 EXISTS
parent: 1 children, 0 dead children
fatal: main: child socket closed
SERVER:
2010/09/01-22:50:39 CONNECT TCP Peer: "127.0.0.1:58364" Local: "127.0.0.1:1993"
S(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): * OK IMAP4rev1 Server
C(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): 1 CAPABILITY
S(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): * CAPABILITY IMAP4rev1 CHILDREN LITERAL+ UIDPLUS ID NAMESPACE AUTH=PLAIN
S(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): 1 OK CAPABILITY COMPLETED
C(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): 2 LOGIN {24}
S(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): test-account@example.com {4}
S(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x258fd00),???,unselected): test
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,unselected): 2 OK LOGIN COMPLETED
C(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,unselected): 3 SELECT {5}
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,unselected): INBOX
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * 1 EXISTS
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * 0 RECENT
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * OK [UNSEEN 1]
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * OK [UIDVALIDITY 1283352639]
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * OK [UIDNEXT 1001]
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)]
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): 3 OK [READ-WRITE] Completed
C(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): 4 UID SEARCH ALL
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * SEARCH 1000
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): 4 OK UID COMPLETED
C(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): 5 UID FETCH 1000 BODY[]
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): * 1 FETCH (BODY[] {210}%0D
From: jesse@example.com
To: contact@example.com
Subject: This is a test message!
Hello. I am executive assistant to the director of
Bear Stearns, a failed investment Bank. I have
access to USD6,000,000. ...
UID 1000 FLAGS (\Seen))
S(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): 5 OK UID COMPLETED
-(Net::IMAP::Server::Connection=HASH(0x258fd00),test-account@example.com,INBOX): Connection closed by remote host
2010/09/01-22:51:03 CONNECT TCP Peer: "127.0.0.1:58367" Local: "127.0.0.1:1993"
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): * OK IMAP4rev1 Server
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): 1 CAPABILITY
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): * CAPABILITY IMAP4rev1 CHILDREN LITERAL+ UIDPLUS ID NAMESPACE AUTH=PLAIN
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): 1 OK CAPABILITY COMPLETED
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): 2 LOGIN {24}
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): test-account@example.com {4}
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),???,unselected): test
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,unselected): 2 OK LOGIN COMPLETED
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,unselected): 3 SELECT {5}
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,unselected): + Continue
C(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,unselected): INBOX
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * 1 EXISTS
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * 0 RECENT
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * OK [UNSEEN 0]
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * OK [UIDVALIDITY 1283352663]
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * OK [UIDNEXT 1001]
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft)]
S(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): 3 OK [READ-WRITE] Completed
-(Net::IMAP::Server::Connection=HASH(0x259a9a0),test-account@example.com,INBOX): Connection closed by remote host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment