[haiku-bugs] Re: [Haiku] #8506: failure to send emails on freshly installed partitions

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Sun, 29 Apr 2012 23:24:14 -0000

#8506: failure to send emails on freshly installed partitions
-----------------------------------+----------------------------
   Reporter:  mmadia               |      Owner:  czeidler
       Type:  bug                  |     Status:  new
   Priority:  normal               |  Milestone:  R1
  Component:  Servers/mail_daemon  |    Version:  R1/Development
 Resolution:                       |   Keywords:
 Blocked By:                       |   Blocking:
Has a Patch:  0                    |   Platform:  All
-----------------------------------+----------------------------
Description changed by mmadia:

Old description:

> hrev44078 -gcc2h.
>
> On a freshly installed partition, if an email is created via the `Mail'
> application, mail_daemon will not notice it's "Pending" status, until a
> user manually reindexes one or more attributes.
>
> Specifically, mail_daemon only sent those pending emails after reindexing
> MAIL:flags. I'm uncertain if reindexing MAIL:status is needed or not.
> {{{
> ~/mail/out> reindex MAIL:status * ; sync
> ~/mail/out> reindex MAIL:flags * ; sync
> }}}
>
> This seems to be an issue either with the Mail application not
> using/creating the same indexes as mail_daemon.
>
> Here's the output of lsindex, at several points.
>

> This is on a freshly initialized drive, via DriveSetup
> {{{
> ~>  cd /haiku-test/
> /haiku-test> lsindex
> BEOS:APP_SIG
> last_modified
> name
> size
> }}}
>
> This is after installing via Installer, using a mounted image file of
> hrev44078 as the source.
> {{{
> /haiku-test> lsindex
> BEOS:APP_SIG
> BEOS:LOCALE_LANGUAGE
> BEOS:LOCALE_SIGNATURE
> _trk/qrylastchange
> _trk/recentQuery
> be:deskbar_item_status
> last_modified
> name
> size
> }}}
>
> This is after booting that freshly installed partition:
> {{{
> ~/Desktop> lsindex
> BEOS:APP_SIG
> BEOS:LOCALE_LANGUAGE
> BEOS:LOCALE_SIGNATURE
> _trk/qrylastchange
> _trk/recentQuery
> be:deskbar_item_status
> last_modified
> name
> size
> }}}
>
> This is after running Mail and composing an email:
> {{{
> ~/Desktop> lsindex
> BEOS:APP_SIG
> BEOS:LOCALE_LANGUAGE
> BEOS:LOCALE_SIGNATURE
> MAIL:draft
> META:email
> META:group
> _signature
> _status
> _trk/qrylastchange
> _trk/recentQuery
> be:deskbar_item_status
> last_modified
> name
> size
> }}}
>
> This is after running mail_daemon for the first time:
> {{{
> ~/Desktop> lsindex
> BEOS:APP_SIG
> BEOS:LOCALE_LANGUAGE
> BEOS:LOCALE_SIGNATURE
> MAIL:account
> MAIL:account_id
> MAIL:cc
> MAIL:draft
> MAIL:flags
> MAIL:from
> MAIL:name
> MAIL:priority
> MAIL:read
> MAIL:reply
> MAIL:status
> MAIL:subject
> MAIL:thread
> MAIL:to
> MAIL:when
> META:email
> META:group
> _signature
> _status
> _trk/qrylastchange
> _trk/recentQuery
> be:deskbar_item_status
> last_modified
> name
> size
> }}}

New description:

 hrev44078 -gcc2h.

 On a freshly installed partition and prior to running mail_daemon for the
 first time -- if an email is created via the `Mail' application ,
 mail_daemon will not notice it's "Pending" status, until a user manually
 reindexes one or more attributes.

 Specifically, mail_daemon only sent those pending emails after reindexing
 MAIL:flags. I'm uncertain if reindexing MAIL:status is needed or not.
 {{{
 ~/mail/out> reindex MAIL:status * ; sync
 ~/mail/out> reindex MAIL:flags * ; sync
 }}}

 This seems to be an issue either with the Mail application not
 using/creating the same indexes as mail_daemon.

 Here's the output of lsindex, at several points.


 This is on a freshly initialized drive, via DriveSetup
 {{{
 ~>  cd /haiku-test/
 /haiku-test> lsindex
 BEOS:APP_SIG
 last_modified
 name
 size
 }}}

 This is after installing via Installer, using a mounted image file of
 hrev44078 as the source.
 {{{
 /haiku-test> lsindex
 BEOS:APP_SIG
 BEOS:LOCALE_LANGUAGE
 BEOS:LOCALE_SIGNATURE
 _trk/qrylastchange
 _trk/recentQuery
 be:deskbar_item_status
 last_modified
 name
 size
 }}}

 This is after booting that freshly installed partition:
 {{{
 ~/Desktop> lsindex
 BEOS:APP_SIG
 BEOS:LOCALE_LANGUAGE
 BEOS:LOCALE_SIGNATURE
 _trk/qrylastchange
 _trk/recentQuery
 be:deskbar_item_status
 last_modified
 name
 size
 }}}

 This is after running Mail and composing an email:
 {{{
 ~/Desktop> lsindex
 BEOS:APP_SIG
 BEOS:LOCALE_LANGUAGE
 BEOS:LOCALE_SIGNATURE
 MAIL:draft
 META:email
 META:group
 _signature
 _status
 _trk/qrylastchange
 _trk/recentQuery
 be:deskbar_item_status
 last_modified
 name
 size
 }}}

 This is after running mail_daemon for the first time:
 {{{
 ~/Desktop> lsindex
 BEOS:APP_SIG
 BEOS:LOCALE_LANGUAGE
 BEOS:LOCALE_SIGNATURE
 MAIL:account
 MAIL:account_id
 MAIL:cc
 MAIL:draft
 MAIL:flags
 MAIL:from
 MAIL:name
 MAIL:priority
 MAIL:read
 MAIL:reply
 MAIL:status
 MAIL:subject
 MAIL:thread
 MAIL:to
 MAIL:when
 META:email
 META:group
 _signature
 _status
 _trk/qrylastchange
 _trk/recentQuery
 be:deskbar_item_status
 last_modified
 name
 size
 }}}

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8506#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: