HylaFAX The world's most advanced open source fax server

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

[hylafax-users] R: R: delete tiff after received and order by tim est amp.



I've try and in this way I can change the name of the attachment but how can
I rename the file and mv it in another folder?
thanks.

> -----Messaggio originale-----
> Da:	Giulio Orsero [SMTP:giulioo@xxxxxxxxx]
> Inviato:	giovedì 3 marzo 2005 16.08
> A:	hylafax-users@xxxxxxxxxxx
> Oggetto:	Re: [hylafax-users] R: delete tiff after received and order
> by timest amp.
> 
> On Thu, 3 Mar 2005 14:27:37 +0100, Meli Marco
> <Marco.Meli@xxxxxxxxxxxxxxxxxxx> wrote:
> > I have set recvq directory as samba share so anybody can view and pick
> up
> > theirs fax.
> > I said them to delete the fax after they have relocate it in the
> personal
> > folder.> Others fax I can send via email attachment, so it's only to
> help my user > maintain the share fax folder clean.
> 
> What happens if the email get lost?
> If you do it, then just mv the file somewhere else instead of removing
> them for good.
> 
> > Anyway for the second problem have you an example to show me as can I
> set
> > the name?
> 
> cd /var/spool/hylafax/bin
> cp  faxrcvd faxrcvd.custom
> Edit  faxrcvd.custom, Look for the places like (there are 3 of them)
>  if [ "$FILETYPE" = "tif" ]; then
>          echo "Content-Type: image/tiff; name=\"$FILENAME.tif\""
>          echo "Content-Description: FAX document"
>          echo "Content-Transfer-Encoding: $ENCODING"
>          echo "Content-Disposition: attachment;
> filename=\"$FILENAME.tif\""
>          echo ""
>          encode $FILE;
> 
> just change the 2 "FILENAME.tif " into whatever you want
> ie
> MYFILE=`date +%Y-%m-%d_%H-%M`
>     ...
>      echo "Content-Type: image/tiff; name=\"$MYFILE.tif\""
>    ...
> 
> then edit etc/config.<devid> and use 
> FaxRcvdCmd:             bin/faxrcvd.custom
> 
> -- 
> giulioo@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*

____________________ 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