HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] wedged emails



Do you really made it work that way? As far as I know, procmailrc conditions are ANDed, so i.e. site1@xxxxxxxxxx will receive a "wedged email" only if procmail finds _both_ ttyp1 / ttyp5 / etc. in the subject.. this seems quite odd to me. A neater way to write a procmail recipe would be to avoid the brackets if the actions to take are no more than one (i.e. forward an email _and_ store it).

Strictly speaking, you should write them this way:

:0
* ^Subject:.*ttyp1
site1@xxxxxxxxxx

:0
* ^Subject:.*ttyp5
site1@xxxxxxxxxx


:0 * ^Subject:.*ttypb site1@xxxxxxxxxx

:0
* ^Subject:.*ttyp6
site2@xxxxxxxxxx

..and so on. Maybe there's a better way to write all this stuff (something like ^subject:.*ttyp1 OR *ttyp5 etc.), but I'm not that good with procmail to tell you how.


Danilo



----- Original Message ----- From: "Tony Delov" <Tony.Delov@xxxxxxxxxxxxxxx>
To: "Hylafax Users Mailing List" <hylafax-users@xxxxxxxxxxx>
Sent: Wednesday, November 22, 2006 11:15 PM
Subject: Re: [hylafax-users] wedged emails



Thank you for your help,
On my system, I have Faxmaster's mail sent to root then root's mail gets sent out to another external email. (set up in the email alias file.)
I have added a procmailrc file to the root home directory, which seems to work and send the mails to the appropriate people.


The only question I have now - which I realize is more a procmail syntax question,
but is there a better (neater) way of doing this?


:0
* ^Subject:.*ttyp1
* ^Subject:.*ttyp5
* ^Subject:.*ttypb
* ^Subject:.*ttyq9
* ^Subject:.*ttypc
* ^Subject:.*ttyq8
* ^Subject:.*ttyqa
{
       :0 c
      ! site1@xxxxxxxxxx
}

:0
* ^Subject:.*ttyp6
* ^Subject:.*ttyp7
* ^Subject:.*ttyp8
* ^Subject:.*ttyp9
* ^Subject:.*ttypd
* ^Subject:.*ttype
* ^Subject:.*ttyp0
* ^Subject:.*ttypf
* ^Subject:.*ttyqb
* ^Subject:.*ttyqc
{
       :0 c
      ! site2@xxxxxxxxxx
}








SCIN - Danilo Bottino wrote:
Yes it does, just put the correct recipes in .procmailrc. If you are using maildirs and wish to store a copy for Faxmaster too, add this just before the closing bracket of each recipe:

:0
new

Danilo

I'm not sure how this would work.
Doesn't procmail process incoming mail? (not 100% sure about this)
I would need something to pre-process the outgoing mail.

SCIN - Danilo Bottino wrote:
I did it by procmail. Check for the tty name in the mail subject and forward them to your preferred users. Here's what I have in /home/faxmaster/procmail.rc:

:0
* ^Subject:.*ttyS0
{
        :0 c
       ! user0@domain
}

:0
* ^Subject:.*ttyS1
{
        :0 c
       ! user1@domain
}

:0
* ^Subject:.*ttyS2
{
        :0 c
       ! user2@domain
}



Danilo

----- Original Message ----- From: "Tony Delov" <Tony.Delov@xxxxxxxxxxxxxxx>
To: <hylafax-users@xxxxxxxxxxx>
Sent: Wednesday, November 22, 2006 12:29 AM
Subject: [hylafax-users] wedged emails



Hi All,
I was wondering if there was a way to send the "wedged" email to different users based on the wedged modem tty?



Thanks Tony D





Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.


Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of The Gribbles Group.

Thank You.

Whilst every effort has been made to ensure that this e-mail message and any attachments are free from viruses, you should scan this message and any attachments.
Under no circumstances do we accept liability for any loss or damage which may result from your receipt of this message or any attachment.


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*






Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.


Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of The Gribbles Group.

Thank You.

Whilst every effort has been made to ensure that this e-mail message and any attachments are free from viruses, you should scan this message and any attachments.
Under no circumstances do we accept liability for any loss or damage which may result from your receipt of this message or any attachment.


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*





____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions