LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gmail Imap Poll my Sent Folder Script? (https://www.linuxquestions.org/questions/linux-general-1/gmail-imap-poll-my-sent-folder-script-629948/)

aot2002 03-22-2008 07:10 PM

SOLVED* Gmail Imap Poll my Sent Folder Script?
 
I currently use gmail
I currently use corporate email (pop3)

Corporate allows me to download emails to gmail using pop3

Corporate drops all my emails i send using gmail as my mail server since they want to send emails through the corporate server

I refuse to move away from gmail interface and stick to these stringent rules they pose

I currently use Ubuntu and have been for quite some time

I installed fetchmail and was hoping there way a way to have it periodically poll using imap on gmail for my sent items

Then i can write the script if any new mail i sent out using corporate can be forced out through thier smtp server


Trouble so far has been ive not been able to successfully find a fetchmail script to poll my sent items in gmail? any links or guides with a simple example for this would help me a lot.

Berhanie 03-23-2008 04:04 PM

This is my fetchmailrc:
Code:

set postmaster "postmaster@mydomain.com"
set no bouncemail
set syslog

defaults
  smtpaddress "mydomain.com" fetchall

poll imap.gmail.com protocol imap:
  username "something@gmail.com" is "berhanie"
    password "secret" ssl
    folder "[Gmail]/Sent Mail"
    keep
    sslfingerprint "2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07"

The certificate fingerprints were obtains as follows:
Code:

berhanie@machine:~$ openssl s_client -connect imap.gmail.com:993 < /dev/null | openssl x509 -noout -md5 -fingerprint
...
MD5 Fingerprint=2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07


aot2002 03-23-2008 06:30 PM

Quote:

Originally Posted by Berhanie (Post 3098017)
This is my fetchmailrc:
Code:

set postmaster "postmaster@mydomain.com"
set no bouncemail
set syslog

defaults
  smtpaddress "mydomain.com" fetchall

poll imap.gmail.com protocol imap:
  username "something@gmail.com" is "berhanie"
    password "secret" ssl
    folder "[Gmail]/Sent Mail"
    keep
    sslfingerprint "2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07"

The certificate fingerprints were obtains as follows:
Code:

berhanie@machine:~$ openssl s_client -connect imap.gmail.com:993 < /dev/null | openssl x509 -noout -md5 -fingerprint
...
MD5 Fingerprint=2E:52:DE:98:7F:07:A3:CB:43:9E:7B:77:51:60:0E:07




I'll try that its funny because i tried everything except to use
[Gmail] with Sent Mail I'll let u know the results

aot2002 03-23-2008 07:54 PM

Quote:

Originally Posted by aot2002 (Post 3098130)
I'll try that its funny because i tried everything except to use
[Gmail] with Sent Mail I'll let u know the results

Perfect thnks


All times are GMT -5. The time now is 06:27 AM.