Hello,
I am having some problems with filtering my messages
with procmail. Let me first give you the details of my
system and programs:
- Redhat Linux 7.3 [valhalla]
- Kernel: 2.4.18-19.7.x
- fetchmail release 5.9.0+IMAP-GSS+NTLM+SSL+INET6+NL
- procmail v3.22 2001/09/10
- my system mailbox: /var/spool/mail/root
- my default mailbox: /var/spool/mail/vask
Now my query:
1. I have set up 3 users for this example: vask, v1,
v2
2. I poll my main server using fetchmail and give the
message to
vask as the default.
######################################################################
the contents of my .fetchmailrc file
````````````````````````````````````
set postmaster "postmaster"
set nobouncemail
poll pop1.mail.com proto pop3
user 'test' there with password 'test123' is vask here
options fetchall mda 'usr/bin/procmail'
######################################################################
3. Now I send 2 message to pop1.mail.com with the
Subject: test
and 1 messages with the Subject: hello.
NOTE: vask must receive all the message irrespective
of the receipes
in the .procmailrc file
4. Thus in step 3: the messages with "test" should be
given each
to v1 and a copy to v2. The message with "hello"
should go to vask.
######################################################################
Let us look at my .procmailrc file
``````````````````````````````````
VERBOSE=off
MAILDIR=/var/spool/mail
DEFAULT=/var/spool/mail/vask
LOGFILE=/var/log/procmail.log
# Recipe 1
:0
* ^Subject:.*test
{
:0 c
! v1(_at_)dcomail
:0
! v2(_at_)dcomail
:0
! vask(_at_)dcomail
}
######################################################################
RESULTS
5. Now when I run my fetchmail, the messages intended
for v1 and v2
are received properly but that of vask gets corrupted.
I do not want
to inculde the "hello" in my receipe (because I want
all the others
to go to the default i.e. vask). The file
/var/spool/mail/vask I
presume gets corrupted becase my Microsoft Outlook
Express give the
following error/message:
--------------------------------------------------------------------------
Your 'Inbox' folder was not polled for its unread
count. Could not
get the unread counts for 'Inbox' on 'Dasturco'
Account: 'Dasturco',
Server: '172.23.8.2', Protocol: IMAP, Server Response:
'STATUS failed:
Can't open INBOX (file /var/spool/mail/vask): not in
valid mailbox format',
Port: 143, Secure(SSL): No, Error Number: 0x800CCCD2
Header download for the 'Inbox' folder did not
complete. Could not select
'Inbox' on the IMAP server. You might try refreshing
your folder list to
synchronize with the IMAP server. Account: 'Dasturco',
Server: '172.23.8.2',
Protocol: IMAP, Server Response: 'SELECT failed: Can't
open INBOX
(file /var/spool/mail/vask): not in valid mailbox
format', Port: 143,
Secure(SSL): No, Error Number: 0x800CCCD2
--------------------------------------------------------------------------
6. And when I open the same in pine for vask, this
message is shown
in the start screen:
"Folder inbox opened with one message READONLY"
and in the inbox i get the message with this
subject "/var/spool/mail/vask", on opening I can only
read
as I can when I open the /var/spool/mail/vask file.
How can I tell procmail to send all the message which
are not included in the receipes to send to this
default
folder.
Any help / solution appreciated. Thanking you.
- Vasant
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail