Mail notification program. Perl script for notification of new emails

Monitoring

New in the category "Programs for checking mailing addresses and necessary information.":

Free
Spamihilator 1.0.0 will give you the opportunity to weed out about 98 percent of the unwanted letters and spam received in your mailbox. The Spamihilator utility works between the mail client and the mail server, so mail client Only verified emails are received.

Free
New Mail 2.0.1 is a system that will notify you when it arrives at your mailbox on the letter server. New Mail has a simple interface that even a beginner can use. You can also attach an unlimited number of mailboxes to the program for more complete control of incoming messages.

Free
A-Clock 3.0.0 b is convenient talking clock, having additional set various functions. The A-Clock utility has a fully customizable time and date view.

Free
Postman 2.13 allows you to check your POP3 mailbox at a set interval. In standby mode, Postman hangs in the tray (near the system clock) and when new mail arrives, it immediately starts jumping around cheerfully.

Free
Quick mail check 1.2 is an implemented opportunity to check your electronic mailboxes, on different accounts, quickly and without problems. Thanks to installed program « quick check mail" you will not need to go to your mail server to view incoming messages, you can easily find out about new mail thanks to timely and convenient notifications from the program.

Free
PopTray 3.2.0 allows any user to obtain information from any mail servers without using a mail client - in order to find out whether new letters have arrived in your e-mail box. PopTray makes a connection to the server and then downloads the headers of your emails or makes them available for display, deletion, or queuing for download, after which you can launch your email client (also includes integration with programs Microsoft Outlook and TheBat).

Free
Magic Mail Monitor 2.94b18 is a monitor for mailboxes (POP3). Magic Mail Monitor checks your mailboxes and displays the headers of your messages that you received in them. Using this program, you can delete messages directly on the mail server itself or forward an urgent message.

Free
MailChecker 1.4.2.611 is a utility for viewing the contents of your email inbox. The MailChecker utility supports convenient and correct viewing of mailboxes in Russian, has the ability to delete unnecessary mail without downloading it to your hard drive, and the utility also has the ability to configure “black email mailboxes” to delete all incoming messages of them.

Free
Advanced Maillist Verify 4.63.164 is a program that is used to quickly check email addresses in databases, mailing lists and address books Windows. Advanced Maillist Verify uses the algorithms of mail systems of various providers in its work. Mail server addresses for addresses email retrieved from DNS.

Free
Mozilla Thunderbird 8.0 Rus is a program designed to work with email mailboxes from Mozilla. Thunderbird program supports POP3, SMTP, IMAP, and RSS protocols. In addition, the program has a convenient built-in HTML editor, which makes it possible to create a fairly compact code, and this, in turn, leads to a several-fold reduction in the final size of sent letters.

Some time ago I wanted a very simple thing - so that when I receive a new email, a notification about this would appear somewhere in the corner of the screen. Moreover, I only needed notifications, and not a full-fledged email client, since I prefer to read mail through the web interface. After a short search, I was able to find a couple of relevant applications.

Ready-made solutions and what I didn’t like about them

The first program is called PopTray Minus. A quick study of it revealed that it was not suitable for me. Firstly, the minimum interval at which email is checked is, for some reason, five minutes. Personally, I would like to check my email every minute. Secondly, a saved mailbox password in base64 was found in the ~/.poptrayrc file. There is no option to encrypt passwords.

After unpacking the archive, you need to install the script dependencies. You can do this either manually by looking at the names required modules at the beginning of the script, or automatically by running the INSTALLDEPS.sh script from under root. By the way, in lately I include the script for automatic installation dependencies in all your Perl projects. Very convenient! I came across the idea on koorchik’s blog.

In addition to Perl modules, you will also need the zenity (to display notifications) and gpg (to not reveal passwords) utilities:

sudo apt-get install zenity gnupg

Create a config ~/.email_notifier with approximately the following content:

