Delete draft on send

Discuss about Group-Office development here

Moderator: Developers

fischli
Posts: 36
Joined: Tue Apr 22, 2014 10:06 am

Delete draft on send

Postby fischli » Thu Jun 12, 2014 6:08 am

It's obviously favoured to delete the draft right after sending the mail, but I do not see the requirements for a "one-time" draft. Draft meens to me: write once, use often.

It would be nice to make it configureable

Code: Select all

      if (!empty($params['draft_uid']) && GO::config()->delete_draft_on_send) {
         //remove drafts on send
         $imap = $account->openImapConnection($account->drafts);
         $imap->delete(array($params['draft_uid']));
      }
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Delete draft on send

Postby mschering » Tue Jun 17, 2014 12:49 pm

Best regards,

Merijn Schering
Intermesh

Return to “Development Chats”

Who is online

Users browsing this forum: No registered users and 1 guest

cron