need simple command line utility to read imap or pop3 mail unattended

Mike Marchywka marchywka at hotmail.com
Fri May 8 09:36:08 UTC 2020


On Thu, May 07, 2020 at 08:03:29PM -0500, Chris wrote:
> On Fri, 2020-05-08 at 00:28 +0000, Mike Marchywka wrote:
> > I got fetchmail to work but if I get it from the 12.04 repo it was
> > built circa 2011 and needs
> > new ssl libs ( why I finally gave up on this lol ). I was able to
> > build from source pointing to
> > newer ssl lib and it seems to work well. I just wrote a dummy mda (
> > cat - ) to echo the
> > input and this seems to be what I need.  With heavy use of
> > LD_LIBRARY_PATH this
> > got the one message from a specific yahoo folder in the .fetchmailrc
> > file, 
> > 
> > ./fm/fetchmail-6.4.4/fetchmail  --ssl --sslproto TLS1 --nosslcertck
> > --all   --keep
> > 
> > But I'll have to see options for running it every few minutes now...
> > Ideally 
> > I can get yahoo to put specific incoming mail into this folder
> > instead of
> > inbox.
> > 
> You can set the interval in the .fetchmailrc file. Mine is below:
> 
> https://pastebin.com/cjtnjBnY
> 
> My main email address is checked every two minutes as shown in this
> setting
> set daemon 120
> 
> The rest of the servers checked are multiples of that such as 
> poll imap.gmail.com with proto IMAP port 993 interval 2, so my gmail
> account is checked every 4 minutes.
> 
> You can also find a lot of info on fetchmail here - 
> https://www.fetchmail.info/index.html
> 
> HTH

Some of the note suggested avoding procmail although right now
I think I will roll my own for that part. 
I've got other command sources that I'm trying to push
through a common pattern  - for my own cpp code command line, 
config files, sockets - I'm curious if I can integrate the email 
thing and then build it so it is wasy to put back onto an old 
system. Not sure why libetpan needed all this junk, 
which I think is driving the version issues, but I used that 
in my account download program. 

Apparently this is not Ubuntu 12.04, I guess that was the suggested upgrade
prompt I dismissed :) This seems to be 11 something... 

Thanks. 


> 
> -- 
> Chris
> 31.11972; -97.90167 (Elev. 1092 ft)
> 19:42:01 up 2:16, 1 user, load average: 0.81, 0.77, 0.56
> Description:	Ubuntu 18.04.4 LTS, kernel 5.3.0-51-generic
> 
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 

mike marchywka
306 charles cox
canton GA 30115
USA, Earth 
marchywka at hotmail.com
404-788-1216
ORCID: 0000-0001-9237-455X




More information about the ubuntu-users mailing list