Re: SQM 1.5.1 and Plugin Mark_Read 1.4.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >> > Hello,> >> >> >> > when using plugin Mark_Read 1.4.1 with SQM 1.5.1 and wanting to mark> a> >> > complete Folder as Read / Unread I get the following errors:> >> >> >> > Notice: Undefined offset: 2 in> >> >> C:\Programme\Jana2\html\squirrelmail\plugins\compatibility\functions.php> >> > on line 105> >> ...> >> > Warning: include_once(../src/validate.php) [function.include-once]:> >> failed> >> > to open stream: No such file or directory in> >> > C:\Programme\Jana2\html\squirrelmail\plugins\mark_read\mark_read.php> >> on> >> > line 27> >>> >> Mark_Read plugin is written for compatibility 1.x API. You use> >> compatibility 2.0.4 plugin. There are some incompatibilities between> 1.x> >> and 2.x API.> >>> >> Downgrade compatibility to 1.3 or update mark_read plugin according to> >> plugins/compatibility/README ("Usage (Plugin Authors' Guide)" chapter)> >>> >> --> >> Tomas> >> > I found out that the path was wrong and in compatibility 2.0.4 I> activated> > this:> >> >    if ( strpos(getcwd(), 'plugins') )> >    {> >       if (file_exists($compatibility_sm_path . 'include/validate.php'))> >          include_once($compatibility_sm_path . 'include/validate.php');> >       else if (file_exists($compatibility_sm_path . 'src/validate.php'))> >          include_once($compatibility_sm_path . 'src/validate.php');> >    }> >> >> >    include_once($compatibility_sm_path . 'functions/strings.php');> >> >> >    if (file_exists($compatibility_sm_path . 'functions/global.php'))> >       include_once($compatibility_sm_path . 'functions/global.php');> >    else if (file_exists($compatibility_sm_path . 'src/global.php'))> >       include_once($compatibility_sm_path . 'src/global.php');> >> > Now I only get this error when using the Read/Unread functions for the> > folders:> >> > Fatal error: Call to undefined function sqimap_messages_flag() in> > C:\Programme\Jana2\html\squirrelmail\plugins\mark_read\mark_read.php on> > line 67> >> > How does SQM 1.5.1 mark messages as read/unread? I didn't find this> > function declaration.> > http://www.squirrelmail.org/docs/phpdoc/> sqimap_toggle_flag(), line 1276 in functions/mailbox_display.php> > >from SquirrelMail 1.5.1 changelog> --->   - sqimap_messages_delete|copy|flag and sqimap_get_small_header()>     functions are removed from SquirrelMail IMAP API. Use sqimap_msgs_*>     and sqimap_get_small_header_list() functions instead.> ---
I changed the functions 'sqimap_messages_remove_flag' and 'sqimap_messages_flag' to 'sqimap_toggle_flag':
Old version of mark_read.php:// mark_read out the mailbox//if( $read ) {   sqimap_messages_remove_flag ($imap_stream, 1, '*', 'Seen', false);} else {   sqimap_messages_flag ($imap_stream, 1, '*', 'Seen', false);}
New version of mark_read.php:// mark_read out the mailbox//if( $read ) {   sqimap_toggle_flag ($imap_stream, 1, 'Seen', false, true);} else {   sqimap_toggle_flag ($imap_stream, 1, 'Seen', true, true);}
But now I get an IMAP error because of a wrong select statement. The problem is the parameter 'array $id'. I don't know which value to send to the function because I don't know the parameters of the old functions.
Can you please help me again?
Thank you.
Stefan
-- 

"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-------------------------------------------------------------------------Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642--squirrelmail-users mailing listPosting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelinesList Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxxxxxx Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.userList Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux