1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
diff -ur xfaces-3.3.orig/debian/control xfaces-3.3/debian/control
--- xfaces-3.3.orig/debian/control 2003-08-10 23:38:51.000000000 +1200
+++ xfaces-3.3/debian/control 2004-07-26 12:38:35.000000000 +1200
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Hakan Ardo <hakan@debian.org>
Standards-Version: 3.1.1.0
-Build-Depends: xlibs-dev, libxaw7-dev, nas-dev, libcompfaceg1-dev, xutils, debhelper
+Build-Depends: xlibs-dev, libxaw7-dev, nas-dev, libcompfaceg1-dev, xutils, debhelper, rman
Package: xfaces
Section: mail
Only in xfaces-3.3/debian: files
Only in xfaces-3.3/debian: substvars
Only in xfaces-3.3/debian: tmp
diff -ur xfaces-3.3.orig/faces.h xfaces-3.3/faces.h
--- xfaces-3.3.orig/faces.h 1997-01-19 06:10:25.000000000 +1300
+++ xfaces-3.3/faces.h 2004-07-26 15:26:58.000000000 +1200
@@ -181,6 +181,7 @@
int pop_port;
String pop_auth_file; /* login/passwd for pop server */
/* (full path!) */
+ Boolean pop_use_top; /* whether to use TOP or RETR */
String image_path; /* Where to find the images. */
char* image_path_str;
char** image_paths;
diff -ur xfaces-3.3.orig/main.c xfaces-3.3/main.c
--- xfaces-3.3.orig/main.c 1998-02-22 07:32:06.000000000 +1300
+++ xfaces-3.3/main.c 2004-07-26 15:25:19.000000000 +1200
@@ -139,6 +139,10 @@
offset(pop_port), XtRString, "110"
},
{
+ "popTop", "popTop", XtRBoolean, sizeof(Boolean),
+ offset(pop_use_top), XtRBoolean, (caddr_t) &defTrue
+ },
+ {
"listCommand", "Command", XtRString, sizeof(String),
offset(list_command), XtRString, NULL
},
@@ -328,6 +332,9 @@
},
{
"-pop", "popHost", XrmoptionSepArg, NULL
+ },
+ {
+ "-popretr", "popTop", XrmoptionNoArg, "False"
}
};
diff -ur xfaces-3.3.orig/pop_check.c xfaces-3.3/pop_check.c
--- xfaces-3.3.orig/pop_check.c 1997-01-19 06:10:27.000000000 +1300
+++ xfaces-3.3/pop_check.c 2004-07-26 15:27:36.000000000 +1200
@@ -362,7 +362,14 @@
fprintf(stderr, "PopRetr(%d)\n", item);
#endif
- fprintf(output, "RETR %d\r\n", item);
+ if (TheFacesResources.pop_use_top)
+ {
+ fprintf(output, "TOP %d 0\r\n", item);
+ }
+ else
+ {
+ fprintf(output, "RETR %d\r\n", item);
+ }
if (!PopResponce())
{
diff -ur xfaces-3.3.orig/xfaces.man xfaces-3.3/xfaces.man
--- xfaces-3.3.orig/xfaces.man 1997-01-19 06:10:27.000000000 +1300
+++ xfaces-3.3/xfaces.man 2004-07-26 15:37:42.000000000 +1200
@@ -75,6 +75,10 @@
.BI \-pop " <hostname>"
This option specifies the host name to use for a POP3 mailbox. Also
available as \fBXFaces.popHost\fP.
+.TP 8
+.BI \-top
+For backwards compatibility, use the RETR POP3 command instead of TOP
+to check for new messages on the POP3 server.
.SH X DEFAULTS
The application class name is \fBXFaces\fP. For best results the
following \fBShell\fP resource is suggested:
@@ -188,6 +192,12 @@
This specifies what \fIport number\fP to use for POP. The default is
the standard POP3 port 110.
.TP 8
+.BI XFaces.popTop: " <flag>"
+Specify whether or not to use the newer TOP POP3 command, rather than
+the RETR command (which may have the side-effect of marking the mail
+read on the POP3 server). This also reduces the amount of network traffic
+to the POP3 server, so is enabled by default.
+.TP 8
.BI XFaces.listCommand: <user command>
This resource specifies a user command that will be executed instead
of looking at the spool file. If this resource is specified then
|