Hello, Courier users !

If you like, please comment on this request.

Begin forwarded message:

Date: Mon, 26 Jul 2004 15:19:38 +1200
From: Sam Vilain <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: Bug#261453: Does not set Status: headers


Package: courier-pop
Version: 0.45.6.20040712-1
Severity: normal
Tags: patch

Normally, when mail is read, a POP3 server will set the Status: RO
header in the message.  This is so I can use `xfaces' :-).

In fact, the courier-pop server shows messages as being present and no
different to when they are new, even though they are deleted via IMAP.
You need to "purge deleted messages" to get rid of them.

Maybe a nice quick hack would be something like this:

--- pop3dserver.c.orig  2004-07-26 14:39:48.000000000 +1200
+++ pop3dserver.c       2004-07-26 14:42:27.000000000 +1200
@@ -651,7 +651,13 @@
                        {
                                if (inheader)
                                {
-                                       if (c == '\n')  inheader=0;
+                                       if (c == '\n')
+                                       {
+                                               if ((p=strchr(msglist_a[i]->filename, 
MDIRSEP[0])) != 0 &&
+                                                   (p[1] != '2' || p[2] != ',' || 
strchr(p, 'S') != 0))
+                                                       puts("Status: RO\r");
+                                               inheader=0;
+                                       }
                                }
                                else if ( (*lptr)-- == 0)       break;
                        }

I found this on http://www.expita.com/header1.html, if anyone feels
inspired to implement this feature more completely: | >-

  Status: Status is a non-standard RFC2822 message header added by
    Eudora and other e-mail clients after message delivery to indicate
    the status of delivery for this message when stored. Common values
    of this field are:

    * U message is not downloaded and not deleted.
    * R message is read or downloaded.
    * O message is old but not deleted.
    * D to be deleted.
    * N new (a new message also sometimes is distinguished by not
      having any "Status:" header)

   Combinations of these characters can occur, such as "Status: RO" to
   indicate that a message is downloaded but not deleted.

...

The Status: header is understood by an awful lot of existing programs
out there.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.5
Locale: LANG=en_NZ, LC_CTYPE=en_NZ

Versions of packages courier-pop depends on:
ii  courier-authdaemon     0.45.6.20040712-1 Courier Mail Server - Authenticati
ii  courier-base           0.45.6.20040712-1 Courier Mail Server - Base system
ii  exim [mail-transport-a 3.36-11           An MTA (Mail Transport Agent)
ii  libc6                  2.3.2.ds1-13      GNU C Library: Shared libraries an

-- no debconf information




-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to