{
"main" :(
"check_interval" : 60
} ,
"pop3_list" : [
{
"user" : " [email protected]" ,
"password" : "secret" ,
"host" : "pop.yandex.ru"
} ,
{
"user" : " [email protected]" ,
"password" : "secret" ,
"host" : "pop.gmail.com" ,
"ssl": 1,
"delete" : 1
} ,
{
"user" : " [email protected]" ,
"password" : "secret" ,
"host" : "pop.mail.ru" ,
"ssl" : 1
}
]
}

I hope there won't be any questions here. Just be careful with the delete flag! If it is installed, the script will command the POP3 server to delete all existing messages. Different email services behave differently in this case, which I will mention below.

The config has been created, all dependencies are installed, now we try to run the script:

./ email-notifier.pl --no-master-password

If we see notifications like these:

... that means everything is fine. Otherwise, you will likely see error messages that will help you understand the problem.

Finally, we encrypt configuration file:

gpg --cipher-algo AES256 --digest-algo SHA512 -o OUT -a --symmetric IN

Enter the password twice and replace the configuration file with an encrypted one. Make sure that the unencrypted config is deleted. If anything, it can always be obtained from the encrypted one with the command:

gpg -o OUT --decrypt IN

We stop the script and register it somewhere for autorun, this time without the flag - -no-master-password . Upon startup, a window will appear asking you to enter a master password.

Subtleties of setting up mail on GMail/Mail.ru/Yandex

As I already noted, different email services behave differently when deleting emails via POP3. For example, GMail can be configured so that messages become invisible to the POP3 client, but remain accessible through the web interface:

Experimentally, it was possible to establish that Mail.ru always behaves this way and this cannot be changed through the settings. But Yandex.Mail, when deleting a letter via POP3, always places it in the “Deleted Items” folder.

Please note that the described behavior of Yandex, Mail and Jimail may change at any time. If you are used to storing in the mail valuable information, I would recommend changing your mind and not deleting anything via POP3. Instead, for example, you can create a folder that is not accessible via POP3 and transfer letters to it after they are read.

Questions for readers

First of all, isn’t this script of mine complete garbage? If so, why? If not, then tell me which of the following you think is most lacking:

  • Graphical interface and tray icons;
  • Opening a specific URL when clicking on a notification;
  • IMAP and RSS support;
  • Internationalization;
  • Demonization;
  • Storing passwords in specialized applications;
  • Determining the uniqueness of letters using UIDL and TOP;
  • Your own option;

Secondly, I didn’t have the opportunity to check how compatible zenity is with KDE and all sorts of awesome stuff. Could you please check this? And thirdly, according to tradition, other comments (anecdotes on the topic, incidents from life, advertisements for the sale of purebred kittens) are also welcome.

Instructions

If you have installed it on your computer operating system Windows 7, install the mail gadget - a small application that will be placed on the desktop. You can use gadgets: Mail2web, WpCorpMailCheck, G Counter, POP3Cecker and others, which can be found on specialized sites www.wingadget.ru, www.sevengadget.ru and similar web resources.

After installing the widget, proceed to configure it. Enter your address and password in the appropriate fields, set the frequency for checking new emails, select beep to notify you when mail arrives.

In the settings of some gadgets you also need to specify the addresses of the POP3 and SMTP protocols. You can find this information in your mailbox settings on the mail service website. As a rule, the protocols have the following form: pop3.mail.ru, pop3.yandex.ru, smtp.mail.ru, smtp.yandex.ru, etc.

If your computer has more than early version Windows or working with gadgets creates certain inconveniences for you, set up notifications about the arrival of new emails directly in your browser.

To do this, go to add-ons (extensions) through your browser menu and execute search query by the word mail. You will be offered a choice of several options for mini-applications to notify you about a new one. Select the extension that matches your email service (Gmail, Yandex, Yahoo, etc.) and install it.

Configure the add-on by specifying your login and password in the settings window, as well as setting the time interval for checking your mailbox. Depending on the selected add-on, you will receive notifications about mail arrivals in the form of pop-ups or a digital indication of the quantity unread emails in your inbox.

Sources:

If you use your mailbox constantly for quite a long time, then the number of letters there is quite large. In fact, working with your personal correspondence directly in your mailbox is not very convenient, especially if you don’t have unlimited internet. It is much easier to operate your letters on your own computer. This is exactly what this wonderful program was created for. The Bat!, and today we’ll talk about how to set up work with your mailboxes through it.

You will need

Instructions

If you have a Yandex or Mail.ru mailbox:
In the “Menu” item of the program, select “Box” – “ New box" In the window that appears, enter a name for the mailbox (Mail or Yandex). Click Next.
In the next window that appears, enter your name and, as well as your email address. Click Next.
In the next window, find the section “Use to access mail”. There, check “POP3 – Post Office Protocol v3”. Find the Mail Server field, write pop.mail.ru (or pop.yandex.ru) there. In the Outgoing mail server line, specify the parameter smtp.mail.ru (smtp.yandex.ru). Check the box "My SMTP server requires authentication."
In the next window, enter your mailbox and check the “Leave emails on the server” box.
Answer yes to the question “Do you want to check the rest of the mailbox properties?” Click "Done." If necessary, configure the program by going to the “Mailbox Properties” tab.

If you have a Gmail account:
Log in to your mailbox on the server. Open the “Settings” menu – “Forwarding and POP/IMAP”. In the “POP Access” section, click “Enable POP for all emails”, “Enable POP for emails received from now on”. From the drop-down list (“When emails via POP”), select the appropriate condition.
Click "Save Changes". Now go back to creating a new The Bat mailbox!
Proceed in the same way as in the instructions for Yandex and Mail.ru, indicating the appropriate address (pop.gmail.ru, smpt.gmail.ru).
When you see a window with the “User” field, enter your full email address there ([email protected]). Enter your password, click "Done".
Go to mailbox properties. Open the "Transport" tab. In the “Sending mail” section, in the “Connection” line, set “Secure to standard.” port (STARTTLS)". In the "Port" section - 465 or 587. In the "receiving mail" section - "Connection" change to "Secure on special". port (TLS)", "Port" - 995. Remember that when the program works with Gmail service Errors and malfunctions may occur.

The .com Internet service enjoys well-deserved popularity all over the world. After all, this is not only one of the most famous search engines, but also a free mail server that allows anyone to create their own mailbox.

Instructions

In order to register mail on Yahoo go to home page website at yahoo.com and on the right top corner page, click the “Registration” button. If at this time you are in Russia or the CIS countries, the service itself will determine your location and load the page on, so there will be no difficulties in reading the instructions.

Once you go to the account creation page, fill out everything empty fields required for registration. Including creating your login (mailbox name) and password. Pay special attention to filling out the field for security question and the answer to it. You will need this information to recover your account if you accidentally forget your password.

After filling out all the required fields, enter the verification code (captcha) and click big button"Create my account" If you filled out everything correctly, you will be taken to your account page. If there is an error somewhere, the system will notify you about it. In this case, go back a step and add the necessary information.

Please note that after successful registration you will not be taken to the mailbox itself, but to the main page of the Yahoo service, but under your login. To open mail, click on the icon with the image of a postal envelope and the word “Mail” in the upper right corner. You will be taken to your inbox. In it you will find a letter with detailed instructions on working with a Yahoo account and mail, sent by a mail robot.

Work with free mail Yahoo.com can only be accessed through the web interface. If you are used to using some special mail programs like The Bat, Outlook or Mozilla Thunderbird, you won’t be able to set up a free mailbox for them on the Yahoo server. However, you can make your account a paid account. In this case, you can configure your postal address on Yahoo to work with offline email programs. This service costs $2 per month or $19.99 per year.

If you have chosen paid option, go to http://overview.mail.yahoo.com/enhancements/mailplus to the page additional services Yahoo Mail Plus. Here, click on the Upgrade Now button and enter your email password again. On the payments page, select suitable option payment ( by bank card or through PayPal system) and fill in the required fields. Before confirming payment, carefully check all the entered data again. If everything is filled out correctly, click the I Agree, Place Order button.

