Bill Wohler | 7 Apr 22:50 2007
Picon
Picon

Sieve

So I've been under a rock.

I glanced through the Internet Drafts for the first time in years
(decades actually), and noticed several quite a lot of draft activity
related to Sieve. I had seen "Sieve" mentioned here and there, but
didn't realize what it was.

It's been around for a while: Showalter, T., "Sieve: A Mail Filtering
Language", RFC 3028, January 2001. The current draft to replace this RFC
is: http://www.ietf.org/internet-drafts/draft-ietf-sieve-3028bis-12.txt.

I see there's even several Debian libraries related to Sieve.

`M-x apropos' returns a few hits (sieve-mode, gnus-sieve).

After reading the spec, it strikes me that there really isn't any use
for MH-E support since Sieve would have already been used before mail
got into your MH folders. From our MH point of view, it seems that it is
merely a standard way of expressing the languages already present in
.maildelivery (slocal) and .procmailrc (procmail) files. Thoughts?

Do any of you have any experience with Sieve? Do you know of or use any
implementations? Are there plans to convert slocal or procmail to use
it? And finally, do you have any thoughts on how MH-E could use it, or
would you agree with my hunch that it is used earlier on in the mail
delivery chain?

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

(Continue reading)

Bill Wohler | 7 Apr 22:53 2007
Picon
Picon

Internet Mail Architecture

FYI...

http://www.ietf.org/internet-drafts/draft-crocker-email-arch-06.txt

Abstract

   Over its thirty-five year history Internet Mail has undergone
   significant changes in scale and complexity, as it has become a
   global infrastructure service.  The first standardized architecture
   for networked email specified little more than a simple split between
   the user world and the transmission world.  Core aspects of the
   service, such as the styles of mailbox address and basic message
   format, have remained remarkably constant.  However today's Internet
   Mail is marked by many independent operators, many different
   components for providing users service and many others for performing
   message transfer.  Public discussion of the architecture has not kept
   pace with the real-world technical and operational refinements.  This
   document offers an enhanced Internet Mail architecture that targets
   description of the existing service.

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Bill Wohler | 7 Apr 23:29 2007
Picon
Picon

A potential use of Sieve by MH

As I browsed some of the Sieve drafts, I noticed they may enable a
feature that I would absolutely love in a new MH program called
mh-sieve.

When archiving mail, I'd like to first delete attachments over a certain
size (since folks at work like to put stuff in mail that is available in
the Subversion repository).

It may also be useful to delete or extract and delete attachments in
current messages as well to speed up swish indexing of your mail or to
simply organize your attachments separately from your mail.

The current drafts indicate a means to do that. Putting together these two:

    P. Guenther, T. Showalter, Sieve: An Email Filtering Language
    http://www.ietf.org/internet-drafts/draft-ietf-sieve-3028bis-12.txt

    T. Hansen, C. Daboo, SIEVE Email Filtering: MIME part Tests, Iteration,
    Replacement and Enclosure
    http://www.ietf.org/internet-drafts/draft-ietf-sieve-mime-loop-02.txt

You could come up with:

    for_every_part {
        if size :over 100k {
	    discard;
        }
    }

While my previous message mentioned that there might not be an MH-E
(Continue reading)

djh | 9 Apr 11:01 2007
Picon

Re: A potential use of Sieve by MH


Bill,
  Re: Filtering Utilities

The below might be of interest to you regarding sieve, scheme, and even guile..

Mailutils offers support for two mail processing languages: Sieve and Scheme as mentioned below.  The
Sieve does have some gnu extensions. 

Regards,
  Darel Henman

---- start of quoted material  from: http://www.gnu.org/software/mailutils/
Mail Filtering Utilities

Mailutils offers support for two mail processing languages: Sieve and Scheme. 

    Guimb stands for "Guile for MailBoxes". It is designed to provide for mailboxes the same functionality
that awk provides for text files. It processes mailboxes, applying the user-supplied Scheme programs to
each of them in turn and saves the resultin
g output in required mailbox format.
sieve

    Mailutils provides two implementations of the Sieve language (RFC 3028): a standalone program sieve, and
sieve.scm -- a Sieve compiler written entirely in Scheme. Both provide full support for the Sieve
language with a set of extensions.

    Sieve takes a Sieve script and applies it to the given mailbox.

    Sieve.scm translates a Sieve script into an equivalent Scheme program and optionally applies it to the
(Continue reading)

Bill Wohler | 10 Apr 06:57 2007
Picon
Picon

Re: A potential use of Sieve by MH

djh <henman <at> it.to-be.co.jp> wrote:

> Mailutils offers support for two mail processing languages: Sieve and
> Scheme as mentioned below.

I thought it might. Thanks for the confirmation!

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Peter Galbraith | 14 Apr 20:39 2007
Picon

Re: A potential use of Sieve by MH

Bill Wohler <wohler <at> newt.com> wrote:

> As I browsed some of the Sieve drafts, I noticed they may enable a
> feature that I would absolutely love in a new MH program called
> mh-sieve.
> 
> When archiving mail, I'd like to first delete attachments over a certain
> size (since folks at work like to put stuff in mail that is available in
> the Subversion repository).
> 
> It may also be useful to delete or extract and delete attachments in
> current messages as well to speed up swish indexing of your mail or to
> simply organize your attachments separately from your mail.

That would be cool!

Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Jeffrey C Honig | 15 Apr 05:24 2007
Face
Picon

Re: A potential use of Sieve by MH

This is interesting to me because I use tcl and expect scripts as the
mda for fetchmail (i.e. fetchmail calls the tcl script for each
message).  It uses some tcl to let me control my SPAM filtering and the
destination mailboxes of my incoming mail.

I'm having problems with expect on FC6 and I'm looking at other
options.  Something more standard like a sieve implementation would be
nicer.  I wouldn't need to use things like expect to extract header
information.

Thanks.

Jeff

djh <henman <at> it.to-be.co.jp> wrote:

> 
> Bill,
>   Re: Filtering Utilities
> 
> The below might be of interest to you regarding sieve, scheme, and even guile..
> 
> Mailutils offers support for two mail processing languages: Sieve and Scheme as mentioned below.  The
Sieve does have some gnu extensions. 
> 
> Regards,
>   Darel Henman
> 
> ---- start of quoted material  from: http://www.gnu.org/software/mailutils/
> Mail Filtering Utilities
(Continue reading)

Mia Via | 15 Apr 07:18 2007

Re: A potential use of Sieve by MH


> This is interesting to me because I use tcl and 

> expect scripts as themda for fetchmail (i.e. 

> fetchmail calls the tcl script for eachmessage).

> Something more standard like a sieve implementation

> would benicer.  I wouldn't need to use things like

> expect to extract headerinformation.

Maybe sieve is/will be nicer, but Perl does work better than tcl/expect.

I used to filter a lot of mail for a website/volunteer organization using Perl scripts.

These days I just wash my mail through gmail and fetchmail from there.

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Jeffrey C Honig | 15 Apr 23:57 2007
Face
Picon

Re: A potential use of Sieve by MH

If I did it again I would consider perl.

tcl/expect do fine, there is just a bug in expect that I'm fighting.

I've been filtering my mail through gmail also, they have great SPAM
filters.  Then I filter it into mailboxes.

Thanks.

Jeff

Mia Via <miavia <at> myway.com> wrote:

> Maybe sieve is/will be nicer, but Perl does work better than tcl/expect.
> 
> I used to filter a lot of mail for a website/volunteer organization using Perl scripts.
> 
> 
> 
> These days I just wash my mail through gmail and fetchmail from there.
> 
> _______________________________________________
> No banners. No pop-ups. No kidding.
> Make My Way  your home on the Web - http://www.myway.com
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
(Continue reading)

Pete Phillips | 24 Apr 01:02 2007
Picon

customising mh keymap


Evening all.

I'd like to customise my mh-e keymap so that I can use "S /" to run the
mh-narrow-to-subject  function.

My first attempt (sort of based on my pathetic understanding of the
manual!) was:

-----------------------------------------------------------------------
(defun my-mh-folder-mode-hook ()
  "Hook to set key bindings in MH-Folder mode."
                                        ; only need to bind the keys once
  (if (not my-mh-init-done)
      (progn
        (local-set-key "S/" 'mh-narrow-to-subject)
        (setq my-mh-init-done t))))
(add-hook 'mh-folder-mode-hook 'my-mh-folder-mode-hook)
-----------------------------------------------------------------------

This doesn't work - although emacs doesn't complain, I don't get this
functionality. 

Any help appreciated. 
Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
(Continue reading)


Gmane