procmail
[Top] [All Lists]

Re: POP3 and IMAP coexistent

2005-06-03 06:20:05
On Fri, Jun 03, 2005 at 06:48:30AM -0600, Google Kreme wrote:

On 03 Jun 2005, at 06:07 , powtac wrote:

I want to set up for each of the actual POP3 boxes parallel
a IMAP account for each user. Can I use a Procmail filter to
deliver incomming Mails double (POP3 and IMAP)?

You are confused. procmail knows nothing about POP or IMAP,
that is the job or your mailserver.  Most mailserver software
(courier, uw- imap) include both POP3 and IMAP services, though
the POP3 may (properly) be disabled by default.

True.  However, we can add for the OP that it's trivial to
clone the message with procmail and create a maildir-style copy
and an mbox-style copy.

More interesting to me was this experiment:


 :0
 foo/ bar

Neither folder or dir existed before.  Here's what happened when
I ran a handy spam message ($SPAMPLE) through that:

    procmail: Assigning "LASTFOLDER=foo/new/1117803795.5513_0.panix5.panix.com"
 procmail: Linking to "bar/msg.Jw5J"
 From affiliations(_at_)rosen(_dot_)net  Wed May 25 02:06:23 2005
  Subject: Little magic. Perfect weekends.
   Folder: foo/new/1117803795.5513_0.panix5.panix.com bar/msg.Jw5J          1624


In other words, the "bar" one is a legacy-procmail-style dir that was
created for me.  This interests me, because If I just write

  :0
  bar

of course, no directory "bar" will be created; we'll save directly to a flat
"Berkeley-style" mbox file.  (And we'll have wished we'd used a lockfile.)

Otoh, if I stick a file (not dir) called "bar" int here before the run, I get
this:

    procmail: Assigning "LASTFOLDER=foo/new/1117804198.29232_0.panix5.panix.com"
 procmail: Unable to treat as directory "bar"
 procmail: Skipped "bar"
 From affiliations(_at_)rosen(_dot_)net  Wed May 25 02:06:23 2005
  Subject: Little magic. Perfect weekends.
   Folder: foo/new/1117804198.29232_0.panix5.panix.com                      1624



Okay, that's all an aside, but intriguing nonetheless.  Perhaps the OP
wants:

  :0 c
  foo/

  :0:
  bar

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>