Author Topic: Mail: No Sent, No draft  (Read 2156 times)

daniel_hug

  • Freshman
  • *
  • Posts: 35
    • View Profile
Mail: No Sent, No draft
« on: January 13, 2010, 02:12:31 pm »
Hi there,
we started using the mail-part of og/fo.
System: Linux/apache2/ og1.6.1 (updated from 1.5.3 AND "out of the box")

Actually all the users (exept. admin) can't see their sent and draft mails.
The "foldesr" are empty.

I switched from POP to IMAP, same problem.
A look into the DB shows mail_content entries with a "state" values ranging from 0 to 5.  The state (2) and modified dates in the DB are ok.
I can see the mail in draft if i change the "is_privat" value from 1 to 0.

will examinate the sent problem later.

any ideas?? help, input appreciated! :-)

regards
Daniel
« Last Edit: January 13, 2010, 02:14:18 pm by daniel_hug »

daniel_hug

  • Freshman
  • *
  • Posts: 35
    • View Profile
Re: Mail: No Sent, No draft
« Reply #1 on: January 14, 2010, 07:23:33 pm »
Actaully i'm digging in the MailController.class.php to hunt down my mailproblems. That are:
- user can't see draft mails (they are in the DB, no error)
- user can't see sent mails (they are in the DB, no error)

Playing around with the DB I found out, it has to do with the "state" and "is_private" field.

And digging around, i found something i dont kow. So my question:
what does the following line of code:
$mail->setState($isDraft ? 2 : 200); actually why, or what means "200" as state (shuoldn't it be "false"?).
Further i think ALL mails get Markd "isPrivate", because "isPrivate" only becomes "false" if mail is classified. Or did I miss something? actually yes: the filter to NOT display private mails.. and digging.  keeping you updated :-)

inputs and ideas are welcome :-)

regards
Daniel

daniel_hug

  • Freshman
  • *
  • Posts: 35
    • View Profile
Re: Mail: No Sent, No draft
« Reply #2 on: January 14, 2010, 07:50:20 pm »
So, I "patched" my system:
Changed  fengoffice\application\controllers\MailController.class.php
Line 417 $mail->setIsPrivate(true); to $mail->setIsPrivate(false);

And updated the Database to change all "IsPrivat" values in MailContents table to from 1 to 0.

Now i can see sent and draft mail... hope this helps anyone.
would be great to get some feedback on this.

regards
Daniel