Inbox jammed… CLI saves.

Most email interfaces are stupid in the lacking of “Delete all” button.

So..
IMAP:

$ telnet mailserver.com 143
. login jialongl *******
. select INBOX
. STORE 1:* flags \Deleted
. expunge

POP:

$ ddd() { echo "USER jialongl"; sleep 1; echo "PASS *******"; sleep 1; for (( j = 1 ; j <= $1; j++ )) do echo dele $j; sleep 1; done; echo quit; }
$ ddd 200 | telnet mailserver.com 110

Fuck GUI again.

p.s. Of course, fuck the bad ones.
p.s.2 Most GUI are bad.
   

=============
Update: my mail server now enforces the usage of SSL. So:
$ openssl s_client -crlf -connect mailserver.com:993
. login jialongl *******
. select INBOX
. STORE 1:* flags \Deleted
. select "RSS Feeds/Microsoft at Home"
. STORE 1:* flags \Deleted
. select "RSS Feeds/Microsoft at Work"
. STORE 1:* flags \Deleted
. select "Spam"
. STORE 1:* flags \Deleted
. expunge

or to do it in one go:
 
$ ddd() {
echo ". login "; sleep 1;
echo ". select INBOX"; sleep 1;
echo ". STORE 1:* flags \Deleted"; sleep 1;
echo ". select \"RSS Feeds/Microsoft at Home\""; sleep 1;
echo ". STORE 1:* flags \Deleted"; sleep 1;
echo ". select \"RSS Feeds/Microsoft at Work\""; sleep 1;
echo ". STORE 1:* flags \Deleted"; sleep 1;
echo ". select \"Spam\""; sleep 1;
echo ". STORE 1:* flags \Deleted"; sleep 1;
echo ". expunge"; sleep 10;
echo ". close"; }
$ ddd | openssl s_client -crlf -connect :993

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: