Ok, I've searched the forums here, and I see similar issues, but no concrete solutions.
I've got multiple sonic email addresses. I'd like to setup procmail for some of them. My needs are fairly sparse - I could live with each email address using the same procmail recipes.
I've got one shell account. I've setup and verified a .procmailrc for that account. Other postings on the forums indicate I can call up support have them create a symbolic link from the "other" email addresses to my one .procmailrc (Since I don't have shell accounts for the other email addresses).
My problem is in creating the "shared" assignment statements in my .procmailrc.
I wasn't able to "redirect" via a variable the location of my MAILDIR folder i.e. this did NOT work:
MAILDIR=$MAIL
$MAIL does exist in my shell environment, but under whatever process procmail is run, it's not set.
So, I had to hardcode my MAILDIR:
MAILDIR=/var/spool/mail/nn/mm/name/
This works, but of course for only the one email address. The "shared" .procmailrc would fail for the other email addresses (plus I don't even know the "nn/mm" directory for the other emails - although I'm sure support could help me)
Any pointers?
Thanks,
Mark
I've got multiple sonic email addresses. I'd like to setup procmail for some of them. My needs are fairly sparse - I could live with each email address using the same procmail recipes.
I've got one shell account. I've setup and verified a .procmailrc for that account. Other postings on the forums indicate I can call up support have them create a symbolic link from the "other" email addresses to my one .procmailrc (Since I don't have shell accounts for the other email addresses).
My problem is in creating the "shared" assignment statements in my .procmailrc.
I wasn't able to "redirect" via a variable the location of my MAILDIR folder i.e. this did NOT work:
MAILDIR=$MAIL
$MAIL does exist in my shell environment, but under whatever process procmail is run, it's not set.
So, I had to hardcode my MAILDIR:
MAILDIR=/var/spool/mail/nn/mm/name/
This works, but of course for only the one email address. The "shared" .procmailrc would fail for the other email addresses (plus I don't even know the "nn/mm" directory for the other emails - although I'm sure support could help me)
Any pointers?
Thanks,
Mark