Video on the topic

Instructions

Setting up delayed sending email in Yandex mail

Fill out all fields of the form to create a letter to postal service Yandex and attach necessary files. The button for sending a letter is located under the link for attaching files, highlighted in yellow and divided into two unequal parts, “Send” and a timer sign. Click on the timer icon, the context field “send today at XX:00” will open. Check this box and enter the desired date and time.

The date can be changed by clicking on the word “today”, a calendar will appear where you can select the month and day. By analogy, the field is edited over time. The timer is designed for a time from 5:00 to 23:00 at intervals of one hour. The Yandex mail system provides its users with the opportunity to set up delayed sending of a letter for 1 year from the date of its creation.

After setting the date and time, the "send" button will change to reflect the new settings. Click on it to save the letter and set time sent in the Outbox folder. If desired, you can create separate folder for delayed letters.

Setting up delayed sending of an email in Gmail

IN postal system Google doesn't have a pre-installed delayed email feature. To get this opportunity, download and install the Boomerang for Gmail plugin. There are versions of the Boomerang for Gmail plugin for Chrome browsers and Firefox. After installing this extension, the window for composing a letter will appear new link- “Send later.” Click on it, it will open context menu, in which you can select a period - in 1 hour, in 2 hours, in 4 hours, tomorrow morning, tomorrow afternoon, in 2 days or 4 days, in a week or two, and also in a month - or set exact date and the time of sending the email using the timer, which is located below the list of periods. Click the “Confirm” button and save the letter with the specified parameters.

If you have several mailboxes, you can receive notifications about new messages in Yandex.Mail to a different address. To set up notifications:

    Click the icon in the top right corner.

    Select Rules for processing letters.

    Click the Create Rule button.

    In the Apply block, select from the lists what type of emails you want to apply the rule to:

    In the block If you set conditions for processing:

    ","hasTopCallout":true,"hasBottomCallout":true,"areas":[("href":"filter-glossary.html#filter-glossary__terms-attributes","shape":"circle","direction": ["top","left"],"alt":"Enter the value of the selected parameter","justMapLink":false,"coords":,"isNumeric":false,"hasTopCallout":true,"hasBottomCallout":false) ,("href":"filter-glossary.html#filter-glossary__terms-features","shape":"circle","direction":["bottom","right"],"alt":"How strictly should the condition is met","justMapLink":false,"coords":,"isNumeric":false,"hasTopCallout":false,"hasBottomCallout":true),("href":"filter-glossary.html#filter-glossary__terms- attributes","shape":"circle","direction":["top","right"],"alt":"Select parameter","justMapLink":false,"coords":,"isNumeric":false ,"hasTopCallout":true,"hasBottomCallout":false)]))">

    For more information on how to correctly create a condition, see the special article.

    For one rule, you can set several conditions that can be executed simultaneously or separately:

    In the section Perform an action enable the option Notify by address and specify the address to which notifications will be sent.

    Check the mailbox you specified to receive notifications. You will receive an email with instructions on how to confirm receipt of notifications. After confirmation, messages about new letters will be sent to the specified mailbox.

Notifications are not received

This may be due to the following reasons:

Personal data is not indicated in Yandex.Passport

Indicate reliable ones in Yandex.Passport and link them to your account. Our security system may have found your account suspicious and blocked your mailbox. Most often this happens due to the fact that the phone number is not attached to the box or the Passport contains a fictitious first and last name. It usually takes a couple of hours to remove the lock.

The rule is not activated or the address is not confirmed

Make sure that the desired rule is activated on the page, as well as the one to which the letters should be sent. Check for typos in the address you provided.

Not much time has passed since setting up the rule

After you have configured the rule, wait a few minutes - the rule may not work immediately.

Rule conditions are incorrectly specified

Check the properties and parameters of the condition.

There are higher priority rules in the list of rules

If in the list above there are rules with the same conditions or in one of the rules above there is an option Do not apply other rules, then this may affect the execution of the rule. For more details, see section