summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
Commit message (Collapse)AuthorAgeFilesLines
* - add option "default to backup" (from PttSuggest@ptt2)piaip2008-03-031-2/+5
| | | | | | | - user/reg: prevent ambigious regcode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3962 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: fail-safe filename check to avoid segv crashpiaip2008-02-291-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3954 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: do not add numposts for cross-posting mailspiaip2008-02-171-4/+3
| | | | | | | - cross-post: notify user that all cp will not add numposts git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3924 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - reduce the chance of alert messagespiaip2008-02-051-3/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3903 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - add warning messages to alert about cross-postpiaip2008-02-051-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3902 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: enlarge check range again, due to some people lost newmail ↵piaip2008-01-281-1/+1
| | | | | | notification after "mail my waterlog". git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3880 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: fix assert in case some new mail has empty filename.piaip2008-01-281-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3874 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: prevent false alerts more carefullypiaip2008-01-061-0/+1
| | | | | | | | | - pfterm: add getmaxyx - bbslua: change format detection and API refine - var/mode: string fix git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - comments: better not use Ctrl-O as hotkey. UNIX does not send ^O by default.piaip2008-01-041-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3783 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - mail: enable 'v' for 'readall'piaip2008-01-031-7/+72
| | | | | | | | - mail: make check range as constant definition - mail: refresh mail usage count after delete git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3781 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - make Test as macro namepiaip2008-01-021-1/+4
| | | | | | | - general message update and finetune git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3770 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix announce crash bugs (reason: entering a_menu may have different board piaip2007-12-291-2/+5
| | | | | | | than currbid/currboard.) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - optimize big I formatting piaip2007-12-171-1/+5
| | | | | | | - disable mail pre-check permission until someone fix it git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - change hard coded .DIR to macro definitionspiaip2007-12-111-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3667 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - cross_post crash: better workaround. still waiting someone to fix it.piaip2007-12-111-2/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3666 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - grayout: check potential (almost impossible) buffer overflowpiaip2007-12-051-7/+24
| | | | | | | | - pmore: fix message error - mail: better explain of waterlog re-arrange usage help git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - move hard-coded board names to pttbbs.conf.piaip2007-12-051-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3629 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - sync ptt2 local modification piaip2007-12-011-6/+3
| | | | | | | | - refine post/vote restriction magic code - color in making recommend git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3603 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* General Update by PttSuggest:piaip2007-12-011-3/+12
| | | | | | | | | | | - 'w' in mail can msg - author in mail header will highlight if online - recommendation message fix - ignore empty input for login - better prompt for empty fav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3599 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix bug: don't getdata() on non-local variable directly, to avoid ↵kcwu2007-09-211-4/+8
| | | | | | reentrant crash. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3564 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * use strtok_r() instead of strtok(). fix bad strtok() usages.kcwu2007-06-191-7/+12
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3545 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add 'I' instruction hint when user does not meet regtime limitscw2007-06-041-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Mail securityscw2007-01-251-8/+9
| | | | | | | | | * user without PERM_SYSOP can't edit mails * always record source when crossposting from mail * crossposting to Test board does not count as a post git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3480 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* new mail notification for internal mailwens2006-12-131-1/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3454 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* enum usage fix, saved few bytes.kcwu2006-09-171-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3414 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix r3385scw2006-07-261-1/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3389 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change how badpost limit is counted, so default value of 0 will workwens2006-07-251-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3387 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add badposts as post/vote limitwens2006-07-251-0/+1
| | | | | | | show post limits on board config git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3386 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* give angles larger mailbox (as large as SYSSUPERSUBOP)scw2006-07-231-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3385 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.remove str_checksum() (use StringHash() now)in22006-06-161-0/+18
| | | | | | | 2.prevent cross posting from mail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3371 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix possible bug on posting limitswens2006-06-161-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3370 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reject group mail from user in reject listscw2006-06-011-2/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3362 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* do not setuserfile if filename is emptyin22006-05-081-15/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3355 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add a lot of assertions to ensure bid is in correct range when access via bid.kcwu2006-04-081-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3341 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* bug fix: board not found error handling.kcwu2006-04-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3327 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix message about mailbox full.kcwu2006-04-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3317 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: clear quote_file[] after use.kcwu2006-03-271-0/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3307 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some strncpy with strlcpy, or just strcpy if src is constvictor2006-01-121-12/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3267 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* save IO from check mailptt2005-12-221-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3257 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix the procedures of FULLUPDATE, PARTUPDATE and DIRCHANGED.victor2005-12-051-15/+16
| | | | | | | Close ticket #39. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3252 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* PERMISSION can be changed even if the user is online.ptt2005-11-161-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3241 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug about mailalertptt2005-10-141-2/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3224 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* changes mailalert to 1 bit only.ptt2005-10-131-4/+4
| | | | | | | | reserved other 7 trigers for updating current status on the fly when user is online. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove the 2048 limitvictor2005-09-261-4/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3211 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change bsmtp's prototype since ``method'' is not usedvictor2005-09-181-20/+24
| | | | | | | try to make the temporary, outgoing mail unique git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3191 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fixed FILE_REPLIED: ent was used as a temp bufferpiaip2005-09-171-1/+2
| | | | | | | for curredit in mail_reply. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3182 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix FILE_REPLIED, in board reply modepiaip2005-09-171-1/+1
| | | | | | | | we should check direct, not ent. this bug made FILE_DIGEST appear on board-reply. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix mail_reply(0, fhdr, 0); caused segv due to mail +r flag,piaip2005-09-161-1/+2
| | | | | | | and make DEBUGSLEEP mode more robust (hope so) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3179 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add support to "mark mail as replied"piaip2005-09-151-2/+28
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3169 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* msg updatespiaip2005-09-101-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3149 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* try to make FILE_MULTI work, (ref: #221/#220)piaip2005-09-091-3/+0
| | | | | | | | | hmmm, after almost three thousands of patchsets, finally it may work now ... (hope so, not really tried, and i don't care actually) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3146 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* name complete did not check invalid input.piaip2005-09-091-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3143 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Wide terminal rules.piaip2005-09-081-18/+35
| | | | | | | This time we have userlist and mailbox support. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3136 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* why \0 for mail menu? not sure...piaip2005-09-051-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* distinguish functions that need item or not, and allow the latter in empty ↵kcwu2005-08-281-84/+88
| | | | | | itemlist. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3097 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* comment bad code.kcwu2005-08-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3093 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* set*() family functions all assume buffer size = PATHLEN, to prevent buffer ↵kcwu2005-08-231-12/+12
| | | | | | | | | overflow. do some s/256/PATHLEN/. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3074 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add super sys support op (群組長)wens2005-08-081-2/+6
| | | | | | | HUGETLB doesn't need root git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3010 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* msg pretty printpiaip2005-08-081-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3008 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* article money issue updatespiaip2005-08-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2998 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Large Terminal Rulespiaip2005-08-061-3/+3
| | | | | | | New api: *lr family calls are used to pad and fir terminal width. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2996 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* large terminal rules.piaip2005-08-061-3/+3
| | | | | | | | | | | | | - vmsg with formats is now vmsgf. - deprecates vmsg_lines = i hope changes in admin does not make trouble because the old way looks like a mess within my terminal. - pending issue: = pressanykey_or_callangel is in oldway = showtitle, msg_seperator, and others should also be fixed git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2995 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - multi.money updates,piaip2005-08-051-5/+13
| | | | | | | | - experimental money listing mode - prevent unread black-hole mails git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2987 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* many users leave blanks in mail addr.piaip2005-07-271-0/+5
| | | | | | | let's help them. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2965 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Better mail usage estimatepiaip2005-07-251-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2960 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* more accurate mail usagepiaip2005-07-251-5/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2959 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* maildir: add show sizepiaip2005-07-251-30/+88
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2956 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* recommendation: a more elegant UIpiaip2005-07-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2949 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* sync with PTT1 local modified source:piaip2005-07-231-3/+34
| | | | | | | | | - debug with msgfwderr - enlarge thread search range - more verbose board info git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2942 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* verbose message,piaip2005-07-181-1/+1
| | | | | | | and disable recommendation scroll git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2935 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fully update the screen after mail_cross_postvictor2005-07-081-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2921 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix write_header for outside edit.cpiaip2005-07-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2910 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* pmore: avoid dbcs cursor movement doubled due to msg formatpiaip2005-07-061-5/+8
| | | | | | | mail: fix ticket#14 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2906 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* help update, fix mail title unchanged outside vedit (partial?)piaip2005-07-061-1/+2
| | | | | | | and 'search for recommends' patch by ledia@ptt, thanks. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2903 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/gvictor2005-07-041-3/+3
| | | | | | | turn off FOREIGN_REG by default in sample/pttbbs.conf git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - multi-signature browsing modepiaip2005-07-031-1/+2
| | | | | | | - song order: quick abort git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2881 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Mail quato special checking for sending mail to self.scw2005-06-271-9/+33
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2870 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug of email justifyptt2005-06-241-49/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2865 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* some idiots autoforward to themselvespiaip2005-06-181-2/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2845 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge HAVE_PERM() into HasUserPerm()in22005-06-141-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2842 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* better readability.in22005-06-141-11/+11
| | | | | | | | | real => adminmode, HAS_PERM() => HasUserPerm(), HasPerm() => HasBoardPerm(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2840 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* New style to specify ANSI escape commands.piaip2005-06-081-12/+12
| | | | | | | | | First introduced by pmore, but this hard work (to transform all files to new style) is made by Rong-en Fan (rafan). Thanks! git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* make mailbox-ful warning msg more meaning fulpiaip2005-06-051-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2767 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use new cooldown interface in mailwens2005-05-241-6/+2
| | | | | | | make compiler happy git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2735 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* some idiots just set themselves as auto-forward receiverpiaip2005-05-241-9/+9
| | | | | | | | | and still don't know what does that mean, complaining on SYSOP. althogh the situation of forward loop (a->b->a) is not solved yet, it's good enough now to prevent level 1 idiots. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2732 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: the condition to find author when reply kcwu2005-05-201-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2730 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* buffer overflow: file path [64] is too small!piaip2005-04-211-2/+2
| | | | | | | use PATHLEN instead. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bug: always clear quote_file after use. (esp. cancel)kcwu2005-03-191-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2654 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* statistickcwu2005-03-191-0/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2651 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* currboard is constant pointerkcwu2005-03-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2644 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* don't call system() in simple casekcwu2005-03-191-3/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2643 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add 'const' qualifiers on function parameters.kcwu2005-03-191-26/+26
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning: searchuser() getuser() API change, don't change query string ↵kcwu2005-03-151-9/+10
| | | | | | implicitly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2627 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix r2613in22005-03-131-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2618 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use Copy() instead Link() for most casesin22005-03-131-18/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2613 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global variable into local, 587 byteskcwu2005-03-121-4/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2607 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global variable xuser into local, save 512 bytes.kcwu2005-03-121-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* explicitly tell C compiler functions have no parameterkcwu2005-03-121-15/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* move global variable to local, save another 536 byteskcwu2005-03-121-26/+38
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2591 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add "cool down" feature for boards.wens2005-03-091-0/+13
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix bugwens2005-03-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2578 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix last commitwens2005-03-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2575 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Post limits do not apply to BMs and SYSOPswens2005-03-031-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add regtime to post & vote limitswens2005-03-031-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning free: "static" should be in front of "const"kcwu2005-03-031-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2569 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add Account Registration (PERM_REG) for registration.in22005-02-251-2/+2
| | | | | | | remove PERM_SMG. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2541 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* slight changeskcwu2005-02-101-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2487 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * In generalnamecomplete(), complete as more as possible when space (' ')scw2005-02-051-11/+2
| | | | | | | | | | | | | | | is pressed. (As what <tab> does in most shell) * In all three completing functions (namecomplete, usercomplete and generalnamecomplete), return null string instead of partial matched name which makes users able to talk/annoy those they are not supposed to talk to (admins or cloaks). * Type of parameters of generalnamecomplete has typedefed and should be clearer. * New macro CompleteBoard and CompleteOnlineUser are defined since most of the usage of generalnamecomplete are the same. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use time4_t(uint32_t) instead of time_t for x86-64 arch.in22005-01-241-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2426 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix missing initialization (default is insert mode)victor2005-01-191-1/+1
| | | | | | | fix possible error about anonymous mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2409 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* specified alertvictor2005-01-151-4/+8
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2400 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add post limits for BM.wens2005-01-071-0/+8
| | | | | | | | rename "do_votelimitedit" to "do_limitedit". rename "zerovotelimit.c" to "zero_limits.c". git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2388 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* user has the most priority .....victor2004-11-121-2/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2323 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* try to fix strange behavior of bvotevictor2004-11-111-0/+1
| | | | | | | | check tmpfile size before save fav4 comment for DDOS git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2322 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add modifier "const" to some constantvictor2004-11-091-5/+11
| | | | | | | | remove a static char array of 60 bytes from mail.c:doforward avoid DDOS in mail.c:send_inner_mail git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2321 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge back from branch victor.solarisvictor2004-09-101-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2189 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use vmsg() instead of outs() + pressanykey()in22004-08-271-11/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Merge bbs merge moduleptt.fpg@2092ptt2004-06-261-6/+5
| | | | | | | | usage: make -D BBSMERGE to enable this module git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2091 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1. use setupmailusage instead touchmailusageptt2004-06-261-7/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2089 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.debug select_read problem with "SR" in board name.ptt2004-06-261-7/+20
| | | | | | | 2.cache mailsum. get_sum_record is a bad function that cause a lot of IO git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2087 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* ADD_EXMAILBOXin22004-06-201-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2071 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* anonymous posting in innin22004-06-151-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2068 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix mail alert after the new mails are readvictor2004-06-141-0/+1
| | | | | | | thanks CatMan.bbs@ptt2.cc git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2061 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace some prints() with outs(),kcwu2004-06-101-6/+4
| | | | | | | | | | | | replace some outs() with outc(), replace some fprintf() with fputs(), and so on. for performance. and don't treat user input as format string. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2055 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use 'const' keyword to reduce 7904 bytes data segmentkcwu2004-06-041-2/+2
| | | | | | | from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Merge from scw.angel.scw2004-05-241-3/+3
| | | | | | | | *NOTE* Before running this revision, please read PttCurrent board at telnet://ptt.cc or http://scwg.wiki.ptt.cc/-Angel git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2014 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* clean up getindex() and substitute recordptt2004-04-301-34/+10
| | | | | | | fix bug of OSONG git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1901 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.fix some bug for reference tagptt2004-04-301-5/+4
| | | | | | | | | 2.add static _mode to cost down select_read's time. Note: getindex is a bad!! funcation...must get ride of that some day. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1892 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change log_file()ptt2004-04-301-7/+2
| | | | | | | log_user() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1889 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* rewrite functions to fit now i_read()ptt2004-04-271-35/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1865 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* reoragnize functions ptt2004-04-241-51/+16
| | | | | | | | | mprints, pprints -> mouts remove useless refresh, pressanykey(), sleep,... git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove useless functionsptt2004-04-231-2/+2
| | | | | | | integrate similiar functions git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1827 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert cuser from pointer to buffer.ptt2004-04-211-52/+52
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1798 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix currboard usage when crosspost.scw2004-04-051-3/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1697 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* 1.ptt2004-04-021-16/+8
| | | | | | | | | | avoid return FULLUPDATE. use return TITLE_REDRAW / READ_REDRAW 2. showfilename in read git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1665 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* refiningptt2004-03-311-2/+1
| | | | | | | | cuser & passwd_update git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mmap to cuser get ride of passwd_updateptt2004-03-311-53/+53
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix bad assertion when deleting tagged mail in mailbox.scw2004-03-291-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1622 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* get ride of delete_fileptt2004-03-281-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1618 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* simplfy append_recordptt2004-03-251-11/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1605 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* show message before uuencodein22004-02-081-0/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1513 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1501 ↵ptt2004-01-311-1/+1
| | | | 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Rewrite strip_ansi() (also move from vote.c to io.c).scw2003-12-241-1/+1
| | | | | | | | Using STRIP_ALL instead of 0 when calling strip_ansi. Fix some buffer overflow problem. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* O(1) key-func mapping in i_read_keyvictor2003-12-161-20/+86
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1410 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* buffer sizekcwu2003-11-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1283 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* add mail headervictor2003-10-081-5/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1227 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code cleanupkcwu2003-09-071-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1168 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* clean upkcwu2003-09-071-14/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1166 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* code cleanupkcwu2003-09-061-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1162 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* typo(no author)2003-09-031-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning free(no author)2003-08-281-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1138 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* paste taged file across board and mailboxvictor2003-08-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1109 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* merge from MergeCachein22003-07-201-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1065 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* warning for SaveEMailin22003-05-191-3/+7
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@881 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix cursor positionkcwu2003-02-021-5/+5
| | | | | | | thanks to akiecs.bbs@ptt2 (AK) git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@649 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * there are so many fopen() without fclose()kcwu2003-01-201-3/+7
| | | | | | | | * assert fopen() * clean up git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@638 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* clean upkcwu2003-01-161-24/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@613 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* disable NO_OUT_MAIL before writing to jobspoolin22002-10-291-1/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@548 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* sprintf() -> snprintf()in22002-07-231-49/+61
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@435 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indent -i4in22002-07-211-48/+47
| | | | | | | fix indent's word error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@429 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* strcpy() -> strlcpy()in22002-07-211-46/+46
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* mail_waterballin22002-07-201-6/+9
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@423 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* indentin22002-07-061-522/+597
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@415 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix wrong wordin22002-07-031-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@409 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* if( !(strstr(fhdr->title, "���u") && strstr(fhdr->title, ↵in22002-07-031-2/+2
| | | | | | "�O��")) ){ git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@408 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* hit to water programin22002-07-021-3/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change the valid email address char set from "[].%!@:-_;" to "[].@-_"kcwu2002-06-281-3/+3
| | | | | | | quote the placeholder %s of address git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@371 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***lwms2002-06-191-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* only one shared memoryin22002-06-071-6/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* global variable move to var.cin22002-06-041-58/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***ptt2002-05-261-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@233 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***ptt2002-05-251-13/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@220 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* no warningin22002-05-171-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* replace time(NULL) by nowptt2002-05-131-20/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* general namecompletein22002-05-111-5/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@159 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *** empty log message ***ptt2002-04-301-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@135 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix buffer overflowin22002-04-291-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@133 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* change getdata() constant to sizeof()in22002-04-291-10/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* use mutt to (Z)ip UserHome ↵in22002-03-251-1/+8
| | | | | | �������p�H�������]�^�h git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@64 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Initial revisionin22002-03-071-0/+1675
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204