Welcome to mirror list, hosted at ThFree Co, Russian Federation.

t.imap.body.sh « test « scripts « dev - github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db0ced5e2e2ce96b99d8f1013d529549b07be263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Name: t.imap.body.sh
# Author: Ladar Levison
#
# Description: Used for testing the IMAP BODY command.

echo ""
tput setaf 6; echo "IMAP session:"; tput sgr0
echo ""
nc localhost 9000 <<EOF
A01 LOGIN magma password
A02 LIST "" "*"
A03 SELECT Inbox
A04 FETCH 1:* (UID BODY[HEADER.FIELDS (SUBJECT DATE)])
A05 LOGOUT
EOF