Jan Lühr
2012-May-01 14:42 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
Hello,
I did:
require ''ftools''
require ''rubygems''
require ''set''
require ''tmail''
mailbox = TMail::UNIXMbox.new("/var/spool/mail/jan") # Symlink to:
/var/mail/jan
mailbox.each do |mail|
puts mail.inspect
end
And all mail was gone - deleted - the mailbox is 0 bytes now! ARGS. Plz fix!
Keep smiling
yanosz
Btw.
# cat /etc/debian_version
6.0.4
# ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
Željko Filipin
2012-May-03 08:24 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
On Tue, May 1, 2012 at 4:42 PM, Jan L?hr <jluehr at gmx.net> wrote:> And all mail was gone - deleted - the mailbox is 0 bytes now! ARGS. Plzfix! I am not sure how anybody could fix the fact that your mailbox is empty now. By the way, tmail gem was replaced with mail gem: https://rubygems.org/gems/tmail https://rubygems.org/gems/mail ?eljko -- watir.com/book - author -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20120503/bb12d300/attachment-0001.html>
Jan Lühr
2012-May-03 08:40 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
Hello, well, I''ll fix that part with my backup ;-) However, I my point is, that I didn''t expect that. I''ve never assumed that the attached code will delete anything. Imho this is a really bad way of api design. Please fix this part. I see no reason, why parsing and working with a mailbox in r/w-mode should truncate ''em at all. This is error-prone (imho) and won''t be necessary if you provide a truncate method on the mailbox object Greets, Jan Am 03.05.2012 um 10:24 schrieb ?eljko Filipin:> On Tue, May 1, 2012 at 4:42 PM, Jan L?hr <jluehr at gmx.net> wrote: > > And all mail was gone - deleted - the mailbox is 0 bytes now! ARGS. Plz fix! > > I am not sure how anybody could fix the fact that your mailbox is empty now. > > By the way, tmail gem was replaced with mail gem: > > https://rubygems.org/gems/tmail > https://rubygems.org/gems/mail > > ?eljko > -- > watir.com/book - author > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20120503/4d0327e1/attachment.html>
Željko Filipin
2012-May-03 08:53 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
On Thu, May 3, 2012 at 10:40 AM, Jan L?hr <jluehr at gmx.net> wrote:> Please fix this part.What I wanted to say is that tmail is abandonware[1] and will not be fixed. Please use mail gem. ?eljko -- [1] http://en.wikipedia.org/wiki/Abandonware -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20120503/ec3929a9/attachment.html>
Jan Lühr
2012-May-03 09:00 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
Hallo, does mail actually support Unix-Mailboxes as a receiver method? Can you provide an link to the concerned rdoc-file? Afaik pop3 and imap is supported only and I haven''t been able to find anything else yet. Thx, Jan Am 03.05.2012 um 10:53 schrieb ?eljko Filipin:> On Thu, May 3, 2012 at 10:40 AM, Jan L?hr <jluehr at gmx.net> wrote: > > Please fix this part. > > What I wanted to say is that tmail is abandonware[1] and will not be fixed. Please use mail gem. > > ?eljko > -- > [1] http://en.wikipedia.org/wiki/Abandonware > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20120503/f0f49075/attachment.html>
Željko Filipin
2012-May-03 09:13 UTC
[Tmail-talk] tmail-1.2.7.1-gem: Mailbox parsed, mailbox deleted ...
On Thu, May 3, 2012 at 11:00 AM, Jan L?hr <jluehr at gmx.net> wrote:> does mail actually support Unix-Mailboxes as a receiver method?Please ask here: https://groups.google.com/forum/?fromgroups#!forum/mail-ruby ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20120503/19b0a2ba/attachment.html>