<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Mailcheck</id>
	<title>Mailcheck - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Mailcheck"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;action=history"/>
	<updated>2026-06-04T00:30:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=4368&amp;oldid=prev</id>
		<title>Cail: corrected spelling, &quot;or now&quot; -&gt; &quot;or not&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=4368&amp;oldid=prev"/>
		<updated>2007-04-06T15:47:26Z</updated>

		<summary type="html">&lt;p&gt;corrected spelling, &amp;quot;or now&amp;quot; -&amp;gt; &amp;quot;or not&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:47, 6 April 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ; after sending username and password, we need to tell the server what we actually want to do. We want to know if there are new emails. So send &amp;quot;stat&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ; after sending username and password, we need to tell the server what we actually want to do. We want to know if there are new emails. So send &amp;quot;stat&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (%mailcheck_var == 3) { .sockwrite -n mailcheck stat }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (%mailcheck_var == 3) { .sockwrite -n mailcheck stat }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ; if we are here, %temp will contain whether we have new mails or &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;now&lt;/del&gt;. $2 is the number of new mails, being 0 or 1 or any other number.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     ; if we are here, %temp will contain whether we have new mails or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;not&lt;/ins&gt;. $2 is the number of new mails, being 0 or 1 or any other number.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (%mailcheck_var == 4) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     if (%mailcheck_var == 4) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       ; lets echo this to the status window&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       ; lets echo this to the status window&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cail</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=1811&amp;oldid=prev</id>
		<title>Saturn: small bug fixed, thanks to ArKanis</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=1811&amp;oldid=prev"/>
		<updated>2006-04-01T10:00:39Z</updated>

		<summary type="html">&lt;p&gt;small bug fixed, thanks to ArKanis&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:00, 1 April 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   [[sockread]] %temp&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   [[sockread]] %temp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ; the alias mailcheck_read, that we will define later, is supposed to handle eveerything we receive&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ; the alias mailcheck_read, that we will define later, is supposed to handle eveerything we receive&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mailcheck_readdata &lt;/del&gt;%temp&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mailcheck_read &lt;/ins&gt;%temp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Saturn</name></author>
	</entry>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=1320&amp;oldid=prev</id>
		<title>Doomie at 16:16, 24 November 2005</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=Mailcheck&amp;diff=1320&amp;oldid=prev"/>
		<updated>2005-11-24T16:16:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This script is supposed to check your POP3 mailaccount and return whether you have new mails or not.&lt;br /&gt;
You will find a little alias at the beginning where you have to put your login details in.&lt;br /&gt;
&lt;br /&gt;
 ; this is the alias where you have to put your login details in by replacing the &amp;lt;...&amp;gt;.&lt;br /&gt;
 ; lets actually make a new alias called mailoptions &lt;br /&gt;
 [[alias]] mailoptions {&lt;br /&gt;
  ; check if we get something like $mailoptions(emailserver) or $mailoptions(emailport) and return it&lt;br /&gt;
  ; like pop.gmx.net&lt;br /&gt;
  [[if]] ([[$1-|$1]] == emailserver) { [[return]] &amp;lt;your email server&amp;gt; }&lt;br /&gt;
  ; this is normally 110&lt;br /&gt;
  elseif ($1 == emailport) { return &amp;lt;your email port&amp;gt; }&lt;br /&gt;
  ; probably your email address&lt;br /&gt;
  elseif ($1 == emailuser) { return &amp;lt;your email user&amp;gt; }&lt;br /&gt;
  ; this is your password&lt;br /&gt;
  elseif ($1 == emailpass) { return &amp;lt;your email pass&amp;gt; }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ; this is the alias you can use to start checking your account&lt;br /&gt;
 ; lets make another alias called mailcheck&lt;br /&gt;
 alias mailcheck { &lt;br /&gt;
  ; at first we need to check if all details are given. Only if they are, we will continue&lt;br /&gt;
  if ($mailoptions(emailserver)) &amp;amp;&amp;amp; ($mailoptions(emailport)) &amp;amp;&amp;amp; (mailsoptions(emailuser)) &amp;amp;&amp;amp; (mailsoptions(emailpass)) {&lt;br /&gt;
    ; this command will close a socket called &amp;quot;mailcheck&amp;quot; if one exists.&lt;br /&gt;
    [[sockclose]] mailcheck &lt;br /&gt;
    ; here we open a new socket called mailcheck to our server on the given port&lt;br /&gt;
    [[sockopen]] mailcheck $mailoptions(emailserver) $mailoptions(emailport) &lt;br /&gt;
    ; we set a variable for a later alias&lt;br /&gt;
    set %mailcheck_var 0&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ; this event will trigger if the new socket called mailcheck has been opened&lt;br /&gt;
 [[On_sockopen|on *:Sockopen]]:mailcheck: {&lt;br /&gt;
  ; lets check if there are any errors, if they are, echo it and halt&lt;br /&gt;
  if ([[$sockerr]] &amp;gt; 0) { [[echo]] -a ERROR | [[halt]] }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ; this event will trigger when we receive any data through the socket&lt;br /&gt;
 [[On_sockread|on *:Sockread]]:mailcheck: {&lt;br /&gt;
  ; sockread will put the data in a variable, here %temp&lt;br /&gt;
  [[sockread]] %temp&lt;br /&gt;
  ; the alias mailcheck_read, that we will define later, is supposed to handle eveerything we receive&lt;br /&gt;
  mailcheck_readdata %temp&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 ; this is the alias mailcheck_read that will handle everything&lt;br /&gt;
 ; lets start it&lt;br /&gt;
 alias mailcheck_read {&lt;br /&gt;
  ; increase the %mailcheck_var variable, we have set to 0 in the mailcheck alias, once everytime we get some new data&lt;br /&gt;
  [[inc]] %mailcheck_var 1&lt;br /&gt;
  ; we check if $1 is +OK. Read the pop3 protocol to get more info about it&lt;br /&gt;
  if $1 == +OK {&lt;br /&gt;
    ; if its the first time we get some data, send &amp;quot;user &amp;lt;username&amp;gt;&amp;quot; to the socket.&lt;br /&gt;
    if (%mailcheck_var == 1) { .[[sockwrite]] -n mailcheck user $mailoptions(emailuser) }&lt;br /&gt;
    ; after that, we need to send our password   &lt;br /&gt;
    if (%mailcheck_var == 2) { .sockwrite -n mailcheck pass $mailoptions(emailpass) }&lt;br /&gt;
    ; after sending username and password, we need to tell the server what we actually want to do. We want to know if there are new emails. So send &amp;quot;stat&amp;quot;.&lt;br /&gt;
    if (%mailcheck_var == 3) { .sockwrite -n mailcheck stat }&lt;br /&gt;
    ; if we are here, %temp will contain whether we have new mails or now. $2 is the number of new mails, being 0 or 1 or any other number.&lt;br /&gt;
    if (%mailcheck_var == 4) {&lt;br /&gt;
      ; lets echo this to the status window&lt;br /&gt;
      echo -s New mails: $2&lt;br /&gt;
      ; closing the socket at the end as we are done&lt;br /&gt;
      sockclose mailcheck&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Archive]]&lt;br /&gt;
[[Category:Socket]]&lt;/div&gt;</summary>
		<author><name>Doomie</name></author>
	</entry>
</feed>