Re: Re: [gentoo-user] procmail, formail and maildir for digests...

2006-10-11 Thread Steve [Gentoo]
Kevin Fullerton wrote:
 Here's the procmail recipe I use with maildir folders and the Gentoo lists - 
 I think as long as procmail is setup with maildir support you just need to 
 set your MAILDIR var and use a trailing slash and it knows it'd delivering to 
 a MailDir.
   
A, I guess I hadn't been as clear as I could have been. I have an
almost identical setup to yours right now and that allows me to use
procmail to deliver to maildir...  The problem I have is that I want to
use formail to split my digests into individual messages (because large
digests play havoc with IMAP, and to make replies easier) - but I can
only find documentation showing how to use formail to split digests into
mbox format.  Unsurprisingly the silly attempt below doesn't work (as |
formail... is interpreted by /bin/sh.) :
--

:0
* ^List-Id:.*gentoo-user.gentoo.org
| formail +1 -ds  gentoo_user/

--

Is formail the right tool for me to use here?  Is there a tool to
deliver an mbox of messages to a maildir that I can use in place of '
gentoo_user/' above?


-- 
gentoo-user@gentoo.org mailing list



Re: Re: [gentoo-user] procmail, formail and maildir for digests...

2006-10-11 Thread Rasmus Andersen
On Wed, Oct 11, 2006 at 11:32:08AM +0100, Steve [Gentoo] wrote:
 Is formail the right tool for me to use here?  Is there a tool to
 deliver an mbox of messages to a maildir that I can use in place of '
 gentoo_user/' above?

To googling for mbox2maildir or mb2md(?). With a bit of work I think
they could do it.

Rasmus
-- 
gentoo-user@gentoo.org mailing list



Re: Re: [gentoo-user] procmail, formail and maildir for digests...

2006-10-11 Thread Michael Sullivan
On Wed, 2006-10-11 at 11:32 +0100, Steve [Gentoo] wrote:
 Kevin Fullerton wrote:
  Here's the procmail recipe I use with maildir folders and the Gentoo lists 
  - I think as long as procmail is setup with maildir support you just need 
  to set your MAILDIR var and use a trailing slash and it knows it'd 
  delivering to a MailDir.

 A, I guess I hadn't been as clear as I could have been. I have an
 almost identical setup to yours right now and that allows me to use
 procmail to deliver to maildir...  The problem I have is that I want to
 use formail to split my digests into individual messages (because large
 digests play havoc with IMAP, and to make replies easier) - but I can
 only find documentation showing how to use formail to split digests into
 mbox format.  Unsurprisingly the silly attempt below doesn't work (as |
 formail... is interpreted by /bin/sh.) :
 --
 
 :0
 * ^List-Id:.*gentoo-user.gentoo.org
 | formail +1 -ds  gentoo_user/
 
 --
 
 Is formail the right tool for me to use here?  Is there a tool to
 deliver an mbox of messages to a maildir that I can use in place of '
 gentoo_user/' above?
 

There's probably an easier way to do this, but couldn't you use formail
to split your digests into individual mails in mbox format and then use
another tool to covert those mboxes to maildir?  You could use a cron
job...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] procmail, formail and maildir for digests...

2006-10-11 Thread Steve [Gentoo]
Rasmus:

I've had a look at mb2md, and this seems close to what I'd need - though
I'm dubious about two aspects:

1.It doesn't seem to have a filter mode (i.e. It always takes file
as input as opposed to stdin, which would allow it to slot more neatly
into a procmail based solution.
2.The documentation suggests that it is intended to transform whole
mbox files into maildir directories - whereas I'd need it to take an
mbox file and append it to a maildir directory which would likely
already contain messages from the previous digest.

Am I missing something obvious (to someone else)?

Reader at Newsguy:

While I don't really understand why your suggestion should work...I
tried it anyway.  It didn't work... and delivered the digest to my inbox
and to my gentoo folder, but didn't in split the digest.

--
From [EMAIL PROTECTED]  Wed Oct 11 14:40:21 2006
 Subject: Digest of gentoo-user@gentoo.org issue 950 (52678-52727)
  Folder:
.Mailing.Gentoo.ThisMonth/new/1160574057.17594_0.server  161160
procmail: Extraneous filter-flag ignored
procmail: Skipped * ^List-Id:.*gentoo-user.gentoo.org
procmail: Skipped | formail +1 -ds 
--

It seems strange that this should be tricky to set-up - procmail
obviously intends to address digest splitting and to support both mbox
and maildir delivery... Surely there's a simple solution?

Steve

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] procmail, formail and maildir for digests...

2006-10-10 Thread Steve [Gentoo]
I'm familiar with this procmail recipe:

--
:0

* ^List-Id:.*gentoo-user.gentoo.org
| formail +1 -ds  gentoo_user
--

However... I need to use maildir is there a straightforward way to deliver 
directly to maildir folders with formail from procmail?






-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] procmail, formail and maildir for digests...

2006-10-10 Thread Kevin Fullerton
Here's the procmail recipe I use with maildir folders and the Gentoo lists - I 
think as long as procmail is setup with maildir support you just need 
to set your MAILDIR var and use a trailing slash and it knows it'd delivering 
to a MailDir.

MAILDIR=$HOME/.maildir
LOGFILE=$HOME/.procmaillog
LOGABSTRACT=no
VERBOSE=on
FORMAIL=/usr/bin/formail
NL=


:0:
* ^List-Id:.*gentoo-user\.gentoo\.org
$MAILDIR/gentoo-user/

Cheers

Kevin

On 12:09 Tue 10 Oct , Steve [Gentoo] wrote:
 I'm familiar with this procmail recipe:
 
 --
 :0
 
 * ^List-Id:.*gentoo-user.gentoo.org
 | formail +1 -ds  gentoo_user
 --
 
 However... I need to use maildir is there a straightforward way to 
 deliver directly to maildir folders with formail from procmail?
 
 
 
 
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 
-- 
gentoo-user@gentoo.org mailing list