in reply to Re: Re: accessing mailbox files
in thread accessing mailbox files

Reinventing the wheel and all that. I sound like a broken record, I guess, but I have some questions.

Q: It looks to me like if the $dirContent file has more than one message in it, you won't forward other than the first messages. Is that the case?

Q: Are you just forwarding ALL of the mail sent to a given user? If so, how is this superior to a .forward file in the user's home directory that contains: recip@email.com?

Q: If you are filtering mail to a user based on some criteria, how is this superior to using procmail? e.g. a .procmailrc file that filters for Perlmonks in the subject:

:0: * ^Subject:.*Perlmonks.* ! recip@email.com

Replies are listed 'Best First'.
Re: Re: Re: Re: accessing mailbox files
by jc23 (Acolyte) on Jul 29, 2003 at 03:25 UTC
    Saintbrie,

    To clarify, I am forwarding all messages in a single local mail folder, not all contents of inbox. I'm not sure how to do this in procmail, so I haven't used that laternative.

    Secondly, mail in the folder that is being forwarded, isn't incoming mail. It is mail that has been drag and dropped from a separate mail folder using dtmail. In other words, it is mail that the user has chosen to send out to a single alias. By putting all the mail to be sent to one address in a folder and having it automatically send, it is less tedious.

    Hope that clarifies. jc

Re: Re: Re: Re: accessing mailbox files
by jc23 (Acolyte) on Jul 29, 2003 at 03:41 UTC
    saintbrie,

    Regarding the procmailrc file, will it detect keywords from the subject of mail that is not incoming mail, but mail placed into the folder by the user?

    thanks.

    jc