Languages

Fsharp
ActionScript
xBase
Clean
GPSS
PureBasic
Sieve
Erlang
JOVIAL
Mercury
Linda
DataFlex
PostScript
FoxPro2
VFP
Cobol
Prolog
Jython
Awk
VisualBasic
JavaScript
Matlab
ASP
Haskell
Csharp
D
Smalltalk
Nemerle
Pixilang
Java
SQL
Python
ObjectPascal
Ruby
Perl
Pascal
Assembler
PHP
C
Functions  Add function  Users  Registration  Enter   About  ASCII Table  Our helpers

Sieve

Sieve is a language that can be used to create filters for electronic mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus IMAP server.

The language is not tied to any particular operating system or mail architecture. It requires the use of RFC 2822-compliant messages, but otherwise should generalize to other systems that meet these criteria. It was specified in RFC 3028, although the IETF is currently revising the language and its common extensions.

Sieve differs from traditional programming languages in that it is highly limited - the base standard has no variables, and no loops, preventing runaway programs, and limiting the language to simple filtering operations. Although extensions have been devised to extend the language to include variables and to a limited degree loops, the language is still highly restricted, and thus suitable for running user-devised programs as part of the mail system.

There are also a significant number of restrictions on the grammar of the language, in order to reduce the complexity of parsing the language, but the language also supports the use of multiple methods for comparing localized strings, and is fully unicode-aware.


Example

This is an example sieve script:
# example script
# de.wikipedia.org
#
require ["fileinto", "reject"];

# Messages bigger than 100K will be rejected with an error message
#

if size :over 100K {
reject "I'm sorry, I do not accept mail over 100kb in size.
Please upload larger files to a server and send me a link.
Thanks.";
}

# Mails from a mailing list will be put into the folder "mailinglist"
#

elsif address :is ["From", "To"] "mailinglist@blafasel.invalid" {
fileinto "INBOX.mailinglist";
}

# Spam Rule: Message does not contain my address in To, CC or Bcc
# header, or subject is something with "money" or "Viagra".
#

elsif anyof (not address :all :contains ["To", "Cc", "Bcc"] "me@blafasel.invalid",
header :matches "Subject" ["*money*","*Viagra*"]) {
fileinto "INBOX.spam";
}

# Keep the rest.
# This is not necessary because there is a "implicit keep" Rule

else {
keep;
}

original - http://en.wikipedia.org/wiki/Sieve_(mail_filtering_language)



Top Scientists to Discuss Global Changes at Arctic Conference in Miami

Hundreds of the world's top scientists and policymakers are expected to attend the State of the Arctic conference at the Miami Hyatt Regency from March 16 - 19, 2010. Speakers will include Arden Bement, director of the National Science Foundation (NSF), Jane Lubchenko, administrator of the National Oceanographic and Atmospheric Administration (NOAA), and Wendy Watson-Wright, assistant director-general of the United Nations Educational, Scientific and Cultural Organization (UNESCO). ...

More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=116467&WT.mc_id=USNSF_51&WT.mc_ev=click


This is an NSF News item.

PycckaR
BepcuR


Articles
Articles


Library
Library


Downloads
Downloads

Google Chrome Golf 6
 © Internet, books, teachers and Rudevich Alexander brains.