Re: Problem about "Messages not removed from POP3 server" almost solved?!

 
From: "Dada Mail" <dada@PROTECTED>
Date: August 27th 2005

The strange thing is that the problem only shows up when 2 or more
messages are in the POP3 box And only the first 2 messages are sent and
archived, the rest is ignored

One thing that may help is to explicitly destroy the list settings
and list archive objects in the archive() subroutine of
dada_bridge pl - ala place:

 undef $ls;
 undef $la;

At the end of the archive() subroutine

destroying these objects should unlock the lock file for you; so the
next time you archive a message, a new object has to be created They
should be removed automatically, because they're out of scope after
the subroutine is done - but, perhaps not?

The smarter idea would be to cache these objects for later use - I
think I'm doing this in the bounce handler but that's more of a
tuning thing - both ideas may help in fixing this problem

Although I still do not know what the relation is between $pop and
system calls, I am pretty sure now that when the archivesdb lock file
problem is solved, the undeleted POP3 messages problem will not show up
anymore also

Well, messages on the pop server will not get removed when you call
$pop->delete() - the message only gets flagged to be removed when
you disconnect If the pop server does not disconnect correctly,
these flags will not be honored, because they're lost One way to
disconnect incorrectly would be to have the program die() on you

One safety net we could make is to catch the signal for the program
to die, and tell dada_bridge pl to disconnect from the pop server
properly - I don't think there's a really good way to do this - all
the literature I've read says to only print something out when
catching the die'ing signal, but it's worth a shot, I guess

Doing some research on this, here's what I'm talking about:

 http://www
unix
org
ua/orelly/perl/cookbook/ch16_16
htm

here's a little bit on how to make Exceptions in Perl:

 http://mailman
anu
edu
au/pipermail/perl
sig/2005-April/000006
html

May be a good idea, in this instance

Justin Simoni

  • This mailing list is a public mailing list - anyone may join or leave, at any time.
  • This mailing list is a group discussion list (unmoderated)
  • Start a new thread, email: dadadev@dadamailproject.com

This is the developer discussion mailing list for Dada Mail.

If you are just looking for support Dada Mail, consult the message boards at:

https://forum.dadamailproject.com

Documentation for Dada Mail:

https://dadamailproject.com/d

Specifically, see the Error FAQ:

https://dadamailproject.com/d/FAQ-errors.pod.html

To post to this list, send a message to:

mailto:dadadev@dadamailproject.com

All subscribers of this list may post to the list itself.

Topics that are welcome:

  • Constructive critiques on the program (I like, "x", but, "y" needs some work - here's an idea on how to make this better...)
  • Bug/Error reports
  • Bug fixes
  • Request For Comments on any changes to the program
  • Help customizing Dada Mail for your own needs
  • Patches
  • Language Translations
  • Support Documentation/Doc editing, FAQ's, etc.
  • Discussion of any changes that you would like to be committed to the next version of Dada Mail -

Dada Mail is on Github:

https://github.com/justingit/dada-mail/

If you would like to fork, branch, send over PRs, open up issues, etc.

Privacy Policy:

This Privacy Policy is for this mailing list, and this mailing list only.

Email addresses collection through this mailing list are used explicitly to work within this email discussion list.

We only collect email addresses through our Closed-Loop Opt-In system.

We don't use your email address for any other purpose.

We won't be sharing your email address with any other entity.

Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.

All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.

All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.