⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 用于使用moden进行传真的源代码
💻
📖 第 1 页 / 共 2 页
字号:
the "Tel number" box.  This can be entered directly into the box, orby using the built-in addressbook.  The addressbook can be invoked bypressing the "Tel number" button, or from the `File/Address book'pull-down menu item.  See "Using the address book" further below.However, if a telephone connection has already been established withthe remote fax receiver, then the fax can be sent without dialing byleaving the "Tel number" box blank (a dialog will come up asking ifyou would like to send the fax without dialing - this does the samething as 'fax send -m ...' using the efax 'fax' script from thecommand line).When a fax is received from the print system via the socket server,the program settings can also be configured to bring up a dialogautomatically.  If the program is inactive (for example, it is notstanding by to receive faxes) the fax can be sent directly from thisdialog without the need to invoke the list of queued faxes receivedfrom the socket.Successfully sent faxes are copied to a directory in the $HOME/faxsentdirectory, which has a name derived from the year, month, day, hourand seconds when the sending of the fax was completed, and will appearin the faxes sent list.  They are only included in that list if theyhave been sent without error.  The efax message display box willreport on the progress of a fax being sent.  The fax list can bebrought up from the `File/List sent faxes' pull down menu item.  See'Using the fax lists" further below.Receiving faxes---------------Three ways of receiving faxes are provided for.First, the program can be set to answer a fax call which is ringingbut has not been answered, by pressing the "Answer call" button.Secondly, the program can take over a call which has already beenanswered (say, by a telephone hand set) by pressing the "Take overcall" button.Thirdly, the program can be placed in standby mode by pressing the"Standby" button.  This will automatically answer any call after thenumber of rings specified in the efax-gtkrc file, and receive the fax.The program will keep on receiving faxes until the "Stop" button ispressed.Received faxes in tiffg3 format (one file for each page) are placed ina directory in the $HOME/faxin directory, which has a name derivedfrom the year, month, day, hour and seconds when the relevant "Answercall", "Take over call" or "Standy" button was pressed.  (Where instandby mode after a fax has been received, any further fax willderive its name from the time when receipt of the last received faxhas been completed and the program goes back into standby mode.)Received faxes can be printed, viewed, described and managed using thebuilt in fax list facility.  This can be brought up from the`File/List received faxes' pull down menu item.  See "Using the faxlists" further below.When a fax is received, a pop-up dialog can also be set to appear (goto the Settings dialog to do this).  In the settings dialog you canalso specify a program to be executed when a fax is received.  Thenumber of the fax is passed as the first (and only) argument to theprogram, which enables the program to find the fax in $HOME/faxin.The distribution contains two executable scripts, mail_fax andprint_fax, which can be used to e-mail a fax or print a fax to a userautomatically when it is received.  (These scripts are not installedby 'make install' - if you want to use them, make them executable with'chmod +x' and copy them to a directory which is in the system path,such as /usr/local/bin, and then specify the script name in thesettings dialog).Using the address book----------------------To pick a telephone number from the address book, highlight therelevant address by pressing the left mouse button over it, and thenpress the "OK" button.Addresses can be added to the address book by pressing the add button,and then completing the relevant dialog which will appear.  To deletean address from the address book, highlight the relevant address andpress the delete (trashcan) button.  The addressbook can be sorted byusing the up and down arrow buttons on a highlighted address, or bydragging and dropping using the mouse.Addresses are stored in file `$HOME/.efax-gtk_addressbook'.Using the fax lists-------------------To bring up the fax lists, go to the the `File' menu and pick the`List received faxes' or `List sent faxes' menu item.  Highlight thefax to printed or viewed by pressing the left mouse button.  Theprograms to be used to print and view the fax are specifed in theefax-gtkrc configuration file, or if none are specified, the programwill print using lpr (which will work for most Unix systems) and viewwith gv.To print faxes, a PRINT_SHRINK parameter can be specifed in efax-gtkrcto enable the fax page to fit within the printer margins.  A parameterof 98 will work with most printers.  This can be changed while theprogram is running by bringing up the `Settings' dialog and enteringit into the `Print/Print Shrink' box.A fax can be deleted from a fax list by pressing the delete (trashcan)button.  This will place the deleted fax in the $HOME/faxin/oldfaxor $HOME/faxsent/oldfax directory.NB: link()/unlink() are used to move a fax, so $HOME/faxin/oldfax mustbe on the same file system as $HOME/faxin, and $HOME/faxsent/oldfaxmust be on the same file system as $HOME/faxsent.  If they are not,the fax will remain in $HOME/faxin or $HOME/faxsent.A description can be added to a received fax when appearing in a faxlist (or subsequently amended) by pressing the relevant button -- thiswill enable faxes to be more easily identified.To refresh a fax list (say, to update with any faxes received or sentsince the fax list was brought up), press the refresh button.Settings--------The program settings can be changed by manually editing the efax-gtkconfiguration file comprising $HOME/.efax-gtkrc,$sysconfdir/efax-gtkrc or /etc/efax-gtkrc.  The file is searched forin that order, so $HOME/.efax-gtkrc takes precedence over the othertwo.The configuration file can also be set by using the Settings dialoglaunched from the `File/Settings' pull down menu item.  The settingsentered using this dialog are always stored as $HOME/.efax-gtkrc.Accordingly, if the Settings dialog has been used, and you want torevert to the global settings, this can be done either by deleting the$HOME/.efax-gtkrc file, or by pressing the `Reset' button in theSettings dialog, which will reload the Settings dialog from the globalconfiguration file ($sysconfdir/efax-gtkrc or /etc/efax-gtkrc).Help can be obtained when filling out the Settings dialog by holdingthe mouse over the relevant help (?) button, which will bring up a"Tips" display, or by pressing the button, which will bring up aninformation display.                       USING WITH A WORD PROCESSORPrinting to file from the program itself----------------------------------------Probably the easiest way of using the program with a word processor isto print to file from the print dialog of the word processor programconcerned, and choosing a file name in the $HOME/faxout directorywhich can then be selected with the file selector dialog in efax-gtk.All Unix/Linux word and document processing programs will print tofile in Postscript format, ready to be faxed by efax-gtk.  (At least,if there is one which does not, I do not know of it).Faxing via CUPS---------------Version 2.2.* provides a socket server, which CUPS can connect to.When the socket server is running, fax files received from CUPS willautomatically be displayed in a "Queued faxes from socket" listmaintained by efax-gtk.  From this list, a fax can be selected forsending by efax-gtk, so there is no need to print to file from theword processor and then select the file with the file selection dialogin efax-gtk.When a fax is received in this way from the print system via thesocket, the program settings can also be configured to bring up adialog automatically.  If the program is inactive (for example, it isnot standing by to receive faxes) the fax can be sent directly fromthis dialog without the need to invoke the list of queued faxesreceived from the socket.If you are using CUPS and you want to connect it directly to efax-gtkas mentioned above, you can do so by bringing up the faxadministration page for CUPS in a web browser, installing a newprinter with a name of "fax" (or whatever other name you want), choosethe IPP protocol, pick a URI of "socket://[hostname]:[port]", andchoose the "Raw" CUPS printer driver.The port number can be any port number less than 65536 and more than1023 which is not used by any other service on your machine/network(this can be checked out by using nmap, but it is best to avoid anylisted in /etc/services).  For example, as you will usually beprinting from a local computer, if you choose a port number of 9900(would would be quite reasonable) the URI would be:socket://localhost:9900You should then start efax-gtk, go to the Socket tab in the settingsdialog, check the "Run socket server" box, and enter 9900 in the "Portto which faxes to be sent" box.To send a fax from the "Queued faxes from socket" dialog, highlightthe one to be sent, press the "Enter selected fax to send" button inthe dialog (the one with an icon representing a fax machine) whichwill enter the fax in the "File to fax" box in efax-gtk, and thenchoose a telephone number to send it to and press the "Send fax"button in the ordinary way.If efax-gtk isn't running when you attempt to send a file via CUPS toefax-gtk don't worry.  CUPS will queue the fax until it detects thatthe efax-gtk socket server is running, and then send it to efax-gtk.Faxing via lpd/lprng--------------------The socket server can also be used in the same way with lpd/lprng.The files efax-gtk-faxfilter and efax-gtk-socket-client are installedin /var/spool/fax, when you run 'make install' (the installationdirectory can be changed at the ./configure stage using the./configure --spooldir=[dir] parameter).  You should add at the end of/etc/printcap the following -fax:\	:sd=/var/spool/fax:\	:mx#0:\	:sh:\	:lp=/dev/null:\	:if=/var/spool/fax/efax-gtk-faxfilter:This will cause a printer by the name of "fax" to be available, which(if printed to) will send the file to the efax-gtk socket server.  Ifyou set efax-gtk to listen on a port other than port 9900, you willneed to amend the file /var/spool/fax/efax-gtk-faxfilter by hand tospecify the correct port number on which efax-gtk is listening.Don't forget to restart the lpd printer daemon after amending/etc/printcap.  (An equivalent addition to /etc/printcap can also bemade by using the printer configuration tool with your distribution,choosing a printer name of "fax" (or whatever other name you want),choosing a printer device of "/dev/null", a spool directory of"/var/spool/fax" and an input filter of"/var/spool/fax/efax-gtk-faxfilter".)                                LOGGINGErrors and warnings from efax are displayed in red in the applicationtext window, and information messages and reports on the progress ofnegotiations and on fax status are displayed in black in the window.In addition, these messages are sent to stderr and stdoutrespectively.  Accordingly, fax status can be logged by redirectingstderr and stdout to a log file.As an alternative, a log file can also be maintained by setting theLOG_FILE parameter in the efax-gtkrc configuration file, or byentering a log file name via the Settings dialog.  If no log file isspecified, no log file will be maintained.                                SCANNERSIf you have a scanner and want to fax it's output, you may find thatit produces a separate postscript file for each page.  The easiest wayof dealing with this is to concatenate the postscript page filesproduced by the scanner to a single fax file such as /tmp/faxfile.ps,using 'cat' and appropriate command line wildcards.  You may want toautomate this with a script.Alternatively, as mentioned above, more than one file can be specifiedin the "File to fax" box when the program is running.                          INTERNATIONALISATIONVersion 2.0 and above of the program has been written to accommodatei18n support.  If anyone wants to provide me with a *.po file withtranslations into their language/locale, I will include it in thedistribution.An efax-gtk.pot file and other relevant build tools are included inthe po directory in the source directory for the purpose.                          CONTACTING THE AUTHORMy e-mail address is chris@cvine.freeserve.co.uk.Updates can be obtained from http://efax-gtk.sourceforge.net/Chris Vine.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -