Paul Murphy | 1 Oct 1995 07:54
Picon

procmail, comsat, and me.

I have successfully installed procmail 3.10, and I have a nifty new
IN.testing mail folder that procmail is politely placing all 'test' mails 
into.  A happy thing.

When I get a mail that is of a non-test nature, procmail leaves it in 
/usr/spool/mail/pmurphy, and comsat biffs my screen with the expected 
notification.

When I get a mail that _is_ of a testing nature, procmail puts it in 
~/mail/IN.testing, but comsat biffs me with text taken from 
/usr/spool/mail/pmurphy.

I look in my procmail logfile (I am running VERBOSE) and I find things 
like this:

procmail: Notified comsat: \
    "pmurphy <at> 1139:/student/undrgrad/pmurphy/mail/IN.testing" 
# This line is issued during processing of my test message.

procmail: Notified comsat: "pmurphy <at> 718249:/usr/spool/mail/pmurphy" 
# This line is issued during processing of a normal message that is 
# unaffected by my lone 'test' recipe.

Is procmail attempting to tell comsat which file to look in?  And the 
proper offset in that file?  I did notice that comsat always got the 
offset from procmail just fine, it just stubbornly looked in 
/usr/spool/mail/pmurphy no matter what.  Is comsat even capable of 
looking in any other place than the usual system mailboxes?  I really 
*want* it to be able to.

(Continue reading)

Stephen R. van den Berg | 1 Oct 1995 14:25
Picon
Gravatar

Re: procmail, comsat, and me.

Paul Murphy <pmurphy <at> carbon.cudenver.edu> wrote:
>Comsat purports to prefer the form:      user <at> mailbox-offset
>However, procmail's log file seems to be indicating that it is notifying 
>comsat using this format:                user <at> offset:mailbox

>Is this reversal of parameters a clue, or the '-' vs. the ':' ??

It's a clue all right, but you misinterpreted it.  Mailbox-offset is
one word.  Your standard comsatd only expects an offset and indeed cannot
handle different mailboxes.  There are some patched comsatd's floating
around.  At the moment I don't have a reference handy, but if you can't
find anything or nobody else hands it to you, ask again.
--

-- 
Sincerely,                                                          srb <at> cuci.nl
           Stephen R. van den Berg (AKA BuGless).

A truly wise man never plays leapfrog with a unicorn.

Michael J. Corrigan | 1 Oct 1995 16:44
Favicon

Re: procmail, comsat, and me.

> handle different mailboxes.  There are some patched comsatd's floating
> around.  At the moment I don't have a reference handy, but if you can't

ftp://weber.ucsd.edu/pub/corrigan/xcomsat.tar.gz

Steve | 26 Sep 1995 07:07

echo subject line

Hi,

I am using the following recipe to extract the subject line:

:0
* ^TOhorder <at> ios.com
| echo `formail -rt -xSubject"` >> $HOME/file.txt

If the subject line is: test, I got: Re: test in my file: file.txt

How can I remove the: Re:?
I would like to get: test instead of: Re: test.

Thanks in advance.

Steve


Gmane