[prev in list] [next in list] [prev in thread] [next in thread] 

List:       getmail
Subject:    Re: courier-imap subfolders
From:       Charles Cazabon <getmaillist () discworld ! dyndns ! org>
Date:       2006-04-29 23:11:52
Message-ID: 20060429231152.GA1424 () discworld ! dyndns ! org
[Download RAW message or body]

Arthur K. Barnes <akb@cise.ufl.edu> wrote:
> 
> thanks for a great program.

You're welcome; thanks for the kind words.

> The IMAP server I'm currently connecting to is a little wierd in that they
> use Maildir with thu Courier IMAP subfolders extension. After a bit of
> tweaking, I was able to make getmail download stuff in the subfolders.
> Unfortunately, I can't make things in the subfolders go into subfolders on
> my local machine without having to resort to tricks with procmail. Does
> getmail have any more elegant way to handle it.

This type of job is traditionally the job of a filtering MDA like procmail,
though when people want to do this sort of thing, I tend to point them at
maildrop instead -- it's much higher quality and easier to use than procmail.
getmail can use any external MDA to do deliveries like this.

There's also the possibility of using the MultiGuesser destination class, if
the filtering criteria you want to use are present in the Delivered-To: or
similar header fields.

For instance, if messages you want delivered to one folder all have
"Delivered-to: you-mailinglist@yourdomain" in them, while your other mail
(which you want delivered to another folder) have "Delivered-to:
you@yourdomain", you can do this with:

  [destination]
  type = MultiGuesser
  default = ~/Maildir/
  locals = (
    ("you-mailinglist@yourdomain", "~/Mail/mailinglist/"),
  )

I'm not really enthusiastic about adding higher-level filtering to getmail, as
it would be duplicating functionality available in the filtering MDAs.

> Also, is there a way to make getmail print out the IMAP4 transactions?

Not currently.  Is there a reason you need this?

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                      <getmaillist@discworld.dyndns.org>
GPL'ed software available at:               http://pyropus.ca/software/
-----------------------------------------------------------------------

---------------------------------------------------------------------
Please DO NOT top-post in messages to this (or any) mailing list.
To unsubscribe, e-mail: getmail-unsubscribe@discworld.dnsalias.org
For additional commands, e-mail: getmail-help@discworld.dnsalias.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic