Jump to content

Fetching new mails | Sending mails via Telegram

Hi

 

Recently I found out that it is possible to send messages like notifications to my Telegram account using a bot: http://www.bernaerts-nicolas.fr/linux/75-debian/351-debian-send-telegram-notification#h2-telegram-notification-script

What I wonder now, how can I automatically let local incoming mails forward to Telegram?

 

In the article are following two examples for commands that probably would be useful for my case:

# telegram-notify --question --title "File content display" --text "/tmp/log.txt" 

# telegram-notify --text "Result is available in the embedded document" --document "/tmp/result.log"

 

Just changing the path to the mbox file doesn't work, since I can not open it on my phone. As well it is not really great since I would see all messages and not just the newly received ones.

So, I guess I need to save each new incoming mail as a text file and then send it?

 

I personally would favor to be able to use the first command, so I do not have to download any file and get all as a text message right away.

How would I do that?

Link to comment
Share on other sites

Link to post
Share on other sites

Never heard of the software until I read this just now. 

It is possible someone may know, its hard to say. Please be patient. 

I suggest you bump the topic, but you can only do this once every 24hrs.

 

 

-= Topic moved to Programs, Apps and Websites =-

This may get better results for you.

COMMUNITY STANDARDS   |   TECH NEWS POSTING GUIDELINES   |   FORUM STAFF

LTT Folding Users Tips, Tricks and FAQ   |   F@H & BOINC Badge Request   |   F@H Contribution    My Rig   |   Project Steamroller

I am a Moderator, but I am fallible. Discuss or debate with me as you will but please do not argue with me as that will get us nowhere.

 

Spoiler

  

 

Character is like a Tree and Reputation like its Shadow. The Shadow is what we think of it; The Tree is the Real thing.  ~ Abraham Lincoln

Reputation is a Lifetime to create but seconds to destroy.

You have enemies? Good. That means you've stood up for something, sometime in your life.  ~ Winston Churchill

Docendo discimus - "to teach is to learn"

 

 CHRISTIAN MEMBER 

 

 
 
 
 
 
 

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 7/7/2020 at 5:46 AM, SansVarnic said:

Never heard of the software until I read this just now. 

It is possible someone may know, its hard to say. Please be patient. 

I suggest you bump the topic, but you can only do this once every 24hrs.

 

 

-= Topic moved to Programs, Apps and Websites =-

This may get better results for you.

Thank you for moving the thread to a better place.

 

Consider this another Bump.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×