Your message dated Tue, 30 Sep 2025 10:45:09 +0000
with message-id <[email protected]>
and subject line Bug#1116283: Removed package(s) from unstable
has caused the Debian Bug report #110480,
regarding support multiple patterns for store
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
110480: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110480
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mailsync
Version: 4.1-4
Severity: normal

Hello,

I have no idea if this is the best solution or not, or if you will like
it or not <grin>, but here is my hacked 10 minute change which allows
specifying stores like:

store snoopy {
        server  {snoopy.apana.org.au/user=bam}
        ref     {snoopy.apana.org.au}
        pat     INBOX
        pat     INBOX.Important
        pat     INBOX.user.%
        pat     INBOX.jobs.%
        pat     INBOX.lists.*
        prefix  INBOX.
}

this will list any mailbox that matches any of those patterns
(duplicates might be a problem...)

Hint: The * seems to be the same as % but it will match subfolders too,
so the INBOX.lists.a.b will match but INBOX.jobs.a.b won't.

one problem is that INBOX just appears as an empty string,
because it doesn't match INBOX. Might be better just to remove that
prefix for now...

I also need to check for possible side affects to. Does
the fact that INBOX.backup is not matched by this store mean
that it will be detected as deleted/created if it does exist
on the other store?

--- mailsync.old        Wed Jun  7 04:41:36 2000
+++ mailsync.c  Wed Aug 29 13:52:03 2001
@@ -47,7 +47,8 @@
 
 struct Store {
   string tag, server, prefix;
-  string ref, pat;
+  string ref;
+  StringSet apats;
   int isremote;     /* i.e. allows OP_HALFOPEN */
   int delim;
 
@@ -56,7 +57,7 @@
     server = "";
     prefix = "";
     ref = "";
-    pat = "";
+    apats.clear();
     isremote = 0;
     delim = '!';
     return;
@@ -67,7 +68,10 @@
     if (server!="") { fprintf(f,"\n\tserver "); print_with_escapes(f,server); }
     if (prefix!="") { fprintf(f,"\n\tprefix "); print_with_escapes(f,prefix); }
     if (ref!="") { fprintf(f,"\n\tref "); print_with_escapes(f,ref); }
-    if (pat!="") { fprintf(f,"\n\tpat "); print_with_escapes(f,pat); }
+    for (StringSet::iterator i=apats.begin(); i!=apats.end(); i++) {
+      fprintf(f,"\n\tpat ");
+      print_with_escapes(f,*i);
+    }
     fprintf(f,"\n}\n");
     return;
   }
@@ -208,7 +212,7 @@
          conf->store->ref = t->buf;
        } else if (t->buf == "pat") {
          get_token(f, t);
-         conf->store->pat = t->buf;
+         conf->store->apats.insert(t->buf);
        } else {
          fprintf(stderr,"Unknown store field\n");
          parse_error_fatal(t);
@@ -283,7 +287,9 @@
 void tdc_mail_list(MAILSTREAM *stream, Store& store, StringSet& list) {
   tdc_mail_list_store = &store;
   tdc_mail_list_dest = &list;
-  mail_list(stream, nccs(store.ref), nccs(store.pat));
+  for (StringSet::iterator i=store.apats.begin(); i!=store.apats.end(); i++) {
+    mail_list(stream, nccs(store.ref), nccs(*i));
+  }
   tdc_mail_list_store = NULL;
   tdc_mail_list_dest = NULL;
 }
@@ -336,7 +342,8 @@
 void get_delim(MAILSTREAM*& stream, Store& store_in) {
   Store store = store_in;
   store.prefix = "";
-  store.pat = "INBOX";
+  store.apats.clear();
+  store.apats.insert("INBOX");
   StringSet boxes;
   tdc_mail_list(stream, store, boxes);
   store_in.delim = store.delim;

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux scrooge 2.4.7 #1 Sun Jul 29 14:50:36 EST 2001 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages mailsync depends on:
ii  libc-client-ssl 1:2001beta010722debian-4 UW c-client library for mail proto
ii  libc6           2.2.4-1                  GNU C Library: Shared libraries an
ii  libssl0.9.6     0.9.6b-1                 SSL shared libraries
ii  libstdc++2.10-g 1:2.95.4-0.010810        The GNU stdc++ library



--- End Message ---
--- Begin Message ---
Version: 5.2.7-3.3+rm

Dear submitter,

as the package mailsync has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1116283

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to