Conky email IMAP

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50%
Description:

Conky email IMAP / openssl

##############################################
#!/bin/bash
mail='your@email.com'
password='yourpass'
imap='imap.xxx.com'
dir='/home/USER/.conky/Andreas-Gideon/'
mailcount=3



time='1'
temp='.temp'-$mail
user='user '$mail
pass='pass '$password

imapscript () {
sleep $time;
echo 'a login '$mail $password;
sleep $time;
echo 'a SELECT inbox';
sleep $time;
echo 'a FETCH 1:* FLAGS';
sleep $time;
}
command | imapscript | openssl s_client -crlf -connect $imap:993 | tee $dir$temp


### POCET
var=$(grep -o 'FLAGS ()' $dir$temp | wc -l)
echo $var > $mail-count

va=$(sed 's/*/ /g' $dir$temp | grep 'FETCH (FLAGS ())' | sed 's/FETCH (FLAGS ())/ /g' | xargs | awk '{for(i=NF;i>0;--i)printf "%s%s",$i,(i>1?OFS:ORS)}')
echo $va > $dri$temp

### LOOP
poc=0
echo > $mail
export IFS=" "
for word in $va; do

if [ $poc = $mailcount ]
then
break
fi

imapscript () {
echo $user
echo $pass
echo 'retr ' $word
sleep $time;
}
command | imapscript | openssl s_client -crlf -connect imap-94332.m32.wedos.net:995 | tee $temp

grep 'Subject: ' $dir$temp | perl -e 'for(<>){s/^.*: //;print}' | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' >> $mail
poc=$((poc+1))
echo $poc
done

loria

1 month ago

Conky is a program which can display arbitrary information and it is very good i did able to learned many new things from this program
I am thank full to you
further you are facing the Delete Hacked AOL Account issue then visit our site http://www.aolsupport247.com/aol-hacked-account/
Thank you

Report

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
updated Sep 09 2017
added Sep 09 2017
downloads today
0
page views today 7