Set up a combination of Mutt + MSMTP + getmail to manage the mail and paste the configuration file here as a memo.
. muttrc
set locale = zh_CN.gbkset charset = gbk#设置邮件储存位置set spoolfile = ~/spool/inboxset mbox_type = Maildirset folder = ~/Mailset mbox = "+inbox"set record = "+sent"set postponed = "+outbox"#用msmtp发送邮件set sendmail = "/usr/local/bin/msmtp"set use_from = yes# 设置用gmail帐号发信set from = xxxxxx@gmail.comset envelope_from = yesmy_hdr From: xxxxx
Netease 163 Free Email Related server information:
Mutt is the mail client under the command line. It is only used to manage the Organization and editing of emails. The corresponding program must be called to send and receive emails.
Getmail and msmtp are used here.
The process is as follows:
=====
1. Install mutt, getmail, and msmtp
======================================
$ Sudo Yum-y install mutt
Netease 163 Free Email Related server information:
Mutt is the mail client under the command line. It is only used to manage the Organization and editing of emails. The corresponding program needs to be called to send and receive emails.
Getmail and msmtp are used here.
The procedure is as follows:
=====
1. Install mutt, getmail, and msmtp
======================================
$ Sudo Yum-y install mutt
automation, it is more suitable to adopt POP3.
2.1 Installation Getmail4
Under Ubuntu, you can search for the installation with the new software package Manager, or
sudo apt-get install Getmail4
2.2 Configuration Getmail4 and simple examples
Execute command at terminal after installation
Copy Code code as follows:
CD ~
mkdir. Getmail
CD. Getmail
mkdir Maildir
CD Maildir
mkdir
default. It is more suitable to use POP3 because of the significance of command line Automation.
2.1 install getmail4
In Ubuntu, you can use the new software package manager to search for the installation, orSudo apt-get install getmail4
2.2 configure getmail4 and a simple example
Run the following command on the terminal after installation.Copy codeThe Code is as follows: cd ~Mkdir. getmailCd. getmailMkdir maildirCd maildirMkdir new cur tmp
After. getmail
mystery of implementing the interface mechanism in Delphi. It should be considered by the experts who created Delphi. Let's take a look at the interface method ing at the language level.By default, all methods of the interface class are named with the same name as the methods of the implemented interface type, just like the virtual functions of the overloaded class. However, the method of the Interface Class and the method of the interface type are not overloaded, but corresponding. No one has
form to add an installer:
Click in the property form to add an installer:
Right-ServiceInstaller1, select Properties
Change DisplayName, ServiceName for Seramailservice
Startup type is auto start
Right-ServiceProcessInstaller1, then select Properties change user to LocalSystem Right-Service1.cs design file, select View Code In the OnStart method, enter the following code:
The code is as follows
Copy Code
public void
){ //... }, resportSpam:function(id){ //... }, formatMessage:function(e){ var e = e || window.event; try{ e.preventDefault() }catch(e){ e.returnValue = false; } var targrtEl = e.target || e.srcElement; var id = targrtEl.id.toString().split(‘-‘)[1]; deMail.getMail(id,function(msgObject){ var resp = eval(‘(‘+msgObject+‘)‘);
name;} public void setName (String x) {this. name = x;} public String GetPhone () {return phone;} public void setPhone (String x) {this. phone = x;} public String getMail () {return mail;} public void setMail (String x) {this. mail = x;} public String execute () throws Exception {// the property value is the name = getName (); phone = getPhone () entered on the JSP page (); mail = getMail (); try {// judge
Design mix mode (composite) is a "structured" mode (structural). A structured pattern involves two or more objects, representing activities between objects, related to the structure of the object.
Let's start with a small example of a combination pattern:
In figure: There are two kinds of box:game box and Internet box in the system, the customer needs to know the interface of two classes to be called separately. To simplify the customer's work, the Xbox class was created with the following pr
C # attachments can be sent by sending emails,
Using System; using System. collections. generic; using System. linq; using System. web; using System. net. mail; namespace Ajax. email {public class GetMail {// MailAddress ds = new MailAddress ("1738819932@qq.com"); // Send (ds, "674580075@qq.com", "subject", "content ", "attachment name"); public GetMail () {}///
Symbol in C Language Left shift operator (R
Design Patterns in PHP Abstract factory patterns
For subclass modes that do not need to be merged, factory output can be completed through multiple methods in a class.
Abstract class messageFactor {abstract function getHeader (); abstract function getMail (); abstract function getMobile (); abstract function getFooter ();} class smudgeMo extends messageFactor {public function getHeader () {return 'header';} public function
= 128m;//changed 128M to 256M
But then, a PHP script to request the memory space will be more than 128M, that no matter how much you will be memory_limit later, there must be a problem in the future.
The reason is that when I encode, I only assign values to variables, but never unset ($var). Cause the memory to occupy more and more, so after a variable is no longer used, be sure to remember to unset it off.
The following is the code that I handled this log file today:
Copy CodeThe code is as fo
. cyscc0370.d0120 % Type -- the sent cell contains too many bytes, fromname Dewey. cyscc0370.d0120 % Type -- Name of the sent cell, title Dewey. cyscc0370.d0041 % Type -- commandid was too large, pcontext Dewey. cyscc037 0. d0040 % Type -- Skip skip this article); maildata typmaildata; binarydata blob; rowcysct0291 Dewey. cysct0291 % rowtype; cursor getmail is select B. d0041 B _d0041 -- contains invalid values, B. d0120 B _d0120 -- send a mail first
Usage:
Get 1st emails
CopyCode The Code is as follows: zgke. net. POP3 _ popt = new zgke. net. POP3 ("192.168.0.1", 110 );
Datatable _ mail = _ popt. getmail ("zk", "zk", 1 );
The returned datatable data content isType is type text is text, if the attachment is byte [] Name, if the attachment is stored as the file nameBelow are all classesCopy codeThe Code is as follows: using system;Using system. net. Sockets;Using system. net;Using system. Securit
(mail + ":" + flag );}
Note: during development, the regular expression reading is poor and will be continuously verified and encapsulated.
Exercise: Web Crawler: a program is used to obtain data that meets specified rules on the Internet.
Crawl the email address.
Public class asd {public static void main (String [] args) throws Exception {// List
List = getmail (); // Local List
List = getweb (); // network for (String I: list) {Syste
thought, a PHP script to request more than 128M of memory space, that no matter how much you will be memory_limit set up later, there must be a problem.
The reason is that I only assign values to variables when coding, but never unset ($var). resulting in more and more memory footprint, so after a variable is no longer used, be sure to remember to unset it off.
Attached below is the code for the log file I am working on today:
Copy Code code as follows:
Set_time_limit (1800);
/*
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.